Commit 97ceadc1 authored by fangxinjiang's avatar fangxinjiang

商险 有效无效查询条件已投保导出优化

parent 0f7d3af7
...@@ -611,6 +611,9 @@ ...@@ -611,6 +611,9 @@
a.DELETE_FLAG = 0 a.DELETE_FLAG = 0
and and
a.BUY_HANDLE_STATUS = 3 a.BUY_HANDLE_STATUS = 3
<if test="param.isEffect != null">
and a.IS_EFFECT = #{param.isEffect}
</if>
<if test="param.unitName != null and param.unitName.trim() != ''"> <if test="param.unitName != null and param.unitName.trim() != ''">
and a.UNIT_NAME like concat(replace(replace(#{param.unitName},'_','\_'),'%','\%'),'%') and a.UNIT_NAME like concat(replace(replace(#{param.unitName},'_','\_'),'%','\%'),'%')
</if> </if>
...@@ -688,6 +691,9 @@ ...@@ -688,6 +691,9 @@
a.DELETE_FLAG = 0 a.DELETE_FLAG = 0
and and
a.BUY_HANDLE_STATUS = 3 a.BUY_HANDLE_STATUS = 3
<if test="param.isEffect != null">
and a.IS_EFFECT = #{param.isEffect}
</if>
<if test="param.createName != null and param.createName.trim() != ''"> <if test="param.createName != null and param.createName.trim() != ''">
and a.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%') and a.CREATE_NAME like concat('%',replace(replace(#{param.createName},'_','\_'),'%','\%'),'%')
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment