From f281cfdc37b58493644175046abf6008016bf8cd Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 19 三月 2024 14:44:15 +0800
Subject: [PATCH] fix
---
conf/aps-crm.json | 2 +-
api/v1/salesDetails.go | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/api/v1/salesDetails.go b/api/v1/salesDetails.go
index 195a337..9386b24 100644
--- a/api/v1/salesDetails.go
+++ b/api/v1/salesDetails.go
@@ -336,6 +336,9 @@
inputProductMap := make(map[string]*response.StoreInfo)
outputProductMap := make(map[string]*response.OutputSimpleInfo)
for _, v := range grpcOutputList {
+ if productMap[v.Number] == nil {
+ continue
+ }
if outputProductMap[v.Number] == nil {
simpleInfo := &response.OutputSimpleInfo{
Number: v.Number,
@@ -349,6 +352,9 @@
}
}
for _, v := range grpcInputList {
+ if productMap[v.Number] == nil {
+ continue
+ }
if inputProductMap[v.Number] == nil {
storeInfo := &response.StoreInfo{
Number: v.Number,
diff --git a/conf/aps-crm.json b/conf/aps-crm.json
index 55d67be..e9fc5a4 100644
--- a/conf/aps-crm.json
+++ b/conf/aps-crm.json
@@ -51,7 +51,7 @@
"GrpcServiceAddr": {
"Aps": "192.168.20.119:9091",
"Admin": "192.168.20.119:50051",
- "WMS": "192.168.20.120:8006",
+ "WMS": "192.168.20.119:8006",
"SRM": "192.168.20.119:9093"
}
}
--
Gitblit v1.8.0