From 2a04ec3790ddae1b76b151fafaba3a8a0b8a0c53 Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期五, 28 六月 2024 16:30:28 +0800 Subject: [PATCH] 库存操作添加:调拨、入库、出库按类型配置字典类(1 调拨 2 入库 3 出库) --- controllers/system_config.go | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/controllers/system_config.go b/controllers/system_config.go index 60b2523..7c73191 100644 --- a/controllers/system_config.go +++ b/controllers/system_config.go @@ -9,6 +9,7 @@ "wms/pkg/structx" "wms/request" "wms/service" + "wms/task" ) type SystemConfigController struct{} @@ -54,6 +55,11 @@ } } + if err := task.RestartDynamicTask(); err != nil { + util.ResponseFormat(c, code.SaveFail, "閲嶅惎瀹氭椂浠诲姟澶辫触") + return + } + util.ResponseFormat(c, code.Success, "淇濆瓨鎴愬姛") } -- Gitblit v1.8.0