|
@@ -77,6 +77,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.imageio.ImageIO;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.Valid;
|
|
@@ -92,7 +93,10 @@ import java.nio.file.StandardCopyOption;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.List;
|
|
|
import java.util.*;
|
|
|
+import java.util.concurrent.CompletableFuture;
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
+import java.util.concurrent.ThreadPoolExecutor;
|
|
|
+import java.util.concurrent.TimeUnit;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
import java.util.regex.Matcher;
|
|
|
import java.util.regex.Pattern;
|
|
@@ -1811,7 +1815,7 @@ public class ExcelTabController extends BladeController {
|
|
|
return R.fail("暂无PDF数据");
|
|
|
} else {
|
|
|
// 由于独立附件 需要追加最后
|
|
|
- List<TableFileVO> data = tableFileService.selectTableFileListByTen(Long.valueOf(nodeId + ""));
|
|
|
+ List<TableFileVO> data = tableFileService.selectTableFileListByTen(Long.valueOf(nodeId + ""), Integer.valueOf(classify));
|
|
|
List<String> datainfo = new ArrayList<>();
|
|
|
|
|
|
datainfo.add(pdfUrl);
|
|
@@ -3936,7 +3940,7 @@ public class ExcelTabController extends BladeController {
|
|
|
@ApiImplicitParam(name = "nodeId", value = "nodeId", required = true),
|
|
|
|
|
|
})
|
|
|
- public R addBussFile(@RequestParam("file") MultipartFile[] file, String nodeId,Integer type,Long contractId) {
|
|
|
+ public R addBussFile(@RequestParam("file") MultipartFile[] file, String nodeId,Integer type,Long contractId,Integer classify) {
|
|
|
List<TableFile> fileList = new ArrayList<>();
|
|
|
if (file != null && file.length >= 1) {
|
|
|
for (MultipartFile multipartFile : file) {
|
|
@@ -3956,6 +3960,7 @@ public class ExcelTabController extends BladeController {
|
|
|
tableFile.setDomainUrl(bladeFile1.getLink());
|
|
|
tableFile.setIsDeleted(0);
|
|
|
tableFile.setExtension(fileExtension);
|
|
|
+ tableFile.setClassify(classify);
|
|
|
fileList.add(tableFile);
|
|
|
}
|
|
|
tableFileService.saveOrUpdateBatch(fileList);
|