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 | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 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 b245842..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; @@ -13,7 +12,6 @@ import org.jeecg.modules.dnc.request.DocInfoUploadRequest; import org.jeecg.modules.dnc.response.CommonCode; import org.jeecg.modules.dnc.response.QueryListResponseResult; -import org.jeecg.modules.dnc.response.QueryPageResponseResult; import org.jeecg.modules.dnc.response.ResponseResult; import org.jeecg.modules.dnc.service.IDocInfoService; import org.jeecg.modules.dnc.utils.ValidateUtil; @@ -57,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); @@ -177,14 +175,15 @@ @ApiOperation(value = "鏂囦欢琛�-鏌ヨ鍙寚娲剧殑鏂囨。淇℃伅鍒楄〃", notes = "鏂囦欢琛�-鏌ヨ鍙寚娲剧殑鏂囨。淇℃伅鍒楄〃") @GetMapping("/find/list") public Result<?> findList(DocInfoQueryRequest docQuery) { - return docInfoService.findList(docQuery); + List<DocInfo> docInfoList=docInfoService.findList(docQuery); + return Result.ok(docInfoList); } @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