新增creator条件
This commit is contained in:
parent
3b76b115b7
commit
24a09589c7
@ -189,6 +189,17 @@
|
|||||||
#{articleContentIds[${index}]}
|
#{articleContentIds[${index}]}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</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>
|
</select>
|
||||||
|
|
||||||
<!-- 统计文章数量 -->
|
<!-- 统计文章数量 -->
|
||||||
@ -207,6 +218,28 @@
|
|||||||
AND
|
AND
|
||||||
is_publish = #{isPublish}
|
is_publish = #{isPublish}
|
||||||
</if>
|
</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>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue
Block a user