Commit ab10d686 authored by 刘凡's avatar 刘凡

优化:移装变更列表接口添加条件筛选

parent 98777b57
...@@ -44,10 +44,13 @@ ...@@ -44,10 +44,13 @@
<if test="dto.equCode != null and dto.equCode != ''"> <if test="dto.equCode != null and dto.equCode != ''">
and jri.EQU_CODE like concat('%',#{dto.equCode},'%') and jri.EQU_CODE like concat('%',#{dto.equCode},'%')
</if> </if>
<if test="dto.useUnitName != null and dto.useUnitName != ''"> <if test="dto.useUnitCreditCode != null and dto.useUnitCreditCode != ''">
and crt.use_unit_name like concat('%',#{dto.useUnitName},'%') and crt.use_unit_credit_code = #{dto.useUnitCreditCode}
</if> </if>
<if test="roleIds != null and dto.dataType == 'jg'"> <if test="dto.receiveOrgCode != null and dto.receiveOrgCode != ''">
and crt.receive_company_code = #{dto.receiveOrgCode}
</if>
<if test="roleIds != null and dto.dataType == 'supervision'">
<foreach collection='roleIds' item='role' open='and (' close=')' separator='or'> <foreach collection='roleIds' item='role' open='and (' close=')' separator='or'>
crt.execute_sequence like concat('%',#{role},'%') crt.execute_sequence like concat('%',#{role},'%')
</foreach> </foreach>
......
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