fix(BdNoticeMapper): 公告弹窗查询逻辑修改
This commit is contained in:
parent
86c8a74816
commit
38fd54f308
|
@ -246,11 +246,18 @@
|
||||||
and n.website_type = #{websiteType}
|
and n.website_type = #{websiteType}
|
||||||
and sysdate >= n.start_time
|
and sysdate >= n.start_time
|
||||||
and sysdate <= n.end_time
|
and sysdate <= n.end_time
|
||||||
<if test="grade != null and grade != ''">
|
<if test="(grade != null and grade != '') or (awards != null and awards != '')">
|
||||||
and instr(',' || n.grade || ',', ',' || #{grade} || ',') > 0
|
and (
|
||||||
</if>
|
<if test="grade != null and grade != ''">
|
||||||
<if test="awards != null and awards != ''">
|
instr(',' || n.grade || ',', ',' || #{grade} || ',') > 0
|
||||||
and instr(',' || n.awards || ',', ',' || #{awards} || ',') > 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>
|
||||||
<if test="systemTypeList != null and systemTypeList.size > 0">
|
<if test="systemTypeList != null and systemTypeList.size > 0">
|
||||||
and n.system_type in
|
and n.system_type in
|
||||||
|
|
Loading…
Reference in New Issue