From ebce471ec71ea6acdef92b4316d12e62ae223512 Mon Sep 17 00:00:00 2001 From: zjj <zjj123> Date: 星期一, 29 九月 2025 13:42:04 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/integrationWms' into integrationWms --- src/main/java/com/zy/asrs/entity/LocCache.java | 326 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 326 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/LocCache.java b/src/main/java/com/zy/asrs/entity/LocCache.java new file mode 100644 index 0000000..8fad291 --- /dev/null +++ b/src/main/java/com/zy/asrs/entity/LocCache.java @@ -0,0 +1,326 @@ +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 com.core.common.SpringUtils; +import com.zy.asrs.enums.LocStsType; +import com.zy.asrs.service.BasWhsTypeService; +import com.zy.asrs.service.BasCrnpService; + +import java.text.SimpleDateFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; +import com.zy.system.service.UserService; +import com.zy.system.entity.User; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import com.baomidou.mybatisplus.annotations.TableName; +import java.io.Serializable; + +@Data +@TableName("asr_loc_cache") +public class LocCache implements Serializable { + + private static final long serialVersionUID = 1L; + + + @ApiModelProperty("涓婚敭ID") + @TableId + private Long id; + + /** + * 搴撲綅鍙� + */ + @ApiModelProperty(value= "搴撲綅鍙�") + @TableField("loc_no") + private String locNo; + + /** + * 搴撲綅绫诲瀷 + */ + @ApiModelProperty(value= "搴撲綅绫诲瀷") + @TableField("whs_type") + private Long whsType; + + @ApiModelProperty(value= "") + @TableField("loc_sts") + private String locSts; + + /** + * 鎺� + */ + @ApiModelProperty(value= "鎺�") + private Integer row1; + + /** + * 鍒� + */ + @ApiModelProperty(value= "鍒�") + private Integer bay1; + + /** + * 灞� + */ + @ApiModelProperty(value= "灞�") + private Integer lev1; + + /** + * 婊℃澘(checkBox) + */ + @ApiModelProperty(value= "婊℃澘(checkBox)") + @TableField("full_plt") + private String fullPlt; + + /** + * 搴撲綅鐘舵�� + */ + @ApiModelProperty(value= "搴撲綅鐘舵��") + @TableField("loc_type") + private String locType; + + /** + * 楂樹綆绫诲瀷 0: 鏈煡 1: 浣庡簱浣� 2: 楂樺簱浣� + */ + @ApiModelProperty(value= "楂樹綆绫诲瀷 0: 鏈煡 1: 浣庡簱浣� 2: 楂樺簱浣� ") + @TableField("loc_type1") + private Short locType1; + + /** + * 瀹界獎绫诲瀷 0: 鏈煡 1: 绐勫簱浣� 2: 瀹藉簱浣� + */ + @ApiModelProperty(value= "瀹界獎绫诲瀷 0: 鏈煡 1: 绐勫簱浣� 2: 瀹藉簱浣� ") + @TableField("loc_type2") + private Short locType2; + + /** + * 杞婚噸绫诲瀷 0: 鏈煡 1: 杞诲簱浣� 2: 閲嶅簱浣� + */ + @ApiModelProperty(value= "杞婚噸绫诲瀷 0: 鏈煡 1: 杞诲簱浣� 2: 閲嶅簱浣� ") + @TableField("loc_type3") + private Short locType3; + + @ApiModelProperty(value= "") + @TableField("out_enable") + private String outEnable; + + @ApiModelProperty(value= "") + @TableField("io_time") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + private Date ioTime; + + @ApiModelProperty(value= "") + @TableField("first_time") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + private Date firstTime; + + /** + * 淇敼浜哄憳 + */ + @ApiModelProperty(value= "淇敼浜哄憳") + @TableField("modi_user") + private Long modiUser; + + /** + * 淇敼鏃堕棿 + */ + @ApiModelProperty(value= "淇敼鏃堕棿") + @TableField("modi_time") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + private Date modiTime; + + /** + * 鍒涘缓鑰� + */ + @ApiModelProperty(value= "鍒涘缓鑰�") + @TableField("appe_user") + private Long appeUser; + + /** + * 娣诲姞鏃堕棿 + */ + @ApiModelProperty(value= "娣诲姞鏃堕棿") + @TableField("appe_time") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + private Date appeTime; + + @ApiModelProperty(value= "") + private String barcode; + + @ApiModelProperty("搴撳尯ID") + @TableField("area_id") + private Long areaId; + + @ApiModelProperty("搴撳尯鍚嶇О") + @TableField("area_name") + private String areaName; + + @ApiModelProperty("浼樺厛绾�") + private Integer sort; + + /** + * 鏄惁鍐荤粨,0.鏈喕缁擄紝1.宸插喕缁� + */ + @ApiModelProperty(value= "鏄惁鍐荤粨,0.鏈喕缁擄紝1.宸插喕缁�") + private Integer frozen; + + /** + * 鍐荤粨澶囨敞 + */ + @ApiModelProperty(value= "鍐荤粨澶囨敞") + @TableField("frozen_memo") + private String frozenMemo; + + public LocCache() {} + + public LocCache(String locNo,Long whsType,Integer pltType,Integer ctnType,String locSts,String sheetNo,Integer crnNo,Integer row1,Integer bay1,Integer lev1,String fullPlt,String locType,Short locType1,Short locType2,Short locType3,String outEnable,Date ioTime,Date firstTime,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Date errorTime,String errorMemo,Integer ctnKind,Double scWeight,String invWh,String mk,String barcode,String PdcType,String ctnNo,Integer libraryType,Integer gro1,Integer frozen,String frozenMemo) { + this.locNo = locNo; + this.whsType = whsType; + this.locSts = locSts; + this.row1 = row1; + this.bay1 = bay1; + this.lev1 = lev1; + this.fullPlt = fullPlt; + this.locType = locType; + this.locType1 = locType1; + this.locType2 = locType2; + this.locType3 = locType3; + this.outEnable = outEnable; + this.ioTime = ioTime; + this.firstTime = firstTime; + this.modiUser = modiUser; + this.modiTime = modiTime; + this.appeUser = appeUser; + this.appeTime = appeTime; + this.barcode = barcode; + this.frozen = frozen; + this.frozenMemo = frozenMemo; + } + + + public String getWhsType$(){ + BasWhsTypeService service = SpringUtils.getBean(BasWhsTypeService.class); + BasWhsType basWhsType = service.selectById(this.whsType); + if (!Cools.isEmpty(basWhsType)){ + return String.valueOf(basWhsType.getWhsDesc()); + } + return null; + } + + public String getLocSts$() { + if (this.locSts.equals(LocStsType.LOC_STS_TYPE_F.type)) { + return LocStsType.LOC_STS_TYPE_F.desc; + } else if (locSts.equals(LocStsType.LOC_STS_TYPE_D.type)) { + return LocStsType.LOC_STS_TYPE_D.desc; + } else if (locSts.equals(LocStsType.LOC_STS_TYPE_O.type)) { + return LocStsType.LOC_STS_TYPE_F.desc; + } else if (locSts.equals(LocStsType.LOC_STS_TYPE_R.type)) { + return LocStsType.LOC_STS_TYPE_R.desc; + } else if (locSts.equals(LocStsType.LOC_STS_TYPE_S.type)) { + return LocStsType.LOC_STS_TYPE_S.desc; + } else if (locSts.equals(LocStsType.LOC_STS_TYPE_X.type)) { + return LocStsType.LOC_STS_TYPE_X.desc; + } else { + return null; + } + } + +// public String getCrnNo$(){ +// BasCrnpService service = SpringUtils.getBean(BasCrnpService.class); +// BasCrnp basCrnp = service.selectById(this.crnNo); +// if (!Cools.isEmpty(basCrnp)){ +// return String.valueOf(basCrnp.getCrnNo()); +// } +// return null; +// } + + 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 getIoTime$(){ + if (Cools.isEmpty(this.ioTime)){ + return ""; + } + return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); + } + + public String getFirstTime$(){ + if (Cools.isEmpty(this.firstTime)){ + return ""; + } + return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.firstTime); + } + + public String getModiUser$(){ + UserService service = SpringUtils.getBean(UserService.class); + User user = service.selectById(this.modiUser); + if (!Cools.isEmpty(user)){ + return String.valueOf(user.getNickname()); + } + 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.selectById(this.appeUser); + if (!Cools.isEmpty(user)){ + return String.valueOf(user.getNickname()); + } + return null; + } + + public String getAppeTime$(){ + if (Cools.isEmpty(this.appeTime)){ + return ""; + } + return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); + } + +} -- Gitblit v1.9.1