From 19ef4ca4f7252c34fe2e2a03b8868fc997ddd86f Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期五, 13 九月 2024 08:37:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictItemController.java | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictItemController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictItemController.java index 1c46986..eb504cc 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictItemController.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictItemController.java @@ -40,7 +40,7 @@ /** * 预测项信息 */ - @GetMapping("/info/{id}") + @GetMapping("/get/{id}") public CommonResult<MmPredictItemDTO> info(@PathVariable("id") String id, @RequestParam Map<String, Object> params){ MmPredictItemDTO predictItem = mmPredictItemService.getDetailById(id, params); return success(predictItem); @@ -49,7 +49,7 @@ /** * 保存预测项 */ - @PostMapping + @PostMapping("/create") public CommonResult<Boolean> save(@RequestBody MmPredictItemDTO mmPredictItemDto){ int count = mmPredictItemService.check(mmPredictItemDto.getMmPredictItem()); if (count > 0) { @@ -62,7 +62,7 @@ /** * 修改预测项 */ - @PutMapping + @PutMapping("/update") public CommonResult<Boolean> update(@RequestBody MmPredictItemDTO mmPredictItemDto){ int count = mmPredictItemService.check(mmPredictItemDto.getMmPredictItem()); if (count > 0) { @@ -75,12 +75,9 @@ /** * 删除预测项 */ - @DeleteMapping("{id}") - public CommonResult<Boolean> delete(@RequestBody String[] itemIds){ - if (itemIds == null || itemIds.length == 0) { - return error(999, "参数不能为空"); - } - mmPredictItemService.deleteBatch(itemIds); + @DeleteMapping("/delete") + public CommonResult<Boolean> delete(@RequestParam("id") String id) { + mmPredictItemService.deleteBatch(new String[]{id}); return success(true); } -- Gitblit v1.9.3