nnnn
This commit is contained in:
@@ -36,10 +36,15 @@ public class SysNotice extends BaseEntity {
|
||||
private String noticeTitle;
|
||||
|
||||
/**
|
||||
* 公告类型(1通知 2公告)
|
||||
* 公告类型(1通知 2公告 3-警告)
|
||||
*/
|
||||
private String noticeType;
|
||||
|
||||
/**
|
||||
* 业务类型
|
||||
*/
|
||||
private String businessType;
|
||||
|
||||
/**
|
||||
* 公告内容
|
||||
*/
|
||||
@@ -50,6 +55,10 @@ public class SysNotice extends BaseEntity {
|
||||
*/
|
||||
private String status;
|
||||
|
||||
private String dealBy;
|
||||
|
||||
private String dealTime;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.ruoyi.system.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SysNoticeDealData {
|
||||
private Long noticeId;
|
||||
private String remark;
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package com.ruoyi.system.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
@@ -30,7 +31,8 @@ public class SysNoticeServiceImpl implements ISysNoticeService {
|
||||
LambdaQueryWrapper<SysNotice> lqw = new LambdaQueryWrapper<SysNotice>()
|
||||
.like(StringUtils.isNotBlank(notice.getNoticeTitle()), SysNotice::getNoticeTitle, notice.getNoticeTitle())
|
||||
.eq(StringUtils.isNotBlank(notice.getNoticeType()), SysNotice::getNoticeType, notice.getNoticeType())
|
||||
.like(StringUtils.isNotBlank(notice.getCreateBy()), SysNotice::getCreateBy, notice.getCreateBy());
|
||||
.eq(StringUtils.isNotBlank(notice.getStatus()),SysNotice::getStatus, notice.getStatus())
|
||||
.orderByDesc(BaseEntity::getCreateTime);
|
||||
Page<SysNotice> page = baseMapper.selectPage(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(page);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user