package com.zy.asrs.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.IdType; import com.core.common.Cools; import com.core.common.SpringUtils; import com.zy.system.entity.User; import com.zy.system.service.UserService; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; @Data @TableName("asr_bas_devp") public class BasDevp implements Serializable { private static final long serialVersionUID = 1L; /** * 编号 */ @Schema(description = "编号") @TableId(value = "dev_no", type = IdType.INPUT) @TableField("dev_no") private Integer devNo; /** * 设备描述 */ @Schema(description = "设备描述") @TableField("dec_desc") private String decDesc; /** * 备注 */ @Schema(description = "备注") @TableField("dev_mk") private String devMk; /** * 可入 */ @Schema(description = "可入") @TableField("in_enable") private String inEnable; /** * 可出 */ @Schema(description = "可出") @TableField("out_enable") private String outEnable; /** * 自动 */ @Schema(description = "自动") private String autoing; /** * 有物 */ @Schema(description = "有物") private String loading; /** * 空板 */ @Schema(description = "空板") @TableField("empty_mk") private String emptyMk; /** * 能入 */ @Schema(description = "能入") private String canining; /** * 能出 */ @Schema(description = "能出") private String canouting; @Schema(description = "") private String fronting; @Schema(description = "") private String rearing; @Schema(description = "") private String uping; @Schema(description = "") private String downing; /** * 需求1 */ @Schema(description = "需求1") private String inreq1; /** * 需求2 */ @Schema(description = "需求2") private String inreq2; /** * 工作号 */ @Schema(description = "工作号") @TableField("wrk_no") private Long wrkNo; @Schema(description = "") @TableField("wrk_no1") private Long wrkNo1; /** * 容器类型 */ @Schema(description = "容器类型") @TableField("ctn_type") private Integer ctnType; /** * 条形码 */ @Schema(description = "条形码") private String barcode; @Schema(description = "入库暂存数") @TableField("in_qty") private Integer inQty; @Schema(description = "") private Integer row1; @Schema(description = "") @TableField("io_time") private Date ioTime; @Schema(description = "") private String area; @Schema(description = "") @TableField("in_ok") private String inOk; @Schema(description = "") @TableField("out_ok") private String outOk; @Schema(description = "高低类型{0:未知,1:低库位,2:高库位}") @TableField("loc_type1") private Short locType1; @Schema(description = "宽窄类型{0:未知,1:窄库位,2:宽库位}") @TableField("loc_type2") private Short locType2; @Schema(description = "轻重类型{0:未知,1:轻库位,2:重库位}") @TableField("loc_type3") private Short locType3; /** * 修改人员 */ @Schema(description = "修改人员") @TableField("modi_user") private Long modiUser; /** * 修改时间 */ @Schema(description = "修改时间") @TableField("modi_time") private Date modiTime; /** * 创建者 */ @Schema(description = "创建者") @TableField("appe_user") private Long appeUser; /** * 添加时间 */ @Schema(description = "添加时间") @TableField("appe_time") private Date appeTime; @Schema(description = "") @TableField("std_qty") private Double stdQty; @Schema(description = "") @TableField("min_wt") private Double minWt; @Schema(description = "") @TableField("max_wt") private Double maxWt; /** * 重量 */ @Schema(description = "重量") @TableField("gross_wt") private Double grossWt; @Schema(description = "") @TableField("cart_pos") private Integer cartPos; @Schema(description = "1楼拆垛上传叠盘回库标记") @TableField("report_sign") private Integer reportSign; public String getIoTime$(){ if (Cools.isEmpty(this.ioTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); } public String getLocType1$() { if (null == this.locType1){ return null; } switch (this.locType1){ case 0: return "未知"; case 1: return "低库位"; case 2: return "高库位"; default: return String.valueOf(this.locType1); } } public String getLocType2$() { if (null == this.locType2){ return null; } switch (this.locType2){ case 0: return "未知"; case 1: return "窄库位"; case 2: return "宽库位"; default: return String.valueOf(this.locType2); } } public String getLocType3$() { if (null == this.locType3){ return null; } switch (this.locType3){ case 0: return "未知"; case 1: return "轻库位"; case 2: return "重库位"; default: return String.valueOf(this.locType3); } } public String getModiUser$(){ UserService service = SpringUtils.getBean(UserService.class); User user = service.getById(this.modiUser); if (!Cools.isEmpty(user)){ return String.valueOf(user.getUsername()); } return null; } public String getModiTime$(){ if (Cools.isEmpty(this.modiTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); } public String getAppeUser$(){ UserService service = SpringUtils.getBean(UserService.class); User user = service.getById(this.appeUser); if (!Cools.isEmpty(user)){ return String.valueOf(user.getUsername()); } return null; } public String getAppeTime$(){ if (Cools.isEmpty(this.appeTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); } }