| | |
| | | LEFT JOIN SJZT_DW."dim_res_info_a" dria ON dria."res_cd" = info.sk_id |
| | | WHERE |
| | | 1 =1 |
| | | <if test="dto.selfUnit != null and dto.selfUnit.size>0"> |
| | | <if test="dto.selfUnit != null and dto.selfUnit.size>0 "> |
| | | and |
| | | <foreach collection="dto.selfUnit" item="item" index="index" open="(" separator="or" close=")"> |
| | | info.CONSTRUCTION_UNIT Like CONCAT(CONCAT('%', #{item}), '%') |
| | |
| | | #{id} |
| | | </foreach>) |
| | | </if> |
| | | <if test="dto.deptId != null and dto.deptId !=''"> |
| | | <!--<if test="dto.deptId != null and dto.deptId !=''"> |
| | | and (info.control_unit = #{dto.deptId} or info.construction_unit = #{dto.deptId}) |
| | | </if> |
| | | </if>--> |
| | | <if test="dto.adCode != null and dto.adCode !=''"> |
| | | and dria."county_cd" = #{dto.adCode} |
| | | </if> |