| | |
| | | </select> |
| | | |
| | | |
| | | |
| | | <sql id="selectArticle"> |
| | | select |
| | | id, |
| | |
| | | update_user, |
| | | create_user, |
| | | is_deleted, |
| | | article_range |
| | | article_range, |
| | | building, |
| | | unit |
| | | from |
| | | jczz_article |
| | | </sql> |
| | |
| | | and (ja.article_range like concat('%',#{article.districtId},'%') |
| | | 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) |
| | | </if> |
| | | |
| | | <if test="article.unit != null and article.unit != ''"> |
| | | and (ja.unit = #{article.unit} |
| | | or ja.unit is null) |
| | | </if> |
| | | </if> |
| | | <!-- 查询文章 --> |
| | | <if test="article.eventType == null"> |
| | |
| | | and (ja.article_range like concat('%',#{article.districtId},'%') |
| | | 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) |
| | | </if> |
| | | |
| | | <if test="article.unit != null and article.unit != ''"> |
| | | and (ja.unit = #{article.unit} |
| | | or ja.unit is null) |
| | | </if> |
| | | </if> |
| | | |
| | | order by ja.create_time desc |