From 7c77e020b81e42fb65aa966742ff7c93e73668e1 Mon Sep 17 00:00:00 2001 From: cuikaidong <ckd2942379034@163.com> Date: 星期一, 26 五月 2025 17:57:55 +0800 Subject: [PATCH] 设备调拨功能增加 --- lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/controller/DocInfoController.java | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/controller/DocInfoController.java b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/controller/DocInfoController.java index 1374027..4594a87 100644 --- a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/controller/DocInfoController.java +++ b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/controller/DocInfoController.java @@ -1,6 +1,5 @@ package org.jeecg.modules.dnc.controller; -import cn.hutool.core.util.StrUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; @@ -56,9 +55,9 @@ @AutoLog(value = "鏂囨。琛�-鍒犻櫎鏂囨。淇℃伅") @ApiOperation(value = "鏂囨。琛�-鍒犻櫎鏂囨。淇℃伅", notes = "鏂囨。琛�-鍒犻櫎鏂囨。淇℃伅") - @DeleteMapping("/delete") - public ResponseResult deleteDocInfo(@RequestParam("id") String id) { - boolean b = docInfoService.deleteDocInfo(id); + @DeleteMapping("/delete/{id}/{attrType}/{attrId}") + public ResponseResult deleteDocInfo(@PathVariable("id") String id, @PathVariable("attrType") String attrType, @PathVariable("attrId") String attrId) { + boolean b = docInfoService.deleteDocInfo(id,attrType,attrId); if(!b) return new ResponseResult(CommonCode.FAIL); return new ResponseResult(CommonCode.SUCCESS); @@ -182,9 +181,9 @@ @AutoLog(value = "鏂囦欢琛�-鎵归噺鍒犻櫎鏂囨。鎺ュ彛") @ApiOperation(value = "鏂囦欢琛�-鎵归噺鍒犻櫎鏂囨。鎺ュ彛", notes = "鏂囦欢琛�-鎵归噺鍒犻櫎鏂囨。鎺ュ彛") - @PostMapping("/batch/remove") - public ResponseResult batchRemoveDocInfo(@RequestBody String[] docIds) { - boolean b = docInfoService.batchRemoveDocInfo(docIds); + @PostMapping("/batch/remove/{docIds}/{attrType}/{attrId}") + public ResponseResult batchRemoveDocInfo(@PathVariable("docIds") String[] docIds, @PathVariable("attrType") String attrType, @PathVariable("attrId") String attrId) { + boolean b = docInfoService.batchRemoveDocInfo(docIds,attrType,attrId); if(!b) return new ResponseResult(CommonCode.FAIL); return new ResponseResult(CommonCode.SUCCESS); -- Gitblit v1.9.3