Commit 4576d1d7 authored by 刘林's avatar 刘林

fix(Statistics):登记证管理添加气瓶查询

parent cbec04e9
...@@ -158,9 +158,16 @@ ...@@ -158,9 +158,16 @@
INNER JOIN privilege_company pc on tjurm.receive_company_code = pc.company_code INNER JOIN privilege_company pc on tjurm.receive_company_code = pc.company_code
<where> <where>
tjurm.is_delete = 0 and pc.org_code like concat (#{orgCode}, '%') tjurm.is_delete = 0 and pc.org_code like concat (#{orgCode}, '%')
<if test="dto.equList != null and dto.equList != ''"> <choose>
and tjurm.equ_list = #{dto.equList} <when test="dto.equList != null and dto.equList != '' and dto.equList == '气瓶'">
</if> and tjurm.equ_category = #{dto.equList}
</when>
<otherwise>
<if test="dto.equList != null and dto.equList != ''">
and tjurm.equ_list = #{dto.equList}
</if>
</otherwise>
</choose>
<if test="dto.equListCode != null and dto.equListCode != ''"> <if test="dto.equListCode != null and dto.equListCode != ''">
and tjurm.equ_list_code = #{dto.equListCode} and tjurm.equ_list_code = #{dto.equListCode}
</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