|
@@ -9,7 +9,7 @@
|
|
|
<result property="userId" column="article_user_id"/>
|
|
|
<result property="title" column="article_title"/>
|
|
|
<result property="content" column="article_content"/>
|
|
|
- <result property="classId" column="article_class_id"/>
|
|
|
+ <result property="circleId" column="article_circle_id"/>
|
|
|
<result property="createBy" column="article_create_by"/>
|
|
|
<result property="createTime" column="article_create_time"/>
|
|
|
<result property="updateBy" column="article_update_by"/>
|
|
@@ -100,7 +100,7 @@
|
|
|
a.title as article_title,
|
|
|
a.is_comment as article_is_comment,
|
|
|
a.content as article_content,
|
|
|
- a.class_id as article_class_id,
|
|
|
+ a.circle_id as article_circle_id,
|
|
|
a.create_by as article_create_by,
|
|
|
a.create_time as article_create_time,
|
|
|
a.update_by as article_update_by,
|
|
@@ -129,15 +129,19 @@
|
|
|
left join community_article_images b on a.id = b.article_id
|
|
|
left join sys_user c on a.user_id = c.user_id
|
|
|
left join community_article_comment d on d.article_id = a.id
|
|
|
+ left join community_circle e on e.id = a.circle_id
|
|
|
<where>
|
|
|
- <if test="id != null and id != ''">
|
|
|
- AND a.id = #{id}
|
|
|
+ <if test="communityArticle.id != null and communityArticle.id != ''">
|
|
|
+ AND a.id = #{communityArticle.id}
|
|
|
</if>
|
|
|
- <if test="title != null and title != ''">
|
|
|
- AND a.title like concat('%', #{title}, '%')
|
|
|
+ <if test="communityArticle.title != null and communityArticle.title != ''">
|
|
|
+ AND a.title like concat('%', #{communityArticle.title}, '%')
|
|
|
</if>
|
|
|
- <if test="classId != null and classId != ''">
|
|
|
- AND a.class_id = #{classId}
|
|
|
+ <if test="circleIds!= null and circleIds.size() > 0">
|
|
|
+ and a.circle_id IN
|
|
|
+ <foreach collection="circleIds" item="circleId" index="index" open="(" close=")" separator=",">
|
|
|
+ #{circleId}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|