feat(wms): 添加钢卷通用告警功能
- 创建 WmsMaterialWarning 实体类定义告警数据结构 - 实现 IWmsMaterialWarningService 接口提供告警业务方法 - 开发 WmsMaterialWarningController 控制器支持增删改查操作 - 设计 WmsMaterialWarningBo 和 WmsMaterialWarningVo 数据传输对象 - 配置 WmsMaterialWarningMapper 数据访问层和 XML 映射文件 - 实现 WmsMaterialWarningServiceImpl 业务逻辑处理类 - 添加告警类型、级别、状态等字段支持长度/厚度/宽度维度监控 - 集成 Excel 导出功能便于告警数据统计分析
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
package com.klp.domain.bo;
|
||||
|
||||
import com.klp.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
/**
|
||||
* 钢卷通用维度告警(长度/厚度/宽度)业务对象 wms_material_warning
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-06-06
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class WmsMaterialWarningBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 告警ID
|
||||
*/
|
||||
private Long warningId;
|
||||
|
||||
/**
|
||||
* 钢卷ID
|
||||
*/
|
||||
private Long coilId;
|
||||
|
||||
/**
|
||||
* 告警类型(LENGTH=长度, THICKNESS=厚度, WIDTH=宽度)
|
||||
*/
|
||||
private String warningType;
|
||||
|
||||
/**
|
||||
* 理论值
|
||||
*/
|
||||
private BigDecimal theoreticalVal;
|
||||
|
||||
/**
|
||||
* 实测值
|
||||
*/
|
||||
private BigDecimal actualVal;
|
||||
|
||||
/**
|
||||
* 允许偏差(数值/百分比)
|
||||
*/
|
||||
private BigDecimal allowDeviation;
|
||||
|
||||
/**
|
||||
* 实际偏差值
|
||||
*/
|
||||
private BigDecimal deviationValue;
|
||||
|
||||
/**
|
||||
* 偏差率(%)
|
||||
*/
|
||||
private BigDecimal deviationRate;
|
||||
|
||||
/**
|
||||
* 告警级别(WARNING/ERROR/CRITICAL)
|
||||
*/
|
||||
private String warningLevel;
|
||||
|
||||
/**
|
||||
* 告警说明
|
||||
*/
|
||||
private String warningMsg;
|
||||
|
||||
/**
|
||||
* 告警状态(0=未处理,1=已处理,2=已忽略)
|
||||
*/
|
||||
private Integer warningStatus;
|
||||
|
||||
/**
|
||||
* 处理人
|
||||
*/
|
||||
private String handleBy;
|
||||
|
||||
/**
|
||||
* 处理时间
|
||||
*/
|
||||
private Date handleTime;
|
||||
|
||||
/**
|
||||
* 处理备注
|
||||
*/
|
||||
private String handleRemark;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user