|
@@ -4417,11 +4417,11 @@ 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, Integer classify, BladeUser b,Integer sort) {
|
|
|
+ public R addBussFile(Integer classify,Long contractId,@RequestParam("file") MultipartFile[] files, String nodeId, Integer type,BladeUser b) {
|
|
|
List<TableFile> fileList = new ArrayList<>();
|
|
|
- if (file != null && file.length >= 1) {
|
|
|
- for (MultipartFile multipartFile : file) {
|
|
|
- R<BladeFile> bladeFile = iossClient.addFileInfo(multipartFile);
|
|
|
+ if (files != null && files.length >= 1) {
|
|
|
+ for (int i = 0; i < files.length; i++) {
|
|
|
+ R<BladeFile> bladeFile = iossClient.addFileInfo(files[i]);
|
|
|
BladeFile bladeFile1 = bladeFile.getData();
|
|
|
|
|
|
TableFile tableFile = new TableFile();
|
|
@@ -4429,7 +4429,7 @@ public class ExcelTabController extends BladeController {
|
|
|
String fileExtension = FileUtil.getFileExtension(bladeFile1.getName()).toLowerCase();
|
|
|
tableFile.setTabId(nodeId + "");
|
|
|
tableFile.setContractId(contractId);
|
|
|
- tableFile.setName(multipartFile.getOriginalFilename());
|
|
|
+ tableFile.setName(files[i].getOriginalFilename());
|
|
|
tableFile.setType(type); //10 代表附件
|
|
|
if (type == 10 || type == 11 || type == 12 || type == 20 || type == 21 || type == 22) {
|
|
|
tableFile.setDomainPdfUrl(bladeFile1.getLink());
|
|
@@ -4438,7 +4438,7 @@ public class ExcelTabController extends BladeController {
|
|
|
tableFile.setIsDeleted(0);
|
|
|
tableFile.setExtension(fileExtension);
|
|
|
tableFile.setClassify(classify);
|
|
|
- tableFile.setSort(sort);
|
|
|
+ //tableFile.setSort();
|
|
|
fileList.add(tableFile);
|
|
|
}
|
|
|
tableFileService.saveOrUpdateBatch(fileList);
|