From cb642724c54d7d850aec5e5ee27fcc7186f352d7 Mon Sep 17 00:00:00 2001
From: luqingyang <lqy5492@163.com>
Date: 星期二, 24 十月 2023 17:28:18 +0800
Subject: [PATCH] 物品管理和机构 相关代码

---
 consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsModels.java |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsModels.java b/consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsModels.java
index 4a1f3b3..ea8f5bf 100644
--- a/consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsModels.java
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/BaseGoodsModels.java
@@ -32,9 +32,17 @@
     @JsonIgnore
     protected boolean isset_goodsTemplatesId = false;
 
+    private String unit = null;
+    @JsonIgnore
+    protected boolean isset_unit = false;
+
     private Integer orderNumber = null;
     @JsonIgnore
     protected boolean isset_orderNumber = false;
+
+    private Long createTime = null;
+    @JsonIgnore
+    protected boolean isset_createTime = false;
 
     /**
      * 榛樿鏋勯�犲嚱鏁�
@@ -113,6 +121,20 @@
         return this.goodsTemplatesId == null;
     }
 
+    public String getUnit() {
+        return this.unit;
+    }
+
+    public void setUnit(String unit) {
+        this.unit = unit;
+        this.isset_unit = true;
+    }
+
+    @JsonIgnore
+    public boolean isEmptyUnit() {
+        return this.unit == null || this.unit.length() == 0;
+    }
+
     public Integer getOrderNumber() {
         return this.orderNumber;
     }
@@ -127,6 +149,20 @@
         return this.orderNumber == null;
     }
 
+    public Long getCreateTime() {
+        return this.createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+        this.isset_createTime = true;
+    }
+
+    @JsonIgnore
+    public boolean isEmptyCreateTime() {
+        return this.createTime == null;
+    }
+
     /**
      * 閲嶅啓 toString() 鏂规硶
      */
@@ -137,7 +173,9 @@
                 .append("modelName=").append(this.modelName)
                 .append("states=").append(this.states)
                 .append("goodsTemplatesId=").append(this.goodsTemplatesId)
+                .append("unit=").append(this.unit)
                 .append("orderNumber=").append(this.orderNumber)
+                .append("createTime=").append(this.createTime)
                 .toString();
     }
 
@@ -164,9 +202,15 @@
         if (this.isset_goodsTemplatesId) {
             base_goods_models.setGoodsTemplatesId(this.getGoodsTemplatesId());
         }
+        if (this.isset_unit) {
+            base_goods_models.setUnit(this.getUnit());
+        }
         if (this.isset_orderNumber) {
             base_goods_models.setOrderNumber(this.getOrderNumber());
         }
+        if (this.isset_createTime) {
+            base_goods_models.setCreateTime(this.getCreateTime());
+        }
         return base_goods_models;
     }
 }

--
Gitblit v1.9.1