From 764f045c785959117db3d27d744e63d2dad6240c Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期一, 13 十一月 2023 09:04:41 +0800
Subject: [PATCH] 后台bug修改

---
 cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TShopController.java |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TShopController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TShopController.java
index 9092db9..7d52885 100644
--- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TShopController.java
+++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TShopController.java
@@ -547,8 +547,6 @@
             String result = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addSpace", map1);
             System.out.println(result);
 
-
-
             for (String s : tStore.getIds().split(",")) {
                 HashMap<String, String> map = new HashMap<>();
                 map.put("sign","0DB011836143EEE2C2E072967C9F4E4B");
@@ -969,13 +967,14 @@
     }
     @RequestMapping(value = "/addConfig")
     @ResponseBody
-    public Object addConfig(String name,Integer id) {
+    public Object addConfig(String name,Integer id,Integer sort) {
         try {
             List<TStoreOtherConfig> list = storeOtherConfigService.list();
             if(list.size()>0){
                 TStoreOther tStoreOther = new TStoreOther();
                 tStoreOther.setName(name);
                 tStoreOther.setStoreId(id);
+                tStoreOther.setSort(sort);
                 storeOtherService.save(tStoreOther);
 
                 // 找出temp表数据
@@ -1000,12 +999,11 @@
     }
     @RequestMapping(value = "/addConfig1")
     @ResponseBody
-    public Object addConfig1(String name,Integer id) {
+    public Object addConfig1(String name,Integer id,Integer sort) {
         try {
             TStoreOther byId = storeOtherService.getById(id);
-            byId.setName(
-                    name
-            );
+            byId.setName(name);
+            byId.setSort(sort);
             storeOtherService.updateById(byId);
 
 

--
Gitblit v1.7.1