From 431caa4055c117b413736e302206c1089c486b36 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期五, 15 十二月 2023 16:14:48 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS

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

diff --git a/controllers/report_forms_controller.go b/controllers/report_forms_controller.go
index 9575819..a495b07 100644
--- a/controllers/report_forms_controller.go
+++ b/controllers/report_forms_controller.go
@@ -265,8 +265,8 @@
 	}
 
 	detailsSearch.Orm = detailsSearch.Orm.Model(&models.MoveHistory{}).
-		Select("number, updated_at as date, product_name as product_name, from_location_id, operation_id," +
-			"to_location_id, amount, unit, operator as contacted_name, base_operation_type, weight, product_id, from_location, to_location").Order("id desc")
+		Select("number, updated_at as date, product_name as product_name, from_location_id, operation_id,to_location_id, amount, " +
+			"unit, operator as contacted_name, base_operation_type, weight, product_id, from_location, to_location, operation_type_name").Order("id desc")
 	if len(ids) > 0 {
 		detailsSearch.Orm = detailsSearch.Orm.Where("id in ?", ids)
 	}
@@ -339,6 +339,7 @@
 	for _, amount := range amounts {
 		var resp response.LocationForms
 		resp.Amount = amount.Amount
+		resp.LocationId = amount.LocationId
 		resp.LocationName = amount.Location.Name
 		resp.ProduceId = amount.Product.ID
 		resp.ProductName = amount.Product.Name

--
Gitblit v1.8.0