| | |
| | | |
| | | |
| | | <sql id="selectArticle"> |
| | | select |
| | | id, |
| | | select id, |
| | | title, |
| | | type, |
| | | content, |
| | |
| | | article_range, |
| | | building, |
| | | unit |
| | | from |
| | | jczz_article |
| | | from jczz_article |
| | | </sql> |
| | | |
| | | |
| | |
| | | LEFT JOIN blade_region br on br.`code` = jd.community_code |
| | | where 1=1 |
| | | and ja.is_deleted = 0 |
| | | <if test="article.propertyFlag!=null "> |
| | | <if test="article.communityName!=null and article.communityName!=''"> |
| | | and br.`village_name` like concat('%',#{article.communityName},'%') |
| | | </if> |
| | |
| | | <if test="article.streetName!=null and article.streetName!=''"> |
| | | and br.town_name like concat('%',#{article.streetName},'%') |
| | | </if> |
| | | </if> |
| | | |
| | | |
| | | <if test="article.title!=null and article.title!=''"> |
| | | and ja.title like concat('%',#{article.title},'%') |
| | |
| | | </select> |
| | | |
| | | <update id="upcomment"> |
| | | update jczz_article set iscomment = #{type} |
| | | update jczz_article |
| | | set iscomment = #{type} |
| | | where id in(${ids}) |
| | | </update> |
| | | |