Browse Source

接口换文件

Lijy 1 year ago
parent
commit
9c3ea26bc1

+ 9 - 0
fhKeeper/formulahousekeeper/management-crm/src/main/java/com/management/platform/controller/AttachmentCenterController.java

@@ -4,6 +4,7 @@ package com.management.platform.controller;
 import com.management.platform.entity.AttachmentCenter;
 import com.management.platform.entity.User;
 import com.management.platform.mapper.*;
+import com.management.platform.service.ProductService;
 import com.management.platform.task.SFTPAsyncUploader;
 import com.management.platform.util.DocumentTypeUtil;
 import com.management.platform.util.FileUtil;
@@ -37,6 +38,8 @@ import java.util.concurrent.Executors;
 @RestController
 @RequestMapping("/attachment")
 public class AttachmentCenterController {
+    @Resource
+    private ProductService productService;
     @Resource
     private HttpServletRequest request;
 
@@ -170,5 +173,11 @@ public class AttachmentCenterController {
         }
         return msg;
     }
+
+    @RequestMapping("/attachmentList")
+    public HttpRespMsg attachmentList(Integer moduleId, String moduleCode){
+        // 根据 moduleId 和 moduleCode 查询 attachment_center 表
+        return productService.attachmentList(moduleId, moduleCode);
+    }
 }
 

+ 0 - 6
fhKeeper/formulahousekeeper/management-crm/src/main/java/com/management/platform/controller/ProductController.java

@@ -298,11 +298,5 @@ public class ProductController {
         }
         return msg;
     }
-
-    @RequestMapping("/attachmentList")
-    public HttpRespMsg attachmentList(Integer moduleId, String moduleCode){
-        // 根据 moduleId 和 moduleCode 查询 attachment_center 表
-        return productService.attachmentList(moduleId, moduleCode);
-    }
 }