From 79a546f17f186e2d66299f1766b7c880496a9d51 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 28 五月 2021 10:29:17 +0800
Subject: [PATCH] #
---
src/main/java/zy/cloud/wms/manager/controller/OpenController.java | 6 +++++-
src/main/java/zy/cloud/wms/common/entity/Parameter.java | 10 ++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/src/main/java/zy/cloud/wms/common/entity/Parameter.java b/src/main/java/zy/cloud/wms/common/entity/Parameter.java
index 615bf42..8d8ac9a 100644
--- a/src/main/java/zy/cloud/wms/common/entity/Parameter.java
+++ b/src/main/java/zy/cloud/wms/common/entity/Parameter.java
@@ -70,4 +70,14 @@
public void setWeekPlanDayRule(Integer weekPlanDayRule) {
this.weekPlanDayRule = weekPlanDayRule;
}
+
+ private String uniNode;
+
+ public String getUniNode() {
+ return uniNode;
+ }
+
+ public void setUniNode(String uniNode) {
+ this.uniNode = uniNode;
+ }
}
diff --git a/src/main/java/zy/cloud/wms/manager/controller/OpenController.java b/src/main/java/zy/cloud/wms/manager/controller/OpenController.java
index cd9390a..ac5f42f 100644
--- a/src/main/java/zy/cloud/wms/manager/controller/OpenController.java
+++ b/src/main/java/zy/cloud/wms/manager/controller/OpenController.java
@@ -11,6 +11,7 @@
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
+import zy.cloud.wms.common.entity.Parameter;
import zy.cloud.wms.common.model.param.ReplenishParam;
import zy.cloud.wms.common.utils.VersionUtils;
import zy.cloud.wms.manager.entity.LocDetl;
@@ -21,6 +22,7 @@
import zy.cloud.wms.manager.service.MatService;
import zy.cloud.wms.manager.service.NodeService;
import zy.cloud.wms.manager.service.PriorService;
+import zy.cloud.wms.system.service.ConfigService;
import java.util.Date;
import java.util.List;
@@ -40,6 +42,8 @@
private MatService matService;
@Autowired
private LocDetlService locDetlService;
+ @Autowired
+ private ConfigService configService;
@PostMapping("/replenish")
@Transactional
@@ -80,7 +84,7 @@
// 娌℃湁鎺ㄨ崘璐х墿
} else {
- Node node = nodeService.selectByUuid("A00"); // todo
+ Node node = nodeService.selectByUuid(Parameter.get().getUniNode());
LocDetl locDetl = locDetlService.getLocDetl(node.getId(), param.getMatnr());
if (locDetl == null) {
--
Gitblit v1.9.1