订阅功能

This commit is contained in:
13405411873 2025-04-07 09:16:54 +08:00
parent 571f8b7f63
commit c951d18a2c

View File

@ -214,10 +214,22 @@ order by dbns.create_time desc
AND ( dbn.gift_detail IS NOT NULL AND dbn.gift_detail != '' )
</if>
<if test="entity.platformCode!=null and entity.platformCode!=''">
AND ( dbn.platform_code =#{entity.platformCode} )
and dbn.platform_code IN
<foreach collection="entity.platformCode" item="it" open="(" close=")" separator=",">
-- platform_code 包含it
#{it}
</foreach>
</if>
<if test="entity.bloggerTypeCode!=null and entity.bloggerTypeCode!=''">
AND ( dbn.blogger_types LIKE CONCAT('%',#{entity.bloggerType},'%') )
and
<foreach collection="entity.bloggerTypeCode" item="it" open="(" close=")" separator="or">
dbn.blogger_types like concat('%',#{it},'%')
</foreach>
</if>
<if test="entity.noticeTypeCode!=null and entity.noticeTypeCode!=''">
<foreach collection="entity.noticeTypeCode" item="it" open="(" close=")" separator=",">
AND ( dbn.blogger_types IN (#{it}) )
</foreach>
</if>
<if test="entity.searchValue!=null and entity.searchValue!=''">
AND ( dbn.title LIKE CONCAT('%',#{entity.searchValue},'%') OR