| | |
| | | and (ja.article_range like concat('%',#{article.districtId},'%') |
| | | or ja.article_range is null or ja.article_range = '') |
| | | </if> |
| | | <if test="article.districtIdList != null and article.districtIdList.size() > 0 "> |
| | | and (ja.article_range like |
| | | <foreach collection="article.districtIdList" separator=" or article_range like" item="id">'%${id}%' |
| | | </foreach> |
| | | ) or ja.article_range is null |
| | | </if> |
| | | |
| | | <if test="article.districtId == null "> |
| | | and ja.article_range is null |
| | |
| | | or ja.article_range is null) |
| | | </if> |
| | | |
| | | <if test="article.districtIdList != null and article.districtIdList.size() > 0 "> |
| | | and (ja.article_range like |
| | | <foreach collection="article.districtIdList" separator=" or article_range like" item="id">'%${id}%' |
| | | </foreach> |
| | | ) or ja.article_range is null |
| | | </if> |
| | | |
| | | <if test="article.building != null and article.building != ''"> |
| | | and (ja.building = #{article.building} |
| | | or ja.building is null) |