From e7dd8b490661c994c414c0edc2da1854d9bcef82 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 05 十一月 2026 13:33:12 +0800
Subject: [PATCH] feat(excel): 优化Excel列宽与必填标记并支持巡检附件

---
 yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/category/MdmItemCategoryController.java |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/category/MdmItemCategoryController.java b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/category/MdmItemCategoryController.java
index 715ec5d..462d48b 100644
--- a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/category/MdmItemCategoryController.java
+++ b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/controller/admin/category/MdmItemCategoryController.java
@@ -23,7 +23,7 @@
 
 @Tag(name = "绠$悊鍚庡彴 - MDM 鐗╂枡鍒嗙被")
 @RestController
-@RequestMapping("/mdm/item-category")
+@RequestMapping("/mdm/category")
 @Validated
 public class MdmItemCategoryController {
 
@@ -67,7 +67,6 @@
     @GetMapping("/get")
     @Operation(summary = "鑾峰緱鐗╂枡鍒嗙被")
     @Parameter(name = "id", description = "缂栧彿", required = true, example = "1")
-    @PreAuthorize("@ss.hasPermission('mdm:item-category:query')")
     public CommonResult<MdmItemCategoryRespVO> getItemCategory(@RequestParam("id") Long id) {
         MdmItemCategoryDO itemCategory = itemCategoryService.getItemCategory(id);
         return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespVO.class));
@@ -75,7 +74,6 @@
 
     @GetMapping("/page")
     @Operation(summary = "鑾峰緱鐗╂枡鍒嗙被鍒嗛〉")
-    @PreAuthorize("@ss.hasPermission('mdm:item-category:query')")
     public CommonResult<PageResult<MdmItemCategoryRespVO>> getItemCategoryPage(@Valid MdmItemCategoryPageReqVO pageReqVO) {
         PageResult<MdmItemCategoryDO> pageResult = itemCategoryService.getItemCategoryPage(pageReqVO);
         return success(BeanUtils.toBean(pageResult, MdmItemCategoryRespVO.class));
@@ -83,10 +81,16 @@
 
     @GetMapping("/list")
     @Operation(summary = "鑾峰緱鐗╂枡鍒嗙被鍒楄〃")
-    @PreAuthorize("@ss.hasPermission('mdm:item-category:query')")
     public CommonResult<List<MdmItemCategoryRespVO>> getItemCategoryList() {
         List<MdmItemCategoryDO> list = itemCategoryService.getItemCategoryList(null);
         return success(BeanUtils.toBean(list, MdmItemCategoryRespVO.class));
     }
 
+    @GetMapping("/list-all-simple")
+    @Operation(summary = "鑾峰緱鍚敤鐨勫垎绫诲垪琛�")
+    public CommonResult<List<MdmItemCategoryRespVO>> getSimpleItemList() {
+        List<MdmItemCategoryDO> list = itemCategoryService.getSimpleItemList();
+        return success(BeanUtils.toBean(list, MdmItemCategoryRespVO.class));
+    }
+
 }
\ No newline at end of file

--
Gitblit v1.9.3