| | |
| | | where 1=1 |
| | | and ja.is_deleted = 0 |
| | | <if test="article.propertyFlag!=null "> |
| | | and ja.district_id IS NOT NULL |
| | | <if test="article.communityName!=null and article.communityName!=''"> |
| | | and br.`village_name` like concat('%',#{article.communityName},'%') |
| | | </if> |
| | |
| | | <foreach collection="article.districtIdList" separator=" or article_range like" item="id">'%${id}%' |
| | | </foreach> |
| | | ) |
| | | and ja.district_id in |
| | | <foreach collection="article.districtIdList" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | <!-- and ja.district_id in--> |
| | | <!-- <foreach collection="article.districtIdList" index="index" item="item" open="(" separator="," close=")">--> |
| | | <!-- #{item}--> |
| | | <!-- </foreach>--> |
| | | </if> |
| | | order by ja.create_time desc |
| | | </select> |