Files
klp-oa/klp-wms/src/main/java/com/klp/domain/bo/WmsMaterialWarningBo.java
Joshi cd2e4016a6 feat(warning): 添加产线类型字段支持告警功能
- 在 WmsMaterialWarning 实体中新增 actionType 字段
- 在 WmsMaterialWarningBo 和 WmsMaterialWarningVo 中添加 actionType 属性
- 更新 WmsMaterialWarningMapper.xml 映射文件以包含 actionType 字段
- 在 WmsMaterialWarningServiceImpl 中注入 WmsCoilPendingActionMapper
- 实现告警查询时根据产线类型过滤的功能
- 在告警插入前查询并设置对应的产线类型信息
- 完善告警服务中的厚度和长度检查逻辑
2026-06-10 17:44:56 +08:00

110 lines
1.8 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 Integer actionType;
/**
* 理论值
*/
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;
/**
* 钢卷ID集合逗号分隔用于列表查询批量过滤
*/
private String coilIds;
/**
* 备注
*/
private String remark;
}