新火炬后端单体项目初始化代码
zhangherong
4 小时以前 a5aa9503efd20103df066219c512b47b7f65e363
src/main/java/org/jeecg/modules/pms/entity/PmsMaterialProcess.java
@@ -2,7 +2,6 @@
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.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
@@ -10,8 +9,7 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.modules.sap.dto.OrderProcessDTO;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
@@ -20,65 +18,64 @@
/**
 * @Description: 物料工序
 * @Author: jeecg-boot
 * @Date:   2025-07-01
 * @Date: 2025-07-01
 * @Version: V1.0
 */
@Data
@TableName("pms_material_process")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="pms_material_process对象", description="物料工序")
@ApiModel(value = "pms_material_process对象", description = "物料工序")
public class PmsMaterialProcess implements Serializable {
    private static final long serialVersionUID = 1L;
   /**主键*/
   @TableId(type = IdType.ASSIGN_ID)
    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
   /**创建人*/
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
   /**创建日期*/
   @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="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")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
   /**更新人*/
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
   /**更新日期*/
   @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="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")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
   /**删除标记*/
   @Excel(name = "删除标记", width = 15)
    @ApiModelProperty(value = "删除标记")
    @TableLogic
    private Integer delFlag;
   /**物料编码*/
   @Excel(name = "物料编码", width = 15)
    /**生产订单ID*/
    @ApiModelProperty(value = "生产订单ID")
    private String orderId;
    /**物料编码*/
    @ApiModelProperty(value = "物料编码")
    private String materialNumber;
   /**物料名称*/
   @Excel(name = "物料名称", width = 15)
    /**物料名称*/
    @ApiModelProperty(value = "物料名称")
    private String materialName;
   /**产线ID(SAP工作中心)*/
   @Excel(name = "产线ID(SAP工作中心)", width = 15)
    @ApiModelProperty(value = "产线ID(SAP工作中心)")
    @Dict(dictTable = "base_factory", dicCode = "id", dicText = "factory_name")
    private String factoryId;
   /**工序号*/
   @Excel(name = "工序号", width = 15)
    /**工序号*/
    @ApiModelProperty(value = "工序号")
    private String processCode;
   /**工序名称*/
   @Excel(name = "工序名称", width = 15)
    /**工序名称*/
    @ApiModelProperty(value = "工序名称")
    private String processName;
   /**控制码*/
   @Excel(name = "控制码", width = 15)
    /**控制码*/
    @ApiModelProperty(value = "控制码")
    private String controlCode;
    public PmsMaterialProcess(){}
    public PmsMaterialProcess(String orderId, String materialName,  OrderProcessDTO dto) {
        this.orderId = orderId;
        this.materialNumber = dto.getMATNR();
        this.materialName = materialName;
        this.processCode = dto.getVORNR();
        this.processName = dto.getLTXA1();
        this.controlCode = dto.getSTEUS();
    }
}