| | |
| | | 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 |
| | |
| | | <if test="article.districtId != null and article.districtId != ''"> |
| | | and (ja.article_range like concat('%',#{article.districtId},'%') |
| | | 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 != ''"> |
| | |
| | | <if test="article.eventType != null"> |
| | | and jpd.event_type = #{article.eventType} |
| | | and jpd.end_time is not null |
| | | and jpd.end_time <= SYSDATE() |
| | | </if> |
| | | |
| | | <if test="article.propertyFlag!=null "> |
| | |
| | | <if test="article.articleType!=null and article.articleType!=''"> |
| | | and ja.article_type like concat('%',#{article.articleType},'%') |
| | | </if> |
| | | <if test="article.type != null ">and ja.type = #{article.type}</if> |
| | | <if test="article.type != null "> |
| | | and ja.type = #{article.type} |
| | | </if> |
| | | |
| | | <if test="article.keyword!=null and article.keyword!=''"> |
| | | AND CONCAT(ja.title,ja.source_name) |
| | |
| | | order by ja.create_time desc |
| | | |
| | | </select> |
| | | |
| | | <select id="getAllList" resultType="org.springblade.modules.article.entity.Article"> |
| | | SELECT |
| | | ja.* |
| | | FROM |
| | | jczz_article ja |
| | | where 1=1 |
| | | and ja.is_deleted = 0 |
| | | and ja.publish = 1 |
| | | and ja.type = 0 |
| | | limit #{i},#{size} |
| | | </select> |
| | | |
| | | <select id="getAllListTotal" resultType="java.lang.Integer"> |
| | | SELECT |
| | | count(*) |
| | | FROM |
| | | jczz_article ja |
| | | where 1=1 |
| | | and ja.is_deleted = 0 |
| | | and ja.publish = 1 |
| | | and ja.type = 0 |
| | | </select> |
| | | </mapper> |