From 65c13f7dafe0945ccd9b657cc31c4d4bc3a94359 Mon Sep 17 00:00:00 2001
From: yangyang
Date: 星期三, 02 七月 2025 19:38:39 +0800
Subject: [PATCH] 添加容器管理
---
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/Container.java | 292 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 292 insertions(+), 0 deletions(-)
diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/Container.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/Container.java
new file mode 100644
index 0000000..3b281f2
--- /dev/null
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/Container.java
@@ -0,0 +1,292 @@
+package com.zy.asrs.wms.asrs.entity;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import com.zy.asrs.wms.system.entity.User;
+import org.springframework.format.annotation.DateTimeFormat;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+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 io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import com.zy.asrs.framework.common.Cools;
+import com.zy.asrs.framework.common.SpringUtils;
+import com.zy.asrs.wms.system.service.UserService;
+import com.zy.asrs.wms.system.service.HostService;
+import com.zy.asrs.common.utils.Synchro;
+
+import java.io.Serializable;
+import java.util.Date;
+
+@Data
+@TableName("man_container")
+public class Container implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * ID
+ */
+ @ApiModelProperty(value= "ID")
+ @TableId(value = "id", type = IdType.AUTO)
+ private Long id;
+
+ /**
+ * 鍚嶇О
+ */
+ @ApiModelProperty(value= "鍚嶇О")
+ private String name;
+
+ /**
+ * 瀹瑰櫒缂栫爜
+ */
+ @ApiModelProperty(value= "瀹瑰櫒缂栫爜")
+ private String code;
+
+ /**
+ * 瀹瑰櫒绫诲瀷 1: 閽㈡墭鐩� 2: 鏈ㄦ墭鐩� 3: 濉戞枡鏂欐 4: 鎵樼洏绗肩 5: 閽㈡枡鏋�
+ */
+ @ApiModelProperty(value= "瀹瑰櫒绫诲瀷 1: 閽㈡墭鐩� 2: 鏈ㄦ墭鐩� 3: 濉戞枡鏂欐 4: 鎵樼洏绗肩 5: 閽㈡枡鏋� ")
+ private String type;
+
+ /**
+ * 浣跨敤娆℃暟
+ */
+ @ApiModelProperty(value= "浣跨敤娆℃暟")
+ private Integer used;
+
+ /**
+ * 闀垮害
+ */
+ @ApiModelProperty(value= "闀垮害")
+ private Double length;
+
+ /**
+ * 瀹藉害
+ */
+ @ApiModelProperty(value= "瀹藉害")
+ private Double width;
+
+ /**
+ * 楂樺害
+ */
+ @ApiModelProperty(value= "楂樺害")
+ private Double height;
+
+ /**
+ * 鏈夋晥鏈�
+ */
+ @ApiModelProperty(value= "鏈夋晥鏈�")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ private Date vaildTime;
+
+ /**
+ * 鏄惁鍥炴敹 1: 鏄� 0: 鍚�
+ */
+ @ApiModelProperty(value= "鏄惁鍥炴敹 1: 鏄� 0: 鍚� ")
+ private Short flagRycle;
+
+ /**
+ * 鏄惁铏氭嫙 1: 鏄� 0: 鍚�
+ */
+ @ApiModelProperty(value= "鏄惁铏氭嫙 1: 鏄� 0: 鍚� ")
+ private Short flagLogic;
+
+ /**
+ * 鐘舵�� 1: 姝e父 0: 鍐荤粨
+ */
+ @ApiModelProperty(value= "鐘舵�� 1: 姝e父 0: 鍐荤粨 ")
+ private Integer status;
+
+ /**
+ * 鏄惁鍒犻櫎 1: 鏄� 0: 鍚�
+ */
+ @ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄� 0: 鍚� ")
+ @TableLogic
+ private Integer deleted;
+
+ /**
+ * 绉熸埛
+ */
+ @ApiModelProperty(value= "绉熸埛")
+ private Integer tenantId;
+
+ /**
+ * 娣诲姞浜哄憳
+ */
+ @ApiModelProperty(value= "娣诲姞浜哄憳")
+ private Long createBy;
+
+ /**
+ * 娣诲姞鏃堕棿
+ */
+ @ApiModelProperty(value= "娣诲姞鏃堕棿")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ private Date createTime;
+
+ /**
+ * 淇敼浜哄憳
+ */
+ @ApiModelProperty(value= "淇敼浜哄憳")
+ private Long updateBy;
+
+ /**
+ * 淇敼鏃堕棿
+ */
+ @ApiModelProperty(value= "淇敼鏃堕棿")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ private Date updateTime;
+
+ /**
+ * 澶囨敞
+ */
+ @ApiModelProperty(value= "澶囨敞")
+ private String memo;
+
+ public Container() {}
+
+ public Container(String name,String code,String type,Integer used,Double length,Double width,Double height,Date vaildTime,Short flagRycle,Short flagLogic,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
+ this.name = name;
+ this.code = code;
+ this.type = type;
+ this.used = used;
+ this.length = length;
+ this.width = width;
+ this.height = height;
+ this.vaildTime = vaildTime;
+ this.flagRycle = flagRycle;
+ this.flagLogic = flagLogic;
+ this.status = status;
+ this.deleted = deleted;
+ this.tenantId = tenantId;
+ this.createBy = createBy;
+ this.createTime = createTime;
+ this.updateBy = updateBy;
+ this.updateTime = updateTime;
+ this.memo = memo;
+ }
+
+// Container container = new Container(
+// null, // 鍚嶇О
+// null, // 瀹瑰櫒缂栫爜[闈炵┖]
+// null, // 瀹瑰櫒绫诲瀷[闈炵┖]
+// null, // 浣跨敤娆℃暟[闈炵┖]
+// null, // 闀垮害
+// null, // 瀹藉害
+// null, // 楂樺害
+// null, // 鏈夋晥鏈�
+// null, // 鏄惁鍥炴敹[闈炵┖]
+// null, // 鏄惁铏氭嫙[闈炵┖]
+// null, // 鐘舵�乕闈炵┖]
+// null, // 鏄惁鍒犻櫎[闈炵┖]
+// null, // 绉熸埛
+// null, // 娣诲姞浜哄憳
+// null, // 娣诲姞鏃堕棿[闈炵┖]
+// null, // 淇敼浜哄憳
+// null, // 淇敼鏃堕棿[闈炵┖]
+// null // 澶囨敞
+// );
+
+
+ public String getVaildTime$(){
+ if (Cools.isEmpty(this.vaildTime)){
+ return "";
+ }
+ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.vaildTime);
+ }
+
+ public String getFlagRycle$(){
+ if (null == this.flagRycle){ return null; }
+ switch (this.flagRycle){
+ case 1:
+ return "鏄�";
+ case 0:
+ return "鍚�";
+ default:
+ return String.valueOf(this.flagRycle);
+ }
+ }
+
+ public String getFlagLogic$(){
+ if (null == this.flagLogic){ return null; }
+ switch (this.flagLogic){
+ case 1:
+ return "鏄�";
+ case 0:
+ return "鍚�";
+ default:
+ return String.valueOf(this.flagLogic);
+ }
+ }
+
+ public String getStatus$(){
+ if (null == this.status){ return null; }
+ switch (this.status){
+ case 1:
+ return "姝e父";
+ case 0:
+ return "鍐荤粨";
+ default:
+ return String.valueOf(this.status);
+ }
+ }
+
+ public String getDeleted$(){
+ if (null == this.deleted){ return null; }
+ switch (this.deleted){
+ case 1:
+ return "鏄�";
+ case 0:
+ return "鍚�";
+ default:
+ return String.valueOf(this.deleted);
+ }
+ }
+
+ public String getCreateBy$(){
+ UserService service = SpringUtils.getBean(UserService.class);
+ User user = service.getById(this.createBy);
+ if (!Cools.isEmpty(user)){
+ return String.valueOf(user.getNickname());
+ }
+ return null;
+ }
+
+ public String getCreateTime$(){
+ if (Cools.isEmpty(this.createTime)){
+ return "";
+ }
+ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
+ }
+
+ public String getUpdateBy$(){
+ UserService service = SpringUtils.getBean(UserService.class);
+ User user = service.getById(this.updateBy);
+ if (!Cools.isEmpty(user)){
+ return String.valueOf(user.getNickname());
+ }
+ return null;
+ }
+
+ public String getUpdateTime$(){
+ if (Cools.isEmpty(this.updateTime)){
+ return "";
+ }
+ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
+ }
+
+
+
+ public void sync(Object source) {
+ Synchro.Copy(source, this);
+ }
+}
--
Gitblit v1.9.1