| | |
| | | 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"> |
| | | and |
| | | <foreach collection="dto.selfUnit" item="item" index="index" open="(" separator="or" close=")"> |
| | | info.SELF_UNIT Like CONCAT(CONCAT('%', #{item}), '%') |
| | | </foreach> |
| | | </if> |
| | | <if test="dto.userUnit != null and dto.userUnit.size>0"> |
| | | and |
| | | <foreach collection="dto.userUnit" item="item" index="index" open="(" separator="or" close=")"> |
| | | info.CONTROL_UNIT Like CONCAT(CONCAT('%', #{item}), '%') |
| | | </foreach> |
| | | </if> |
| | | <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.projectName != null and dto.projectName != ''"> |
| | | and info.project_name like concat( concat ('%',#{dto.projectName}),'%') |
| | | </if> |
| | |
| | | </select> |
| | | |
| | | <sql id="queryBySgCodeS"> |
| | | <if test="dto.selfUnit != null and dto.selfUnit.size>0"> |
| | | and |
| | | <foreach collection="dto.selfUnit" item="item" index="index" open="(" separator="or" close=")"> |
| | | pro.SELF_UNIT Like CONCAT(CONCAT('%', #{item}), '%') |
| | | </foreach> |
| | | </if> |
| | | <if test="dto.userUnit != null and dto.userUnit.size>0"> |
| | | and |
| | | <foreach collection="dto.userUnit" item="item" index="index" open="(" separator="or" close=")"> |
| | | pro.CONTROL_UNIT Like CONCAT(CONCAT('%', #{item}), '%') |
| | | </foreach> |
| | | </if> |
| | | <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.sgCodeS != null and dto.sgCodeS.size > 0"> |
| | | and (dria."province_cd" in |
| | | <foreach collection="dto.sgCodeS" item="id" separator="," open="(" close=")"> |
| | |
| | | user_id |
| | | FROM |
| | | "YWXT"."BLADE_USER_DEPT" |
| | | WHERE |
| | | dept_id = #{controlUnit} |
| | | |
| | | |
| | | WHERE 1=1 |
| | | <if test="list != null and list.size>0"> |
| | | and dept_id in |
| | | <foreach collection="list" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | <select id="resList" resultType="cn.gistack.sm.sg.VO.ResVO"> |
| | | select dria.* from "SJZT_DW"."dim_res_info_a" dria where 1=1 |