fix(BdNoticeMapper): 公告弹窗查询逻辑修改
This commit is contained in:
parent
f246e78e45
commit
ec5cd922da
|
@ -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 != ''">
|
||||
and instr(',' || n.grade || ',', ',' || #{grade} || ',') > 0
|
||||
</if>
|
||||
<if test="awards != null and awards != ''">
|
||||
and instr(',' || n.awards || ',', ',' || #{awards} || ',') > 0
|
||||
<if test="(grade != null and grade != '') or (awards != null and awards != '')">
|
||||
and (
|
||||
<if test="grade != null and grade != ''">
|
||||
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 != ''">
|
||||
instr(',' || n.awards || ',', ',' || #{awards} || ',') > 0
|
||||
</if>
|
||||
)
|
||||
</if>
|
||||
<if test="systemTypeList != null and systemTypeList.size > 0">
|
||||
and n.system_type in
|
||||
|
|
Loading…
Reference in New Issue