From 278d046e8060a37439ee9f442503eaeb0e8a379e Mon Sep 17 00:00:00 2001
From: xusd <hugeinfo123>
Date: Sat, 21 Sep 2024 18:37:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/gzdyh_test' into gzdyh_test
---
dyh-service/dyh-base/src/main/resources/template/webController.ftl | 22 +++++++++-------------
1 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/dyh-service/dyh-base/src/main/resources/template/webController.ftl b/dyh-service/dyh-base/src/main/resources/template/webController.ftl
index 7f6fcbe..a667b7f 100644
--- a/dyh-service/dyh-base/src/main/resources/template/webController.ftl
+++ b/dyh-service/dyh-base/src/main/resources/template/webController.ftl
@@ -1,4 +1,4 @@
-package ${basePackage}.${packageName}.controller;
+package ${basePackage}.${packageName}.controller.web;
import cn.huge.base.common.utils.ReturnFailUtils;
import cn.huge.base.common.utils.ReturnSucUtils;
@@ -19,8 +19,8 @@
import java.util.stream.Stream;
/**
- * @title: ${tableComments}接口api
- * @description: ${tableComments}接口api
+ * @title: ${tableComments}接口api-web端
+ * @description: ${tableComments}接口api-web端
* @company: hugeinfo
* @author: ${author}
* @time: ${createTime}
@@ -120,19 +120,15 @@
}
/**
- * 根据主键单个/批量删除
- * @url {ctx}/api/web<#if classPath??>/${classPath}</#if>/deleteByIds
- * @param ids 主键编号
+ * 根据主键单个
+ * @url {ctx}/api/web<#if classPath??>/${classPath}</#if>/deleteById
+ * @param id 主键编号
* @return Object
*/
- @GetMapping("/deleteByIds")
- public Object deleteByIds(@RequestParam(value = "ids") String ids) {
+ @GetMapping("/deleteById")
+ public Object deleteById(@RequestParam(value = "id") String id) {
try {
- if (ids.indexOf(",") != -1) {
- service.removeByIds(Stream.of(ids.split(",")).collect(Collectors.toList()));
- }else{
- service.removeById(ids);
- }
+ service.removeById(id);
return ReturnSucUtils.getRepInfo();
} catch (Exception e) {
return ReturnFailUtils.getRepInfo();
--
Gitblit v1.8.0