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 java.text.SimpleDateFormat; import java.util.Date; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import com.baomidou.mybatisplus.annotations.TableName; import java.io.Serializable; @Data @TableName("asr_loc_rule") public class LocRule implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value= "") @TableId(value = "id", type = IdType.AUTO) private Long id; @ApiModelProperty(value= "") private String matnr; @ApiModelProperty(value= "") private String specs; @ApiModelProperty(value= "") private String model; @ApiModelProperty(value= "") private String cstmr; @ApiModelProperty(value= "") private String batch; @ApiModelProperty(value= "") private String other; @ApiModelProperty(value= "") @TableField("row_beg") private Integer rowBeg; @ApiModelProperty(value= "") @TableField("row_end") private Integer rowEnd; @ApiModelProperty(value= "") @TableField("bay_beg") private Integer bayBeg; @ApiModelProperty(value= "") @TableField("bay_end") private Integer bayEnd; @ApiModelProperty(value= "") @TableField("lev_beg") private Integer levBeg; @ApiModelProperty(value= "") @TableField("lev_end") private Integer levEnd; @ApiModelProperty(value= "") private Integer limit; @ApiModelProperty(value= "") private Integer status; @ApiModelProperty(value= "") @TableField("create_by") private Long createBy; @ApiModelProperty(value= "") @TableField("create_time") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date createTime; @ApiModelProperty(value= "") @TableField("update_by") private Long updateBy; @ApiModelProperty(value= "") @TableField("update_time") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date updateTime; @ApiModelProperty(value= "") private String memo; /** * 是否支持混载 0: 不支持 1: 支持 */ @ApiModelProperty(value= "是否支持混载 0: 不支持 1: 支持 ") private Short mixed; /** * 支持混载情况下,没找到库位是否继续寻找 0: 否 1: 是 */ @ApiModelProperty(value= "支持混载情况下,没找到库位是否继续寻找 0: 否 1: 是 ") @TableField("keep_go") private Short keepGo; @ApiModelProperty(value= "") private String maktx; public LocRule() {} public LocRule(String matnr,String specs,String model,String cstmr,String batch,String other,Integer rowBeg,Integer rowEnd,Integer bayBeg,Integer bayEnd,Integer levBeg,Integer levEnd,Integer limit,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo,Short mixed,Short keepGo,String maktx) { this.matnr = matnr; this.specs = specs; this.model = model; this.cstmr = cstmr; this.batch = batch; this.other = other; this.rowBeg = rowBeg; this.rowEnd = rowEnd; this.bayBeg = bayBeg; this.bayEnd = bayEnd; this.levBeg = levBeg; this.levEnd = levEnd; this.limit = limit; this.status = status; this.createBy = createBy; this.createTime = createTime; this.updateBy = updateBy; this.updateTime = updateTime; this.memo = memo; this.mixed = mixed; this.keepGo = keepGo; this.maktx = maktx; } // LocRule locRule = new LocRule( // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // // null, // 是否支持混载 // null, // 支持混载情况下,没找到库位是否继续寻找 // null // // ); public String getCreateTime$(){ if (Cools.isEmpty(this.createTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); } public String getUpdateTime$(){ if (Cools.isEmpty(this.updateTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); } public String getMixed$(){ if (null == this.mixed){ return null; } switch (this.mixed){ case 0: return "不支持"; case 1: return "支持"; default: return String.valueOf(this.mixed); } } public String getKeepGo$(){ if (null == this.keepGo){ return null; } switch (this.keepGo){ case 0: return "否"; case 1: return "是"; default: return String.valueOf(this.keepGo); } } }