|
|
@@ -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">
|