package com.ruoyi.production.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDate;
|
import java.time.LocalDateTime;
|
|
/**
|
* @author :yys
|
* @date : 2025/11/26 14:15
|
*/
|
@Data
|
@TableName("production_order")
|
public class ProductionOrder {
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
@ApiModelProperty(value = "录入日期开始")
|
@TableField(exist = false)
|
private String entryDateStart;
|
|
@ApiModelProperty(value = "录入日期结束")
|
@TableField(exist = false)
|
private String entryDateEnd;
|
|
/**
|
* 生产订单号
|
*/
|
@Excel(name = "生产订单号")
|
@ApiModelProperty(value = "生产订单号")
|
private String orderNo;
|
|
/**
|
* 产品大类
|
*/
|
@Excel(name = "产品大类")
|
@ApiModelProperty(value = "产品大类")
|
private String productCategory;
|
|
/**
|
* 规格型号
|
*/
|
@Excel(name = "规格型号")
|
@ApiModelProperty(value = "规格型号")
|
private String specificationModel;
|
|
/**
|
* 单位
|
*/
|
@Excel(name = "单位")
|
@ApiModelProperty(value = "单位")
|
private String unit;
|
|
|
/**
|
* 数量
|
*/
|
@Excel(name = "数量")
|
@ApiModelProperty(value = "数量")
|
private BigDecimal quantity;
|
|
/**
|
* 订单状态
|
*/
|
@Excel(name = "订单状态")
|
@TableField(exist = false)
|
private String status = "未完成";
|
|
/**
|
* 排产数量
|
*/
|
@Excel(name = "排产数量")
|
@ApiModelProperty(value = "排产数量")
|
@TableField(exist = false)
|
private BigDecimal schedulingNum;
|
|
|
/**
|
* 完工数量
|
*/
|
@Excel(name = "完工数量")
|
@ApiModelProperty(value = "完工数量")
|
@TableField(exist = false)
|
private BigDecimal successNum = BigDecimal.ZERO;
|
|
/**
|
* 录入日期
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
@Excel(name = "录入日期", width = 30, dateFormat = "yyyy-MM-dd")
|
@ApiModelProperty(value = "录入日期")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
private LocalDate registerDate;
|
|
/**
|
* 录入人
|
*/
|
@Excel(name = "录入人")
|
@ApiModelProperty(value = "录入人")
|
private String createBy;
|
|
/**
|
* 创建者
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private Integer createUser;
|
|
/**
|
* 创建时间
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private LocalDateTime createTime;
|
|
/**
|
* 修改者
|
*/
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Integer updateUser;
|
|
/**
|
* 修改时间
|
*/
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private LocalDateTime updateTime;
|
|
/**
|
* 租户ID
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private Long tenantId;
|
|
}
|