From ed4f78cccbb2cf672d6b3230069979288232ab4a Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 04 十一月 2024 08:25:28 +0800
Subject: [PATCH] 计划数据

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmItemTypeController.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmItemTypeController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmItemTypeController.java
index b2674ae..ddd89b3 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmItemTypeController.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmItemTypeController.java
@@ -35,7 +35,7 @@
      * 预测项类型列表
      */
     @GetMapping("/page")
-    @PreAuthorize("@ss.hasPermission('model:pre-item:query')")
+    @PreAuthorize("@ss.hasPermission('model:pre-type:query')")
     public CommonResult<PageResult<MmItemTypeRespVO>> page(@Validated MmItemTypePageReqVO reqVO) {
         PageResult<MmItemTypeEntity> page = mmItemTypeService.page(reqVO);
 
@@ -43,7 +43,7 @@
     }
 
     @GetMapping("/list")
-    @PreAuthorize("@ss.hasPermission('model:pre-item:query')")
+    @PreAuthorize("@ss.hasPermission('model:pre-type:query')")
     public CommonResult<List<MmItemTypeEntity>> list(@RequestParam Map<String, Object> params) {
         List<MmItemTypeEntity> list = mmItemTypeService.list(params);
 
@@ -54,7 +54,7 @@
      * 预测项类型信息
      */
     @GetMapping("/get/{id}")
-    @PreAuthorize("@ss.hasPermission('model:pre-item:query')")
+    @PreAuthorize("@ss.hasPermission('model:pre-type:query')")
     public CommonResult<MmItemTypeEntity> info(@PathVariable("id") String id) {
         MmItemTypeEntity itemType = mmItemTypeService.info(id);
 
@@ -65,7 +65,7 @@
      * 保存预测项类型
      */
     @PostMapping("/create")
-    @PreAuthorize("@ss.hasPermission('model:pre-item:create')")
+    @PreAuthorize("@ss.hasPermission('model:pre-type:create')")
     @DSTransactional(rollbackFor= Exception.class)
     public CommonResult<Boolean> save(@RequestBody MmItemTypeEntity itemType) {
         int count = mmItemTypeService.check(itemType);
@@ -80,7 +80,7 @@
      * 修改预测项类型
      */
     @PutMapping("/update")
-    @PreAuthorize("@ss.hasPermission('model:pre-item:update')")
+    @PreAuthorize("@ss.hasPermission('model:pre-type:update')")
     @DSTransactional(rollbackFor= Exception.class)
     public CommonResult<Boolean> update(@RequestBody MmItemTypeEntity itemType) {
         int count = mmItemTypeService.check(itemType);
@@ -95,7 +95,7 @@
      * 删除预测项类型
      */
     @DeleteMapping("/delete")
-    @PreAuthorize("@ss.hasPermission('model:pre-item:delete')")
+    @PreAuthorize("@ss.hasPermission('model:pre-type:delete')")
     @DSTransactional(rollbackFor= Exception.class)
     public CommonResult<Boolean> delete(@RequestParam("id") String id) {
         mmItemTypeService.deleteBatch(new String[]{id});

--
Gitblit v1.9.3