From b28a7f52e8df5889572f86a9422c62c10334f70c Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期一, 25 九月 2023 10:17:49 +0800 Subject: [PATCH] 1.修改出入库模块的新增、修改、列表,operation_details不再保存产品名称和单位,改为读取material 2.修改报废模块的新增,修改、列表,不再使用productName和unit字段 --- controllers/location.go | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/controllers/location.go b/controllers/location.go index 421958b..682c1f0 100644 --- a/controllers/location.go +++ b/controllers/location.go @@ -35,7 +35,7 @@ util.ResponseFormat(c, code.RequestParamError, "鍒涘缓澶辫触") return } - util.ResponseFormat(c, code.RequestParamError, "鍒涘缓鎴愬姛") + util.ResponseFormat(c, code.Success, "鍒涘缓鎴愬姛") } // GetLocationList @@ -60,6 +60,9 @@ util.ResponseFormat(c, code.RequestParamError, "鏌ユ壘澶辫触") return } + for _, location := range list { + location.JointName = location.ParentId + "/" + location.Name + } util.ResponseFormatList(c, code.Success, list, int(total)) } -- Gitblit v1.8.0