Browse Source

通知公告:使用LomBook

Signed-off-by: hamjin <335908093@qq.com>
hamjin 2 years ago
parent
commit
ce6855a24b

+ 3 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/PoNoticeController.java

@@ -32,7 +32,7 @@ public class PoNoticeController extends BaseController {
      */
     @PreAuthorize("@ss.hasPermi('system:notice:list')")
     @GetMapping("/list")
-    @ApiOperation("获取通知公告")
+    @ApiOperation("通知公告获取列表, 搜索")
     public TableDataInfo list(PoNotice poNotice) {
         startPage();
         List<PoNotice> list = poNoticeService.selectPoNoticeList(poNotice);
@@ -40,7 +40,7 @@ public class PoNoticeController extends BaseController {
     }
 
     /**
-     * 获取通知公告列表
+     * 导出通知公告列表
      */
     @PreAuthorize("@ss.hasPermi('system:notice:list')")
     @GetMapping("/export")
@@ -56,7 +56,7 @@ public class PoNoticeController extends BaseController {
      */
     @PreAuthorize("@ss.hasPermi('system:notice:query')")
     @GetMapping(value = "/{poNoticeId}")
-    @ApiOperation("获取通知公告内容")
+    @ApiOperation("获取通知公告详情")
     public AjaxResult getInfo(@PathVariable("poNoticeId") Long poNoticeId) {
         return success(poNoticeService.selectPoNoticeById(poNoticeId));
     }

+ 2 - 89
ruoyi-system/src/main/java/com/ruoyi/system/domain/PoNotice.java

@@ -2,7 +2,7 @@ package com.ruoyi.system.domain;
 
 import com.ruoyi.common.annotation.Excel;
 import com.ruoyi.common.core.domain.BaseEntity;
-import org.apache.commons.lang3.builder.ToStringBuilder;
+import lombok.Data;
 
 import java.util.List;
 
@@ -11,7 +11,7 @@ import java.util.List;
  *
  * @author blue
  */
-
+@Data
 public class PoNotice extends BaseEntity {
     private static final long serialVersionUID = 1L;
     /**
@@ -67,91 +67,4 @@ public class PoNotice extends BaseEntity {
      */
     @Excel(name = "逻辑删除状态", readConverterExp = "0未删除,1删除")
     private Boolean delFlag;
-
-    public Long getNoticeId() {
-        return noticeId;
-    }
-
-    public void setNoticeId(Long noticeId) {
-        this.noticeId = noticeId;
-    }
-
-    public String getNoticeTitle() {
-        return noticeTitle;
-    }
-
-    public void setNoticeTitle(String noticeTitle) {
-        this.noticeTitle = noticeTitle;
-    }
-
-    public String getNoticeContent() {
-        return noticeContent;
-    }
-
-    public void setNoticeContent(String noticeContent) {
-        this.noticeContent = noticeContent;
-    }
-
-    public Integer getNoticeType() {
-        return noticeType;
-    }
-
-    public void setNoticeType(Integer noticeType) {
-        this.noticeType = noticeType;
-    }
-
-    public Integer getStatus() {
-        return status;
-    }
-
-    public void setStatus(Integer status) {
-        this.status = status;
-    }
-
-    public Long getPublisherId() {
-        return publisherId;
-    }
-
-    public void setPublisherId(Long publisherId) {
-        this.publisherId = publisherId;
-    }
-
-    public List<String> getUserId() {
-        return userId;
-    }
-
-    public void setUserId(List<String> userId) {
-        this.userId = userId;
-    }
-
-    public List<String> getReadUserId() {
-        return readUserId;
-    }
-
-    public void setReadUserId(List<String> readUserId) {
-        this.readUserId = readUserId;
-    }
-
-    public Boolean getDelFlag() {
-        return delFlag;
-    }
-
-    public void setDelFlag(Boolean delFlag) {
-        this.delFlag = delFlag;
-    }
-
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this)
-                .append("noticeId", noticeId)
-                .append("noticeTitle", noticeTitle)
-                .append("noticeContent", noticeContent)
-                .append("noticeType", noticeType)
-                .append("status", status)
-                .append("publisherId", publisherId)
-                .append("userId", userId)
-                .append("readUserId", readUserId)
-                .append("delFlag", delFlag)
-                .toString();
-    }
 }