Forráskód Böngészése

fix 委员信息,会议通知

Administrator 1 éve
szülő
commit
53c2b6af14

+ 3 - 1
ruoyi-system/src/main/resources/mapper/system/ZxNoticeMapper.xml

@@ -47,7 +47,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             IFNULL( b.zx_notice_type, 'N' ) as type
             from zx_notice a
             left join zx_user_notice b on b.zx_notice_id = a.zx_notice_id
-            where a.zx_notice_id = #{zxNoticeId}and a.notice_title = #{noticeTitle}<if test="noticeTitle != null  and noticeTitle != ''"></if>
+            <where>
+            <if test="zxNoticeId != null">and a.zx_notice_id = #{zxNoticeId}</if>
+            <if test="noticeTitle != null  and noticeTitle != ''">and a.notice_title = #{noticeTitle}</if>
             <if test="noticeType != null  and noticeType != ''"> and a.notice_type = #{noticeType}</if>
             <if test="noticeContent != null  and noticeContent != ''">and a.notice_content =#{noticeContent}</if>
             <if test="status != null  and status != ''"> and a.status = #{status}</if>