新火炬后端单体项目初始化代码
zhangherong
3 天以前 8caf5f04be94d8f52fb291dd045663079d681c19
src/main/java/org/jeecg/modules/mes/entity/MesProductionWorkOrder.java
@@ -1,9 +1,6 @@
package org.jeecg.modules.mes.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -11,10 +8,12 @@
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.constant.CommonConstant;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
@@ -55,7 +54,7 @@
   @Excel(name = "删除标记", width = 15)
    @ApiModelProperty(value = "删除标记")
    @TableLogic
    private Integer delFlag;
    private Integer delFlag = CommonConstant.DEL_FLAG_0;
   /**工单号(任务号)*/
   @Excel(name = "工单号(任务号)", width = 15)
    @ApiModelProperty(value = "工单号(任务号)")
@@ -71,23 +70,26 @@
   /**计划生产数量*/
   @Excel(name = "计划生产数量", width = 15)
    @ApiModelProperty(value = "计划生产数量")
    private Double planQuantity;
    private BigDecimal planQuantity;
   /**产线ID(冗余)*/
   @Excel(name = "产线ID(冗余)", width = 15)
    @Dict(dictTable = "base_factory", dicCode = "id", dicText = "factory_name")
    @ApiModelProperty(value = "产线ID(冗余)")
    private String factoryId;
   /**班组ID*/
   @Excel(name = "班组ID", width = 15)
    @Dict(dictTable = "base_shift_group", dicCode = "id", dicText = "group_name")
    @ApiModelProperty(value = "班组ID")
    private String groupId;
   /**班次ID(冗余)*/
   @Excel(name = "班次ID(冗余)", width = 15)
    @Dict(dictTable = "base_shift", dicCode = "id", dicText = "shift_name")
    @ApiModelProperty(value = "班次ID(冗余)")
    private String shiftId;
   /**排产日期*/
   @Excel(name = "排产日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
   @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
   @Excel(name = "排产日期", width = 20, format = "yyyy-MM-dd")
   @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "排产日期")
    private Date workOrderDate;
   /**工单状态*/
@@ -95,13 +97,29 @@
   @Dict(dicCode = "work_order_status")
    @ApiModelProperty(value = "工单状态")
    private String workOrderStatus;
    /**是否通过齐套性检查*/
    @Excel(name = "是否通过齐套性检查", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否通过齐套性检查")
    private String completenessCheckFlag = CommonConstant.DEFAULT_0;
    /**是否通过设备点检*/
    @Excel(name = "是否通过设备点检", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否通过设备点检")
    private String equipmentInspectionFlag = CommonConstant.DEFAULT_0;
    /**是否通过工艺点检*/
    @Excel(name = "是否通过工艺点检", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否通过工艺点检")
    private String processInspectionFlag = CommonConstant.DEFAULT_0;
   /**实际报工数量*/
   @Excel(name = "实际报工数量", width = 15)
    @ApiModelProperty(value = "实际报工数量")
    private Double actualQuantity;
    private BigDecimal actualQuantity;
   /**发布人*/
   @Excel(name = "发布人", width = 15)
    @ApiModelProperty(value = "发布人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private String publisher;
   /**发布时间*/
   @Excel(name = "发布时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@@ -112,6 +130,7 @@
   /**重发布人*/
   @Excel(name = "重发布人", width = 15)
    @ApiModelProperty(value = "重发布人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private String republisher;
   /**重发布时间*/
   @Excel(name = "重发布时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@@ -119,4 +138,24 @@
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "重发布时间")
    private Date republishTime;
    /**重发布原因*/
    @Excel(name = "重发布原因", width = 30)
    @ApiModelProperty(value = "重发布原因")
    private String republishReason;
    /**产线编码*/
    @TableField(exist = false)
    private String factoryCode;
    /**产线名称*/
    @TableField(exist = false)
    private String factoryName;
    /**班组名称*/
    @TableField(exist = false)
    private String groupName;
    /**班次编码*/
    @TableField(exist = false)
    private String shiftCode;
    /**班次名称*/
    @TableField(exist = false)
    private String shiftName;
}