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