signleDownloadFile改pbulic

master
chengqf 2 years ago
parent 3320e2daa9
commit 85ae23bf45

@ -38,4 +38,5 @@ public interface IdcService {
void downloadFile(String fileName,HttpServletResponse response) ;
BaseResponse onceSync(String tableName,boolean isUpload);
boolean signleDownloadFile(String syncIp, String fileName);
}

@ -1162,7 +1162,8 @@ public class IdcServiceImpl implements IdcService {
return success;
}
private boolean signleDownloadFile(String syncIp, String fileName) {
@Override
public boolean signleDownloadFile(String syncIp, String fileName) {
String filePathSlash = filePath.substring(filePath.length() - 1).equals("/") ? "" : "/";
if(!FileUtils.makeDirectory(filePath + filePathSlash + imagePath))
IDCUtils.createDirectory(filePath + filePathSlash + imagePath);

Loading…
Cancel
Save