Jelajahi Sumber

搜索完善

sjx 2 tahun lalu
induk
melakukan
9d49c57e0e

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/PostNoticeController.java

@@ -48,7 +48,7 @@ public class PostNoticeController extends BaseController
     }
 
     /**
-     * 搜索公告列表
+     * 搜索公告列表.
      * @param title
      * @param noticeTimeLeft
      * @param noticeTimeRight

+ 0 - 1
ruoyi-system/src/main/java/com/ruoyi/system/mapper/PostNoticeMapper.java

@@ -64,7 +64,6 @@ public interface PostNoticeMapper
 
     /**
      * 批量删除公告
-     *
      * @param noticeIds 需要删除的数据主键集合
      * @return 结果
      */

+ 0 - 1
ruoyi-system/src/main/java/com/ruoyi/system/service/IPostNoticeService.java

@@ -63,7 +63,6 @@ public interface IPostNoticeService
 
     /**
      * 查询公告详情
-     *
      * @param noticeId
      * @return
      */

+ 0 - 1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PostNoticeServiceImpl.java

@@ -73,7 +73,6 @@ public class PostNoticeServiceImpl implements IPostNoticeService
      * @param noticeTimeRight
      * @return
      */
-
     @Override
     public List<PostNotice> selectList(String title, Date noticeTimeLeft, Date noticeTimeRight) {
         if (title != null) {

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

@@ -45,7 +45,7 @@
     <select id="selectPostNoticeListByTitle" resultType="PostNotice" resultMap="PostNoticeResult">
         <include refid="selectPostNoticeVo"/>
         <where>
-            <if test="noticeTitle != null  and noticeTitle != ''"> and notice_title LIKE '%${noticeTitle}%'</if>
+            <if test="noticeTitle != null  and noticeTitle != ''"> and notice_title LIKE '%${noticeTitle}%' </if>
         </where>
     </select>