Просмотр исходного кода

优化通知 查询时的 title like 查询

wuxw лет назад: 7
Родитель
Сommit
7492093017

+ 1 - 1
WebService/src/main/resources/components/noticePackage/notice-manage/noticeManage.html

@@ -22,7 +22,7 @@
                         <div class="col-sm-3">
                             <div class="form-group">
                                 <select class="custom-select" v-model="noticeManageInfo.conditions.noticeTypeCd">
-                                    <option selected disabled value="">请选择公告类型</option>
+                                    <option selected value="">请选择公告类型</option>
                                     <option value="1000">业主通知</option>
                                     <option value="1001">员工通知</option>
                                     <option value="1002">小区通知</option>

+ 2 - 2
java110-db/src/main/resources/mapper/notice/NoticeServiceDaoImplMapper.xml

@@ -127,7 +127,7 @@
             and t.community_id= #{communityId}
         </if>
         <if test="title !=null and title != ''">
-            and t.title= #{title}
+            and t.title like concat('%',#{title},'%')
         </if>
         <if test="bId !=null and bId != ''">
             and t.b_id= #{bId}
@@ -207,7 +207,7 @@
             and t.community_id= #{communityId}
         </if>
         <if test="title !=null and title != ''">
-            and t.title= #{title}
+            and t.title like concat('%',#{title},'%')
         </if>
         <if test="bId !=null and bId != ''">
             and t.b_id= #{bId}