|
@@ -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);
|
|
|
+ }
|
|
|
}
|
|
|
|