Explorar el Código

DeBugDeBugDeBug

buzhanyi hace 2 años
padre
commit
30d4bd8837

+ 9 - 8
purchase-admin/src/main/java/com/ozs/web/controller/system/SysDictDataController.java

@@ -92,12 +92,12 @@ public class SysDictDataController extends BaseController
     }
 
     /**
-     * 新增字典类型
+     * 新增字典数据
      */
     @PreAuthorize("@ss.hasPermi('system:dict:add')")
     @Log(title = "字典数据", businessType = BusinessType.INSERT)
     @PostMapping
-    @ApiOperation("新增字典类型")
+    @ApiOperation("新增字典数据")
     public AjaxResult add(@Validated @RequestBody SysDictData dict)
     {
         dict.setCreateBy(getUsername());
@@ -105,12 +105,13 @@ public class SysDictDataController extends BaseController
     }
 
     /**
-     * 修改保存字典类型
+     * 修改保存字典数据
+     * (注释掉权限是因为阈值设置中的操作要修改字典数据)
      */
-    @PreAuthorize("@ss.hasPermi('system:dict:edit')")
+    //@PreAuthorize("@ss.hasPermi('system:dict:edit')")
     @Log(title = "字典数据", businessType = BusinessType.UPDATE)
     @PutMapping
-    @ApiOperation("修改保存字典类型")
+    @ApiOperation("修改保存字典数据")
     public AjaxResult edit(@Validated @RequestBody SysDictData dict)
     {
         dict.setUpdateBy(getUsername());
@@ -118,12 +119,12 @@ public class SysDictDataController extends BaseController
     }
 
     /**
-     * 删除字典类型
+     * 删除字典数据
      */
     @PreAuthorize("@ss.hasPermi('system:dict:remove')")
-    @Log(title = "字典类型", businessType = BusinessType.DELETE)
+    @Log(title = "字典数据", businessType = BusinessType.DELETE)
     @DeleteMapping("/{dictCodes}")
-    @ApiOperation("删除字典类型")
+    @ApiOperation("删除字典数据")
     public AjaxResult remove(@PathVariable Long[] dictCodes)
     {
         dictDataService.deleteDictDataByIds(dictCodes);