sjx 2 年 前
コミット
7c28ff1f64

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

@@ -47,6 +47,13 @@ public class PostNoticeController extends BaseController
         return getDataTable(list);
     }
 
+    /**
+     * 搜索公告列表
+     * @param title
+     * @param noticeTimeLeft
+     * @param noticeTimeRight
+     * @return
+     */
     @ApiOperation("搜索公告列表")
     @PreAuthorize("@ss.hasPermi('system:notice:queryNotice')")
     @GetMapping("/queryNotice")

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

@@ -75,4 +75,5 @@ public interface PostNoticeMapper
     public List<PostNotice> selectPostNoticeListOnlyByTitleOrNoticeTime( @Param("noticeTimeLeft")Date noticeTimeLeft, @Param("noticeTimeRight")Date noticeTimeRight);
 
     List<PostNotice> selectPostNoticeListByTitle(@Param("noticeTitle")String title);
+
 }

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

@@ -68,7 +68,7 @@ public interface IPostNoticeService
      * @return
      */
     public String selectDetailByNoticeId(Long noticeId);
-
+    //搜索公告列表
     public List<PostNotice> selectList(String title, Date noticeTimeLeft, Date noticeTimeRight);
 
 

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

@@ -66,6 +66,14 @@ public class PostNoticeServiceImpl implements IPostNoticeService
 //        return postNoticeMapper.selectPostNoticeListByTitleOrNoticeTime(title,noticeTimeLeft,noticeTimeRight);
 //    }
 
+    /**
+     * 搜索公告列表
+     * @param title
+     * @param noticeTimeLeft
+     * @param noticeTimeRight
+     * @return
+     */
+
     @Override
     public List<PostNotice> selectList(String title, Date noticeTimeLeft, Date noticeTimeRight) {
         if (title != null) {

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

@@ -49,6 +49,7 @@
         </where>
     </select>
 
+
     <select id="selectPostNoticeByNoticeId" parameterType="Long" resultMap="PostNoticeResult">
         <include refid="selectPostNoticeVo"/>
         where notice_id = #{noticeId}