From 0ec0aef398704cd0219ed452f3aa96c8cdacd647 Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期六, 06 七月 2024 15:27:51 +0800 Subject: [PATCH] 出库、入库、盘点涉及产品重复性检查调整(从【产品编号】变更为以【产品编号、出库库房编号、入库库房编号】作为唯一标识) --- service/location_forms.go | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/service/location_forms.go b/service/location_forms.go index 52d0c9e..27932a2 100644 --- a/service/location_forms.go +++ b/service/location_forms.go @@ -46,10 +46,11 @@ } func (slf *LocationFormsService) BuildSearch(params request.GetLocationForms) (search *models.LocationProductAmountSearch, err error) { - ids := make([]int, 0) + 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