From b0113676f423ca930bc3dd93ac9d9ea292458dfa Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期四, 23 十一月 2023 11:28:56 +0800
Subject: [PATCH] 1.修改MoveHistory字段类型 2.完成MoveHistory插入数据 3.operation增加审批时间、收货人、收货地址、联系电话字段,并修改相应接口以及打印

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

diff --git a/controllers/location_product_amount.go b/controllers/location_product_amount.go
index 3f33ff3..b003c1b 100644
--- a/controllers/location_product_amount.go
+++ b/controllers/location_product_amount.go
@@ -14,6 +14,7 @@
 	"wms/models"
 	"wms/request"
 	"wms/response"
+	"wms/service"
 )
 
 type LocationProductAmountController struct {
@@ -60,7 +61,7 @@
 	if params.Page*params.PageSize > 0 {
 		search.Orm = search.Orm.Offset((params.Page - 1) * params.PageSize).Limit(params.PageSize)
 	}
-	if err := search.Orm.Order("wms_location_product_amount.updated_at desc").Find(&records).Error; err != nil && !errors.Is(err, gorm.ErrRecordNotFound) {
+	if err := search.Orm.Order("wms_location_product_amount.updated_at desc").Find(&records).Error; err != nil {
 		util.ResponseFormat(c, code.RequestError, fmt.Errorf("find count err: %v", err))
 		return
 	}
@@ -174,6 +175,8 @@
 	}); err != nil {
 		return err
 	}
+
+	service.AddNewLocationReportRecord(locAmount.Id)
 	return nil
 }
 

--
Gitblit v1.8.0