package cn.iocoder.yudao.module.mes.dal.dataobject.pro.alert;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.math.BigDecimal;
|
|
/**
|
* MES 工单物料超耗报警记录 DO
|
*
|
* @author 超级管理员
|
*/
|
@TableName("mes_pro_over_consume_alert")
|
@KeySequence("mes_pro_over_consume_alert_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class MesProOverConsumeAlertDO extends BaseDO {
|
|
/**
|
* 编号
|
*/
|
@TableId
|
private Long id;
|
/**
|
* 生产工单编号
|
*/
|
private Long workOrderId;
|
/**
|
* 生产工单编码
|
*/
|
private String workOrderCode;
|
/**
|
* 产品编号
|
*/
|
private Long productId;
|
/**
|
* 产品名称
|
*/
|
private String productName;
|
/**
|
* 物料编号
|
*/
|
private Long itemId;
|
/**
|
* 物料编码
|
*/
|
private String itemCode;
|
/**
|
* 物料名称
|
*/
|
private String itemName;
|
/**
|
* 标准用量(按已报工数量)
|
*/
|
private BigDecimal standardQuantity;
|
/**
|
* 实际用量
|
*/
|
private BigDecimal actualQuantity;
|
/**
|
* 超耗数量
|
*/
|
private BigDecimal overQuantity;
|
/**
|
* 超耗比例(%)
|
*/
|
private BigDecimal overRatio;
|
/**
|
* 报警阈值(%)
|
*/
|
private BigDecimal thresholdRatio;
|
/**
|
* 物料单价
|
*/
|
private BigDecimal unitPrice;
|
/**
|
* 超耗金额
|
*/
|
private BigDecimal overAmount;
|
/**
|
* 接收人用户编号(逗号分隔)
|
*/
|
private String notifyUserIds;
|
/**
|
* 站内信消息编号
|
*/
|
private Long messageId;
|
/**
|
* 发送状态:SENT / FAILED
|
*/
|
private String status;
|
/**
|
* 失败原因
|
*/
|
private String errorMessage;
|
|
}
|