|
@@ -1,6 +1,8 @@
|
|
|
package com.fdkankan.scene.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
+import cn.hutool.core.date.TimeInterval;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
@@ -113,6 +115,7 @@ public class SceneUploadServiceImpl extends ServiceImpl<ISceneUploadMapper, Scen
|
|
|
|
|
|
public String uploadFiles(String sendFileName,String bizType,List<MultipartFile> files,
|
|
|
String num, Integer type,Long userId, String uploadPath) throws Exception{
|
|
|
+ TimeInterval timer = DateUtil.timer();
|
|
|
if (StrUtil.isEmpty(num))
|
|
|
throw new BusinessException(ServerCode.PARAM_REQUIRED, "num");
|
|
|
if(CollUtil.isEmpty(files))
|
|
@@ -129,6 +132,7 @@ public class SceneUploadServiceImpl extends ServiceImpl<ISceneUploadMapper, Scen
|
|
|
if(type != null && 1 == type){
|
|
|
this.updateFileByPreFix(num,bizType,bucket);
|
|
|
}
|
|
|
+ System.out.println(timer.intervalRestart());
|
|
|
for (MultipartFile file : files) {
|
|
|
String fileName = file.getOriginalFilename();
|
|
|
// 获取文件后缀
|
|
@@ -157,6 +161,7 @@ public class SceneUploadServiceImpl extends ServiceImpl<ISceneUploadMapper, Scen
|
|
|
//添加记录
|
|
|
this.saveData(num,ossPath,bizType,userId);
|
|
|
}
|
|
|
+ System.out.println(timer.intervalRestart());
|
|
|
StringBuilder returnString = new StringBuilder();
|
|
|
for (String res : urlList) {
|
|
|
if(StringUtils.isNotBlank(returnString)){
|