瀏覽代碼

优化代码

java110 5 年之前
父節點
當前提交
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>