Files
klp-oa/klp-wms/src/main/java/com/klp/domain/bo/WmsMaterialWarningBo.java
Joshi bdf01feacb feat(warning): 添加钢卷告警批量处理功能
- 在 IWmsMaterialWarningService 中添加 batchHandle 方法接口
- 在 WmsMaterialWarningBo 中新增 warningIds 字段用于存储 ID 集合
- 在 WmsMaterialWarningController 中添加 /batchHandle 接口
- 在 WmsMaterialWarningServiceImpl 中实现批量处理逻辑
- 更新 Excel 导出标题中的分隔符为中文顿号
- 批量处理时自动填充处理人、处理时间和处理状态信息
2026-06-15 13:55:36 +08:00

130 lines
2.3 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 java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
/**
* 钢卷通用维度告警(长度/厚度/宽度)业务对象 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;
/**
* 创建开始时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createStartTime;
/**
* 创建结束时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createEndTime;
// id集合
private List<Long> warningIds;
}