fix(BdNoticeMapper): 公告弹窗查询逻辑修改

This commit is contained in:
woody 2025-04-23 10:25:41 +08:00
parent 86c8a74816
commit 38fd54f308
1 changed files with 12 additions and 5 deletions

View File

@ -246,11 +246,18 @@
and n.website_type = #{websiteType}
and sysdate >= n.start_time
and sysdate <= n.end_time
<if test="(grade != null and grade != '') or (awards != null and awards != '')">
and (
<if test="grade != null and grade != ''">
and instr(',' || n.grade || ',', ',' || #{grade} || ',') > 0
instr(',' || n.grade || ',', ',' || #{grade} || ',') > 0
</if>
<if test="(grade != null and grade != '') and (awards != null and awards != '')">
or
</if>
<if test="awards != null and awards != ''">
and instr(',' || n.awards || ',', ',' || #{awards} || ',') > 0
instr(',' || n.awards || ',', ',' || #{awards} || ',') > 0
</if>
)
</if>
<if test="systemTypeList != null and systemTypeList.size > 0">
and n.system_type in