From 91d7ca06128f996844aa7d2d691d083c944bdf1d Mon Sep 17 00:00:00 2001
From: lishihai <dslsh@dscom>
Date: 星期三, 03 七月 2024 17:22:16 +0800
Subject: [PATCH] 导入物料/产品->新模版BUG修复

---
 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