From 587b438f50abb725f3dee63eaf6b586c09085f54 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期四, 26 九月 2024 09:59:14 +0800 Subject: [PATCH] bug + 模型方法参数排序 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictItemController.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 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 06590e6..267f2c0 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 @@ -51,7 +51,7 @@ * 预测项列表 */ @GetMapping("/page") - @PreAuthorize("@ss.hasPermission('model:pre-predict:query')") + @PreAuthorize("@ss.hasPermission('model:pre-item:query')") public CommonResult<PageResult<MmPredictItemRespVO>> page(@Validated MmPredictItemPageReqVO reqVO) { PageResult<MmPredictItemEntity> page = mmPredictItemService.queryPage(reqVO); PageResult<MmPredictItemRespVO> result = BeanUtils.toBean(page, MmPredictItemRespVO.class); @@ -79,7 +79,7 @@ * 预测项信息 */ @GetMapping("/get/{id}") - @PreAuthorize("@ss.hasPermission('model:pre-predict:query')") + @PreAuthorize("@ss.hasPermission('model:pre-item:query')") public CommonResult<MmPredictItemDTO> info(@PathVariable("id") String id){ MmPredictItemDTO predictItem = mmPredictItemService.info(id); return success(predictItem); @@ -89,7 +89,7 @@ * 保存预测项 */ @PostMapping("/create") - @PreAuthorize("@ss.hasPermission('model:pre-predict:create')") + @PreAuthorize("@ss.hasPermission('model:pre-item:create')") @DSTransactional(rollbackFor= Exception.class) public CommonResult<Boolean> save(@RequestBody MmPredictItemDTO mmPredictItemDto){ mmPredictItemService.add(mmPredictItemDto); @@ -100,7 +100,7 @@ * 修改预测项 */ @PutMapping("/update") - @PreAuthorize("@ss.hasPermission('model:pre-predict:update')") + @PreAuthorize("@ss.hasPermission('model:pre-item:update')") @DSTransactional(rollbackFor= Exception.class) public CommonResult<Boolean> update(@RequestBody MmPredictItemDTO mmPredictItemDTO){ mmPredictItemService.update(mmPredictItemDTO); @@ -111,7 +111,7 @@ * 删除预测项 */ @DeleteMapping("/delete") - @PreAuthorize("@ss.hasPermission('model:pre-predict:delete')") + @PreAuthorize("@ss.hasPermission('model:pre-item:delete')") @DSTransactional(rollbackFor= Exception.class) public CommonResult<Boolean> delete(@RequestParam("id") String id) { mmPredictItemService.deleteBatch(new String[]{id}); -- Gitblit v1.9.3