From ddd9d82bcda5cb6e8be8f1dd142dbae2e07b25c3 Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期二, 13 十二月 2022 17:56:28 +0800 Subject: [PATCH] feat: 添加批量接口处理 --- ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java | 9 +++++++++ ycl-platform/src/main/java/com/ycl/controller/cockpit/enforcementEvents/EnforcementEventsController.java | 2 +- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java b/ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java index 875717f..5f8dd6b 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java @@ -245,6 +245,15 @@ .set(BaseCase::getState, state))); } + @ApiOperation(value = "妗堜欢鎵瑰鐞�") + @PutMapping("/batch_case_status_update") + @ApiImplicitParams({ + @ApiImplicitParam(value = "澶勭悊鐘舵��(0-寰呭鐞�1-璇姤2-涓婃姤3-鍐嶅涔�/鍐嶈缁�4鏆備笉澶勭悊5绔嬫6璋冨害7澶勭疆8鏍告煡9缁撴)", name = "state") + }) + public CommonResult updateCaseStatusBatch(@RequestBody List<BaseCase> baseCasesList) { + return CommonResult.success(baseCaseService.updateBatchById(baseCasesList)); + } + /** * @return com.ycl.api.CommonResult * @Description reset case diff --git a/ycl-platform/src/main/java/com/ycl/controller/cockpit/enforcementEvents/EnforcementEventsController.java b/ycl-platform/src/main/java/com/ycl/controller/cockpit/enforcementEvents/EnforcementEventsController.java index 78cfda3..244ee39 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/cockpit/enforcementEvents/EnforcementEventsController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/cockpit/enforcementEvents/EnforcementEventsController.java @@ -47,7 +47,7 @@ IBaseCaseService iBaseCaseService; @Autowired IViolationsService iViolationsService; - @Autowired + @Resource TrendAnalysisMapper trendAnalysisMapper; @ApiOperation(value = "鎵ф硶浜嬩欢缁熻") -- Gitblit v1.8.0