package com.ruoyi.business.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.common.core.domain.MyBaseEntity;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDate;
|
import java.util.Date;
|
|
/**
|
* @author :yys
|
* @date : 2025/8/25 16:28
|
*/
|
@Data
|
@TableName("production_scheduling")
|
public class ProductionScheduling extends MyBaseEntity {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键ID
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
/**
|
* 生产明细id
|
*/
|
@TableField(value = "production_id")
|
private Long productionId;
|
/**
|
* 煤种ID
|
*/
|
@TableField(value = "coal_id")
|
private Long coalId;
|
|
/**
|
* 总数量
|
*/
|
@TableField(exist = false)
|
private BigDecimal productionQuantity;
|
/**
|
* 排产数量
|
*/
|
@TableField(value = "scheduling_num")
|
private BigDecimal schedulingNum;
|
|
/**
|
* 入库数量
|
*/
|
@TableField(value = "success_num")
|
private BigDecimal successNum;
|
/**
|
* 煤料类型(1-成品 2-原料)
|
*/
|
@TableField(value = "type")
|
private Integer type;
|
/**
|
*状态(1-待生产 2-生产中 3-已报工)
|
*/
|
@TableField(value = "status")
|
private Integer status;
|
|
/**
|
* 单位
|
*/
|
@TableField(value = "unit")
|
private String unit;
|
/**
|
* 工序(字典)
|
*/
|
@TableField(value = "process")
|
private String process;
|
/**
|
* 工时定额
|
*/
|
@TableField(value = "work_hours")
|
private BigDecimal workHours;
|
/**
|
* 排产日期
|
*/
|
@TableField(value = "scheduling_date")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
private Date schedulingDate;
|
/**
|
* 排产人id
|
*/
|
@TableField(value = "scheduling_user_id")
|
private Long schedulingUserId;
|
/**
|
* 排产人名称
|
*/
|
@TableField(value = "scheduling_user_name")
|
private String schedulingUserName;
|
|
}
|