From 5ca8ab843e11b213fb898c157c477e0624cb8cc6 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Thu, 25 Jan 2024 09:26:08 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8C=87=E6=A0=87=E6=A8=A1=E5=9D=97=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=80=BB=E8=BE=91=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/logpm/supervise/dto/ClassifyDTO.java | 2 ++ .../logpm/supervise/controller/ClassifyController.java | 10 +++++----- .../java/com/logpm/supervise/mapper/ClassifyMapper.xml | 3 +++ .../supervise/service/impl/ClassifyServiceImpl.java | 2 ++ .../logpm/trunkline/controller/CarsLoadController.java | 2 ++ 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/blade-service-api/logpm-supervise-api/src/main/java/com/logpm/supervise/dto/ClassifyDTO.java b/blade-service-api/logpm-supervise-api/src/main/java/com/logpm/supervise/dto/ClassifyDTO.java index 30b0ae490..9d9f27bb8 100644 --- a/blade-service-api/logpm-supervise-api/src/main/java/com/logpm/supervise/dto/ClassifyDTO.java +++ b/blade-service-api/logpm-supervise-api/src/main/java/com/logpm/supervise/dto/ClassifyDTO.java @@ -10,6 +10,8 @@ import java.util.List; @Data public class ClassifyDTO extends ClassifyEntity { + private String ids; + private Integer isPid; private List pointsEntities = new ArrayList<>(); diff --git a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/controller/ClassifyController.java b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/controller/ClassifyController.java index f9cda8878..16c1452ef 100644 --- a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/controller/ClassifyController.java +++ b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/controller/ClassifyController.java @@ -115,8 +115,8 @@ public class ClassifyController extends BladeController { @PostMapping("/remove") @ApiOperationSupport(order = 7) @ApiOperation(value = "逻辑删除", notes = "传入ids") - public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { - return R.status(classifyService.deleteLogic(Func.toLongList(ids))); + public R remove(@ApiParam(value = "主键集合", required = true) @RequestBody ClassifyDTO classifyDTO) { + return R.status(classifyService.deleteLogic(Func.toLongList(classifyDTO.getIds()))); } @@ -192,10 +192,10 @@ public class ClassifyController extends BladeController { @PostMapping("/selectParentCalssifyList") @ApiOperationSupport(order = 5) @ApiOperation(value = "查询指标分类", notes = "传入indicatorsDTO") - public R selectParentCalssifyList(@RequestBody ClassifyDTO classifyDTO) { + public R selectParentCalssifyList() { String method = "##############selectParentCalssifyList: "; - log.info(method+"查询指标分类 参数={}",classifyDTO); - + log.info(method+"查询指标分类 "); + ClassifyDTO classifyDTO = new ClassifyDTO(); try{ return classifyService.selectParentCalssifyList(classifyDTO); diff --git a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/ClassifyMapper.xml b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/ClassifyMapper.xml index d3aab6e88..d0ca07934 100644 --- a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/ClassifyMapper.xml +++ b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/ClassifyMapper.xml @@ -24,6 +24,7 @@ select * from sup_classify + and is_deleted = 0 and p_id = 0 @@ -44,12 +45,14 @@ select * from sup_classify where p_id = 0 + and is_deleted = 0