| | |
| | | LEFT JOIN ywxt.sg_report_user userR ON report.id = userR.report_id |
| | | WHERE |
| | | 1 = 1 and report."STATUS" != 4 |
| | | <if test="dto.userUnit != null and dto.userUnit != ''"> |
| | | and si.CONTROL_UNIT=#{dto.userUnit} |
| | | <if test="dto.userUnit != null and dto.userUnit.size>0"> |
| | | and si.CONTROL_UNIT in |
| | | <foreach collection="dto.userUnit" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="dto.countryUnit != null and dto.countryUnit != ''"> |
| | | and dria."county_cd"=#{dto.countryUnit} |
| | | <if test="dto.countryUnit != null and dto.countryUnit.size>0"> |
| | | and dria."county_cd" in |
| | | <foreach collection="dto.countryUnit" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="dto.roleUnit != null and dto.roleUnit != ''"> |
| | | and userR.role_id=#{dto.roleUnit} |