|
|
@@ -80,17 +80,12 @@
|
|
|
LEFT JOIN ins_orders_external_policy ioep on ioep.order_no = io.id AND ioep.is_delete=0
|
|
|
<where>
|
|
|
and ifa.is_delete=0 and ifa.system_code = #{param.systemCode}
|
|
|
- <choose>
|
|
|
- <when test="param.receiveUser != null and param.receiveUser != ''">
|
|
|
- and ifa.receive_user = #{param.receiveUser}
|
|
|
- </when>
|
|
|
- <when test="param.isProblem != null and param.isProblem == 1">
|
|
|
- and ifa.receive_user is NOT NULL
|
|
|
- </when>
|
|
|
- <otherwise>
|
|
|
- and ifa.receive_user is NULL
|
|
|
- </otherwise>
|
|
|
- </choose>
|
|
|
+ <if test="param.receiveUser != null and param.receiveUser != ''">
|
|
|
+ and ifa.receive_user = #{param.receiveUser}
|
|
|
+ </if>
|
|
|
+ <if test="param.allTodoReceive != null and param.allTodoReceive == true">
|
|
|
+ and ifa.receive_user is null
|
|
|
+ </if>
|
|
|
<if test="param.auditType != null">
|
|
|
and ifa.audit_type = #{param.auditType}
|
|
|
</if>
|
|
|
@@ -215,17 +210,9 @@
|
|
|
LEFT JOIN ins_orders_external_policy ioep on ioep.order_no = io.id AND ioep.is_delete=0
|
|
|
<where>
|
|
|
and ifa.is_delete=0
|
|
|
- <choose>
|
|
|
- <when test="param.receiveUser != null and param.receiveUser != ''">
|
|
|
- and ifa.receive_user = #{param.receiveUser}
|
|
|
- </when>
|
|
|
- <when test="param.isProblem != null and param.isProblem == 1">
|
|
|
- and ifa.receive_user is NOT NULL
|
|
|
- </when>
|
|
|
- <otherwise>
|
|
|
- and ifa.receive_user is NULL
|
|
|
- </otherwise>
|
|
|
- </choose>
|
|
|
+ <if test="param.receiveUser != null and param.receiveUser != ''">
|
|
|
+ and ifa.receive_user = #{param.receiveUser}
|
|
|
+ </if>
|
|
|
<if test="param.auditType != null">
|
|
|
and ifa.audit_type = #{param.auditType}
|
|
|
</if>
|