|
|
@@ -23,6 +23,7 @@ import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.zip.ZipException;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -34,6 +35,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
* @author wuhonghao
|
|
|
* @date 2021/12/01
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
public class BaseSafetyToolServiceImpl implements IBaseSafetyToolService {
|
|
|
|
|
|
@@ -160,6 +162,7 @@ public class BaseSafetyToolServiceImpl implements IBaseSafetyToolService {
|
|
|
if(tools.size() == 1){
|
|
|
BaseSafetyTool tool = tools.get(0);
|
|
|
String fileName = tool.getToolCode() + ".jpg";
|
|
|
+ log.info("{} - {}", fileName, tool.getQcodeUrl());
|
|
|
return AjaxResult.uploadFile(tool.getQcodeUrl(), fileName);
|
|
|
}
|
|
|
// 如果多条,打包压缩后发
|
|
|
@@ -184,6 +187,7 @@ public class BaseSafetyToolServiceImpl implements IBaseSafetyToolService {
|
|
|
return AjaxResult.error("文件压缩失败");
|
|
|
}
|
|
|
String zipFilePath = localFilePath + "/" + zipFile;
|
|
|
+ log.info("压缩文件: {} - {}", zipFile, zipFilePath);
|
|
|
return sysFileService.uploadFile(zipFilePath);
|
|
|
}
|
|
|
|