| | |
| | | ( b.countyCode = a."guid" ) |
| | | OR ( b.cityCode = a."guid" ) |
| | | OR ( b.provinceCode = a."guid" )) |
| | | where a."p_ad_code" = #{dto.adCode} |
| | | where 1=1 |
| | | <if test="dto.adCode != null"> |
| | | and a."p_ad_code" = #{dto.adCode} |
| | | </if> |
| | | <if test="dto.projectId != null and dto.projectId != ''"> |
| | | and pro.id = #{dto.projectId} |
| | | and b.id = #{dto.projectId} |
| | | </if> |
| | | <if test="dto.projectName != null and dto.projectName != ''"> |
| | | and pro.project_name like CONCAT(CONCAT('%', #{dto.projectName}), '%') |
| | | and b.project_name like CONCAT(CONCAT('%', #{dto.projectName}), '%') |
| | | </if> |
| | | <if test="dto.status != null"> |
| | | and pro.status = #{dto.status} |
| | | and b.status = #{dto.status} |
| | | </if> |
| | | <if test="dto.projectIds != null and dto.projectIds.size > 0"> |
| | | and pro.id in |
| | | and b.id in |
| | | <foreach collection="dto.projectIds" item="id" separator="," open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | |
| | | ( b.countyCode = a."guid" ) |
| | | OR ( b.cityCode = a."guid" ) |
| | | OR ( b.provinceCode = a."guid" )) |
| | | WHERE |
| | | a."p_ad_code" = #{dto.adCode} |
| | | WHERE 1=1 |
| | | <if test="dto.adCode != null"> |
| | | and a."p_ad_code" = #{dto.adCode} |
| | | </if> |
| | | <if test="dto.status != null"> |
| | | and b.status = #{dto.status} |
| | | </if> |