From 2a64b537e8e3bce9ce030585a3da17d48379c0ad Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期一, 26 五月 2025 15:04:45 +0800
Subject: [PATCH] 修改json类型转换错误

---
 aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsMaterialProductGroupManagementController.java |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsMaterialProductGroupManagementController.java b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsMaterialProductGroupManagementController.java
index 7e703c2..00b1f3c 100644
--- a/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsMaterialProductGroupManagementController.java
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsMaterialProductGroupManagementController.java
@@ -37,7 +37,7 @@
      * 鏌ヨ鐗╂枡浜у搧缁勬暟鎹鐞嗗垪琛�
      */
     @Operation(summary = "鏌ヨ鐗╂枡浜у搧缁勬暟鎹鐞嗗垪琛�", description = "鍒嗛〉鏌ヨ")
-//    @RequiresPermissions("materialProductGroup:management:list")
+    @RequiresPermissions("materialProductGroup:management:list")
     @GetMapping("/list")
     public TableDataInfo list(ApsMaterialProductGroupManagement apsGasPipelineMo)
     {
@@ -47,20 +47,22 @@
     }
 
 
-    @Operation(summary = "瀵煎叆鎵嬪伐姘斾綋棰勬祴鏁版嵁", description = "鎵归噺瀵煎叆")
-    @Log(title = "瀵煎叆鎵嬪伐姘斾綋棰勬祴鏁版嵁", businessType = BusinessType.IMPORT)
-//    @RequiresPermissions("materialProductGroup:mo:import")
+    @Operation(summary = "瀵煎叆浜у搧缁勬暟鎹�", description = "鎵归噺瀵煎叆")
+    @Log(title = "瀵煎叆浜у搧缁勬暟鎹�", businessType = BusinessType.IMPORT)
+    @RequiresPermissions("materialProductGroup:management:import")
     @PostMapping("/importData")
     public AjaxResult importData(MultipartFile file) throws Exception {
 
-        int i = apsMaterialProductGroupManagementService.batchInsertApsMaterialProductGroupManagement(file);
-        return  toAjax(i);
+        apsMaterialProductGroupManagementService.batchInsertApsMaterialProductGroupManagement(file);
+        return  toAjax(true);
     }
+
+
     /**
      * 瀵煎嚭鐗╂枡浜у搧缁勬暟鎹鐞嗗垪琛�
      */
     @Operation(summary = "瀵煎嚭鐗╂枡浜у搧缁勬暟鎹鐞嗗垪琛�", description = "瀵煎嚭")
-//    @RequiresPermissions("materialProductGroup:management:export")
+    @RequiresPermissions("materialProductGroup:management:export")
     @Log(title = "鐗╂枡浜у搧缁勬暟鎹鐞�", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     public void export(HttpServletResponse response, ApsMaterialProductGroupManagement apsMaterialProductGroupManagement)
@@ -85,7 +87,7 @@
      * 鏂板鐗╂枡浜у搧缁勬暟鎹鐞�
      */
     @Operation(summary = "鏂板鐗╂枡浜у搧缁勬暟鎹鐞�", description = "鍗曚釜鏂板")
-//    @RequiresPermissions("materialProductGroup:management:add")
+    @RequiresPermissions("materialProductGroup:management:add")
     @Log(title = "鐗╂枡浜у搧缁勬暟鎹鐞�", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody ApsMaterialProductGroupManagement apsMaterialProductGroupManagement)
@@ -97,8 +99,8 @@
      * 淇敼鐗╂枡浜у搧缁勬暟鎹鐞�
      */
     @Operation(summary = "淇敼鐗╂枡浜у搧缁勬暟鎹鐞�", description = "鍗曚釜淇敼")
-//    @RequiresPermissions("materialProductGroup:management:edit")
-    @Log(title = "鐗╂枡浜у搧缁勬暟鎹鐞�", businessType = BusinessType.UPDATE)
+    @RequiresPermissions("materialProductGroup:management:edit")
+    @Log(title = "淇敼鐗╂枡浜у搧缁勬暟鎹鐞�", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody ApsMaterialProductGroupManagement apsMaterialProductGroupManagement)
     {
@@ -109,7 +111,7 @@
      * 鍒犻櫎鐗╂枡浜у搧缁勬暟鎹鐞�
      */
     @Operation(summary = "鍒犻櫎鐗╂枡浜у搧缁勬暟鎹鐞�", description = "鎵归噺鍒犻櫎")
-//    @RequiresPermissions("materialProductGroup:management:remove")
+    @RequiresPermissions("materialProductGroup:management:remove")
     @Log(title = "鐗╂枡浜у搧缁勬暟鎹鐞�", businessType = BusinessType.DELETE)
 	@DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)

--
Gitblit v1.9.3