From a10d59528a36dc5a1fbe4d9caa6b4abf25ab828c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 12 一月 2024 10:49:08 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS

---
 controllers/report_forms_controller.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/controllers/report_forms_controller.go b/controllers/report_forms_controller.go
index a495b07..ced1c45 100644
--- a/controllers/report_forms_controller.go
+++ b/controllers/report_forms_controller.go
@@ -97,8 +97,8 @@
 		Where("wms_operation.base_operation_type in (?)", []constvar.BaseOperationType{constvar.BaseOperationTypeOutgoing, constvar.BaseOperationTypeInternal, constvar.BaseOperationTypeDisuse}).
 		Where("wms_operation.status in (?)", []constvar.OperationStatus{constvar.OperationStatus_Ready, constvar.OperationStatus_Finish})
 	if len(locationIds) > 0 {
-		dbIn.Where("wms_operation.to_location_id in (?)", locationIds)
-		dbOut.Where("wms_operation.from_location_id in (?)", locationIds)
+		dbIn.Where("wms_operation_details.to_location_id in (?)", locationIds)
+		dbOut.Where("wms_operation_details.from_location_id in (?)", locationIds)
 	}
 	if len(productIds) > 0 {
 		dbIn.Where("wms_operation_details.product_id in (?)", productIds)

--
Gitblit v1.8.0