package com.ruoyi.procurementrecord.pojo;
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
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.framework.aspectj.lang.annotation.Excel;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
@Data
|
@TableName("procurement_demand")
|
@Schema(name = "ProcurementDemand对象", description = "采购需求-BOM齐套缺口")
|
public class ProcurementDemand implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@Schema(description = "主键")
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
@Schema(description = "产品规格id")
|
private Long productModelId;
|
|
@Excel(name = "产品名称")
|
@Schema(description = "产品名称")
|
private String productName;
|
|
@Excel(name = "规格型号")
|
@Schema(description = "规格型号")
|
private String productModel;
|
|
@Excel(name = "单位")
|
@Schema(description = "单位")
|
private String unit;
|
|
@Excel(name = "缺口需求量")
|
@Schema(description = "缺口需求量")
|
private BigDecimal demandQuantity;
|
|
@Excel(name = "可用库存快照")
|
@Schema(description = "生成时可用库存快照")
|
private BigDecimal stockQuantity;
|
|
@Schema(description = "来源BOM id")
|
private Long sourceBomId;
|
|
@Excel(name = "来源BOM编号")
|
@Schema(description = "来源BOM编号")
|
private String sourceBomNo;
|
|
@Excel(name = "状态", readConverterExp = "0=待处理,1=已转采购,2=已取消")
|
@Schema(description = "0待处理 1已转采购 2已取消")
|
private Integer status;
|
|
@Excel(name = "备注")
|
@Schema(description = "备注")
|
private String remark;
|
|
@Schema(description = "创建时间")
|
@TableField(fill = FieldFill.INSERT)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime createTime;
|
|
@Schema(description = "更新时间")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime updateTime;
|
|
@Schema(description = "创建人")
|
@TableField(fill = FieldFill.INSERT)
|
private Long createUser;
|
|
@Schema(description = "更新人")
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Long updateUser;
|
|
@Schema(description = "部门ID")
|
@TableField(fill = FieldFill.INSERT)
|
private Long deptId;
|
}
|