|
|
|
@ -255,7 +255,7 @@ public class IdcServiceImpl implements IdcService {
|
|
|
|
|
try {
|
|
|
|
|
String[] tnames = t.split("/");
|
|
|
|
|
|
|
|
|
|
String lastUpdateTime = getUpdateTime(tnames[2] + "." + tnames[0]);
|
|
|
|
|
String lastUpdateTime = getUpdateTime(tnames[2] + "." + tnames[0]+"."+tnames[1]);
|
|
|
|
|
Date nowUpdateTime = new Date();
|
|
|
|
|
// if (!StringUtils.isEmpty(tnames[0])) {
|
|
|
|
|
|
|
|
|
@ -301,7 +301,7 @@ public class IdcServiceImpl implements IdcService {
|
|
|
|
|
if (sync) {
|
|
|
|
|
result = syncMasterData(map, isUpload, syncIp);
|
|
|
|
|
if (result) {
|
|
|
|
|
setUpdateTime(tnames[2] + "." + tnames[0], DateUtil.formatDate(nowUpdateTime, "yyyy-MM-dd HH:mm:ss"));
|
|
|
|
|
setUpdateTime(tnames[2] + "." + tnames[0]+"."+tnames[1], DateUtil.formatDate(nowUpdateTime, "yyyy-MM-dd HH:mm:ss"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//}
|
|
|
|
@ -1016,6 +1016,7 @@ public class IdcServiceImpl implements IdcService {
|
|
|
|
|
|
|
|
|
|
if (MediaType.parse("application/force-download").equals(result.body().contentType())) {
|
|
|
|
|
try (InputStream inputStream = result.body().byteStream()) {
|
|
|
|
|
|
|
|
|
|
String filePathSlash = filePath.substring(filePath.length() - 1).equals("/") ? "" : "/";
|
|
|
|
|
|
|
|
|
|
FileOutputStream outputStream = new FileOutputStream(filePath + filePathSlash + fileName);
|
|
|
|
|