Răsfoiți Sursa

调整审核列表 搜索条件

785834757 2 ani în urmă
părinte
comite
a97a0854f8

+ 1 - 1
src/main/java/com/ydtech/modules/fnc/controller/CarSettleController.java

@@ -47,7 +47,7 @@ public class CarSettleController extends BaseController {
      */
     @PostMapping("/queryPageOrder")
     @ApiOperation(value = "[1]分页查询订单接口")
-    public HttpResult<BasePageResult<InsOrders>> queryPageOrder(@RequestBody @Valid OrderQueryVo orderQueryVo) {
+    public HttpResult<BasePageResult<InsOrders>> queryPageOrder(@RequestBody OrderQueryVo orderQueryVo) {
         orderQueryVo.setOrderStatus("3");//3已承保
         BasePageResult<InsOrders> quoteResult = this.insOrdersService.queryPageOrder(orderQueryVo);
         return HttpResult.ok("success", quoteResult);

+ 2 - 2
src/main/java/com/ydtech/modules/order/entity/vo/OrderQueryVo.java

@@ -80,8 +80,8 @@ public class OrderQueryVo {
     private String agreeId;
 
 
-    @ApiModelProperty(value = "协议Id")
-    private String agreementId;
+//    @ApiModelProperty(value = "协议Id")
+//    private String agreementId;
 
 
 

+ 36 - 8
src/main/resources/mapper/modules/order/InsAreaCompanyMapper.xml

@@ -153,26 +153,29 @@
         </if>
         IN ( SELECT ins_order_no FROM ins_fee_audit) ) AND orderstatus = 3 )
         AND io.orderstatus = 3
+        <if test="params.taskNo != null and params.taskNo != ''">
+            AND io.orderno = #{params.taskNo}
+        </if>
         <if test="params.orderNo != null and params.orderNo != ''">
-            AND io.orderno = #{params.orderNo}
+            AND iac.id = #{params.orderNo}
         </if>
         <if test="params.licenseNo != null and params.licenseNo != ''">
-            AND licenseno = #{params.licenseNo}
+            AND io.licenseno = #{params.licenseNo}
         </if>
         <if test="params.frameNo != null and params.frameNo != ''">
-            AND frameno = #{params.frameNo}
+            AND io.frameno = #{params.frameNo}
         </if>
         <if test="params.insuredName != null and params.insuredName != ''">
-            AND insuredname = #{params.insuredName}
+            AND io.insuredname = #{params.insuredName}
         </if>
         <if test="params.companyId != null and params.companyId != ''">
-            AND company_id = #{params.companyId}
+            AND io.company_id = #{params.companyId}
         </if>
         <if test="params.engineNo != null and params.engineNo != ''">
-            AND engineno = #{params.engineNo}
+            and JSON_EXTRACT( io.carinfo, '$.engineNo' )  = #{params.engineNo}
         </if>
-        <if test="params.productId != null and params.productId != ''">
-            AND product_id = #{params.productId}
+        <if test="params.riskCode != null and params.riskCode != ''">
+            and io.product = #{params.riskCode}
         </if>
         <if test="params.quoteStartDateStr != null and params.quoteStartDateStr != ''">
             AND iac.createtime BETWEEN #{params.quoteStartDateStr} and #{params.quoteEndDateStr}
@@ -183,6 +186,31 @@
         <if test="params.startDateStr != null and params.startDateStr != ''">
             AND createtime BETWEEN #{params.startDateStr} and #{params.endDateStr}
         </if>
+        <if test="params.provinceId != null and params.provinceId != ''">
+            and io.deptid like "${params.provinceId}%"
+        </if>
+        <if test="params.cityId != null and params.cityId != ''">
+            and io.deptid like "${params.cityId}%"
+        </if>
+        <if test="params.countyId != null and params.countyId != ''">
+            and io.deptid like "${params.countyId}%"
+        </if>
+        <if test="params.houseId != null and params.houseId != ''">
+            and io.deptid like "${params.houseId}%"
+        </if>
+        <if test="params.operatorId != null and params.operatorId != ''">
+            and iac.operator_id = #{params.operatorId}
+        </if>
+        <if test="params.operatorName != null and params.operatorName != ''">
+            and iac.operator_name = #{params.operatorName}
+        </if>
+        <if test="params.auditId != null and params.auditId != ''">
+            and iac.new_operator_id = #{params.auditId}
+        </if>
+        <if test="params.agreeId != null and params.agreeId != ''">
+            and iac.agreement_id = #{params.agreeId}
+        </if>
+
     </select>
 
     <select id="getByUserId" resultType="com.ydtech.modules.order.entity.InsOrders">