package com.zy.asrs.entity; import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.enums.IdType; import com.baomidou.mybatisplus.annotations.TableField; import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import com.baomidou.mybatisplus.annotations.TableName; import java.io.Serializable; @Data @TableName("man_flow_log") public class FlowLog implements Serializable { private static final long serialVersionUID = 1L; /** * 数据编号 */ @ApiModelProperty(value= "数据编号") @TableId(value = "id", type = IdType.AUTO) private Long id; /** * 流水号 */ @ApiModelProperty(value= "流水号") private String fid; /** * 操作类型 */ @ApiModelProperty(value= "操作类型") @TableField("op_type") private Long opType; /** * 订单号 */ @ApiModelProperty(value= "订单号") @TableField("order_no") private String orderNo; /** * 销售单号 */ @ApiModelProperty(value= "销售单号") @TableField("three_code") private String threeCode; /** * 库位号 */ @ApiModelProperty(value= "库位号") @TableField("loc_no") private String locNo; /** * 物料号 */ @ApiModelProperty(value= "物料号") private String matnr; /** * 物料名称 */ @ApiModelProperty(value= "物料名称") private String maktx; /** * 订单数量变更前 */ @ApiModelProperty(value= "订单数量变更前") @TableField("order_previous") private Double orderPrevious; /** * 订单数量变更后 */ @ApiModelProperty(value= "订单数量变更后") @TableField("order_current") private Double orderCurrent; /** * 订单数量变更 */ @ApiModelProperty(value= "订单数量变更") @TableField("order_changed") private Double orderChanged; /** * 作业数量变更前 */ @ApiModelProperty(value= "作业数量变更前") @TableField("qty_previous") private Double qtyPrevious; /** * 作业数量变更后 */ @ApiModelProperty(value= "作业数量变更后") @TableField("qty_current") private Double qtyCurrent; /** * 作业数量变更 */ @ApiModelProperty(value= "作业数量变更") @TableField("qty_changed") private Double qtyChanged; /** * 变更前数量 */ @ApiModelProperty(value= "变更前数量") @TableField("loc_previous") private Double locPrevious; /** * 变更后数量 */ @ApiModelProperty(value= "变更后数量") @TableField("loc_current") private Double locCurrent; /** * 变更值 */ @ApiModelProperty(value= "变更值") @TableField("loc_changed") private Double locChanged; /** * 备用1 */ @ApiModelProperty(value= "备用1") private String spare1; /** * 备用2 */ @ApiModelProperty(value= "备用2") private String spare2; /** * 备用3 */ @ApiModelProperty(value= "备用3") private String spare3; /** * 备用4 */ @ApiModelProperty(value= "备用4") private String spare4; /** * 备用5 */ @ApiModelProperty(value= "备用5") private String spare5; /** * 操作员 */ @ApiModelProperty(value= "操作员") @TableField("user_id") private Long userId; /** * 更新时间 */ @ApiModelProperty(value= "更新时间") @TableField("appe_time") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date appeTime; public FlowLog() {} public FlowLog(Long id,String fid,Long opType,String orderNo,String threeCode,String locNo,String matnr,String maktx,Double orderPrevious,Double orderCurrent,Double orderChanged,Double qtyPrevious,Double qtyCurrent,Double qtyChanged,Double locPrevious,Double locCurrent,Double locChanged,String spare1,String spare2,String spare3,String spare4,String spare5,Long userId,Date appeTime) { this.id = id; this.fid = fid; this.opType = opType; this.orderNo = orderNo; this.threeCode = threeCode; this.locNo = locNo; this.matnr = matnr; this.maktx = maktx; this.orderPrevious = orderPrevious; this.orderCurrent = orderCurrent; this.orderChanged = orderChanged; this.qtyPrevious = qtyPrevious; this.qtyCurrent = qtyCurrent; this.qtyChanged = qtyChanged; this.locPrevious = locPrevious; this.locCurrent = locCurrent; this.locChanged = locChanged; this.spare1 = spare1; this.spare2 = spare2; this.spare3 = spare3; this.spare4 = spare4; this.spare5 = spare5; this.userId = userId; this.appeTime = appeTime; } // FlowLog flowLog = new FlowLog( // null, // 数据编号[非空] // null, // 流水号 // null, // 操作类型 // null, // 订单号 // null, // 销售单号 // null, // 库位号 // null, // 物料号 // null, // 物料名称 // null, // 订单数量变更前 // null, // 订单数量变更后 // null, // 订单数量变更 // null, // 作业数量变更前 // null, // 作业数量变更后 // null, // 作业数量变更 // null, // 变更前数量 // null, // 变更后数量 // null, // 变更值 // null, // 备用1 // null, // 备用2 // null, // 备用3 // null, // 备用4 // null, // 备用5 // null, // 操作员 // null // 更新时间 // ); public String getAppeTime$(){ if (Cools.isEmpty(this.appeTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); } public String getOpType$() { String otp = ""; if (this.opType == 1L) { otp = "新增订单"; } else if (this.opType == 2L) { otp = "修改订单"; } else if (this.opType == 3L) { otp = "组托入库"; } else if (this.opType == 4L) { otp = "订单出库"; } else if (this.opType == 5L) { otp = "调拨出库"; } else if (this.opType == 6L) { otp = "加工出库"; } else if (this.opType == 7L) { otp = "取消入库"; } else if (this.opType == 8L) { otp = "取消移库"; } else if (this.opType == 9L) { otp = "取消调拨"; } return otp; } }