From 63d4dca1ec0d293c29c8f62a8bbe1466ab2462aa Mon Sep 17 00:00:00 2001
From: yinbentan <yinbentan@live.com>
Date: 星期六, 06 七月 2024 16:32:32 +0800
Subject: [PATCH] 未选仓库的时候统计产品数量错误bug修复

---
 service/location_forms.go |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/service/location_forms.go b/service/location_forms.go
index 15275ce..27932a2 100644
--- a/service/location_forms.go
+++ b/service/location_forms.go
@@ -49,7 +49,8 @@
 	ids := params.LocationIds
 	if params.LocationId != 0 {
 		ids = append(ids, params.LocationId)
-	} else {
+	}
+	if len(ids) == 0 {
 		//鏌ヨ浣嶇疆
 		locations, err := models.NewLocationSearch().SetJointName(params.WareHouseCode).SetType(3).FindAll()
 		if err != nil {

--
Gitblit v1.8.0