预警通知

This commit is contained in:
Flow 2025-06-18 11:22:50 +08:00
parent 0812471eec
commit 1394344ff1
5 changed files with 16 additions and 0 deletions

View File

@ -24,6 +24,9 @@ public class AlertMessagePageReqVO extends PageParam {
@Schema(description = "用户ID", example = "20700")
private Integer userid;
@Schema(description = "用户名", example = "张三")
private String username;
@Schema(description = "状态0-未读 1-已读", example = "1")
private Integer status;

View File

@ -28,6 +28,10 @@ public class AlertMessageRespVO {
@ExcelProperty("用户ID")
private Integer userid;
@Schema(description = "用户名", example = "张三")
@ExcelProperty("用户名")
private String username;
@Schema(description = "状态0-未读 1-已读", example = "1")
@ExcelProperty("状态0-未读 1-已读")
private Integer status;

View File

@ -24,6 +24,9 @@ public class AlertMessageSaveReqVO {
@Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20700")
private Integer userid;
@Schema(description = "用户名", example = "张三")
private String username;
@Schema(description = "状态0-未读 1-已读", example = "1")
private Integer status;

View File

@ -42,6 +42,11 @@ public class AlertMessageDO {
*/
@TableField("userid")
private Integer userid;
/**
* 用户名
*/
@TableField("username")
private String username;
/**
* 状态0-未读 1-已读
*/

View File

@ -24,6 +24,7 @@ public interface AlertMessageMapper extends BaseMapperX<AlertMessageDO> {
.eqIfPresent(AlertMessageDO::getAlerttype, reqVO.getAlerttype())
.eqIfPresent(AlertMessageDO::getContent, reqVO.getContent())
.eqIfPresent(AlertMessageDO::getUserid, reqVO.getUserid())
.eqIfPresent(AlertMessageDO::getUsername, reqVO.getUsername())
.eqIfPresent(AlertMessageDO::getStatus, reqVO.getStatus())
.betweenIfPresent(AlertMessageDO::getCreatetime, reqVO.getCreatetime())
.betweenIfPresent(AlertMessageDO::getUpdatetime, reqVO.getUpdatetime())