From 88bd3352d5f263c35f0807b0765a1b26552d5a12 Mon Sep 17 00:00:00 2001 From: User_cyk <1020691186@qq.com> Date: Tue, 26 Dec 2023 21:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lovenav/controller/UrlAndCateController.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/lovenav/controller/UrlAndCateController.java b/src/main/java/com/lovenav/controller/UrlAndCateController.java index c95a77a..3c9e0af 100644 --- a/src/main/java/com/lovenav/controller/UrlAndCateController.java +++ b/src/main/java/com/lovenav/controller/UrlAndCateController.java @@ -675,5 +675,19 @@ public class UrlAndCateController { return JSONObject.toJSONString(result); } - + @RequestMapping("/updateUrlCate") + public String updateUrlCate(UrlCateList urlCateList) + { + int flag = urlCateListService.updateByUrlCateList(urlCateList); + HashMap result = new HashMap<>(); + if(flag == 1) + { + result.put("code", 200); + result.put("msg", "处理成功"); + }else{ + result.put("code", 500); + result.put("msg", "处理失败"); + } + return JSONObject.toJSONString(result); + } }