Commit ea2b3ecc authored by limei's avatar limei

sql修改

parent 289fa3f5
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<if test="roleName == '设计单位'"> <if test="roleName == '设计单位'">
and design_unit_id = #{companyId} and design_unit_id = #{companyId}
</if> </if>
<if test="codes != null "> <if test="codes != null and codes.size > 0">
<if test="roleName == '监察部门' or roleName == '监检机构'"> <if test="roleName == '监察部门' or roleName == '监检机构'">
and install_region_code in and install_region_code in
<foreach collection="codes" item = "item" index="index" open="(" separator="," close=")"> <foreach collection="codes" item = "item" index="index" open="(" separator="," close=")">
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<if test="qualityProblemDto.code != '' and qualityProblemDto.code != null"> <if test="qualityProblemDto.code != '' and qualityProblemDto.code != null">
and qi.`code` like concat("%",#{qualityProblemDto.code},"%") and qi.`code` like concat("%",#{qualityProblemDto.code},"%")
</if> </if>
<if test="projectIds != null"> <if test="projectIds != null and projectIds.size > 0">
and qi.project_id in and qi.project_id in
<foreach collection="projectIds" index="index" item="item" open="(" close=")" separator=","> <foreach collection="projectIds" index="index" item="item" open="(" close=")" separator=",">
#{item} #{item}
......
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