浏览代码

优化代码

java110 6 年之前
父节点
当前提交
9369ea7d20
共有 1 个文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      java110-db/src/main/resources/mapper/community/NoticeServiceDaoImplMapper.xml

+ 3 - 0
java110-db/src/main/resources/mapper/community/NoticeServiceDaoImplMapper.xml

@@ -135,6 +135,9 @@
         <if test="userId !=null and userId != ''">
             and t.user_id= #{userId}
         </if>
+        <if test="state !=null and state != ''">
+            and t.state= #{state}
+        </if>
         <if test="noticeId !=null and noticeId != ''">
             and t.notice_id= #{noticeId}
         </if>