From 091c89cd56ad6dac4a2cb6767b00693058e0fbed Mon Sep 17 00:00:00 2001
From: CZT <czt18638530771@163.com>
Date: 星期日, 08 十月 2023 16:54:11 +0800
Subject: [PATCH] 优化贝博粮情协议-星仓补点问题
---
igds-core/src/main/java/com/ld/igds/data/SimpleDepot.java | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/igds-core/src/main/java/com/ld/igds/data/SimpleDepot.java b/igds-core/src/main/java/com/ld/igds/data/SimpleDepot.java
index c97c1de..d8b4885 100644
--- a/igds-core/src/main/java/com/ld/igds/data/SimpleDepot.java
+++ b/igds-core/src/main/java/com/ld/igds/data/SimpleDepot.java
@@ -1,10 +1,8 @@
package com.ld.igds.data;
import com.bstek.dorado.annotation.PropertyDef;
+import com.ld.igds.models.Depot;
import lombok.Data;
-
-import javax.persistence.Column;
-import javax.persistence.Id;
/**
* @Desc: 鐢ㄤ簬浣滀负涓嬫媺妗嗙殑鏁版嵁灏佽锛屽彧鍖呭惈鍩虹淇℃伅
@@ -37,4 +35,31 @@
@PropertyDef(label = "浠撳簱鐘舵��", description = "涓庡簱瀛樿〃鍏宠仈锛岄�氳繃搴撳瓨鍙樻洿")
private String depotStatus;
+
+
+ public SimpleDepot() {
+ }
+
+ public SimpleDepot(String id, String companyId, String deptId, String name, String buildingId, String granaryId, String depotType, String depotStatus) {
+ this.id = id;
+ this.companyId = companyId;
+ this.deptId = deptId;
+ this.name = name;
+ this.buildingId = buildingId;
+ this.granaryId = granaryId;
+ this.depotType = depotType;
+ this.depotStatus = depotStatus;
+ }
+
+ public SimpleDepot(Depot depot) {
+ this.id = depot.getId();
+ this.companyId = depot.getCompanyId();
+ this.deptId = depot.getDeptId();
+ this.name = depot.getName();
+ this.buildingId = depot.getBuildingId();
+ this.granaryId = depot.getGranaryId();
+ this.depotType = depot.getDepotType();
+ this.depotStatus = depot.getDepotStatus();
+ }
+
}
--
Gitblit v1.9.3