From 9e3a239ec0fa13909cb3a98e2ad238b42ac63eaa Mon Sep 17 00:00:00 2001 From: lishihai <dslsh@dscom> Date: 星期三, 19 六月 2024 20:32:24 +0800 Subject: [PATCH] 概述->新建或编辑(出库/入库)信息,产品的Cost成本单价和SalePrice销售单价的值不会更新的BUG --- controllers/operation_type.go | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/controllers/operation_type.go b/controllers/operation_type.go index 5faabe7..9b0525e 100644 --- a/controllers/operation_type.go +++ b/controllers/operation_type.go @@ -116,7 +116,12 @@ util.ResponseFormat(c, code.RequestParamError, err.Error()) return } - list, total, err := models.NewOperationTypeSearch().SetPage(params.Page, params.PageSize).SetKeyword(params.Keyword).SetOrder("id desc").SetPreload(true).Find() + list, total, err := models.NewOperationTypeSearch(). + SetPage(params.Page, params.PageSize). + SetKeyword(params.Keyword). + SetOrder("id desc"). + SetWarehouseId(params.WarehouseId). + SetPreload(true).Find() if err != nil { util.ResponseFormat(c, code.RequestError, "鏌ユ壘澶辫触") return -- Gitblit v1.8.0