新增creator条件
This commit is contained in:
parent
3b76b115b7
commit
24a09589c7
@ -189,6 +189,17 @@
|
||||
#{articleContentIds[${index}]}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="creator != null and creator != ''">
|
||||
AND
|
||||
t1.creator = #{creator}
|
||||
</if>
|
||||
<if test="creators != null and creators.size > 0">
|
||||
AND
|
||||
t1.creator IN
|
||||
<foreach collection="creators" index="index" open="(" separator="," close=")">
|
||||
#{creators[${index}]}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 统计文章数量 -->
|
||||
@ -207,6 +218,28 @@
|
||||
AND
|
||||
is_publish = #{isPublish}
|
||||
</if>
|
||||
<if test="articleCategoryId != null and articleCategoryId != ''">
|
||||
AND
|
||||
article_category_id = #{articleCategoryId}
|
||||
</if>
|
||||
<if test="articleContentIds != null and articleContentIds.size > 0">
|
||||
AND
|
||||
article_content_id IN
|
||||
<foreach collection="articleContentIds" index="index" open="(" separator="," close=")">
|
||||
#{articleContentIds[${index}]}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="creator != null and creator != ''">
|
||||
AND
|
||||
creator = #{creator}
|
||||
</if>
|
||||
<if test="creators != null and creators.size > 0">
|
||||
AND
|
||||
creator IN
|
||||
<foreach collection="creators" index="index" open="(" separator="," close=")">
|
||||
#{creators[${index}]}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user