|
|
|
@ -188,6 +188,7 @@ public class DmpCallbackServiceImpl implements DmpCallbackService {
|
|
|
|
|
@SneakyThrows(value = ZipException.class)
|
|
|
|
|
private void downResource(String taskName, DeliveryRecord
|
|
|
|
|
byTaskName, List<List<String>> originalList, List<String> responseList) {
|
|
|
|
|
log.info("=================== the task name {} response size {} ===================",taskName,responseList.size());
|
|
|
|
|
Integer type = byTaskName.getType();
|
|
|
|
|
String uuid = IdUtil.fastSimpleUUID();
|
|
|
|
|
List<String> csvList = Lists.newArrayList();
|
|
|
|
@ -237,6 +238,7 @@ public class DmpCallbackServiceImpl implements DmpCallbackService {
|
|
|
|
|
String filePath = zipPath.substring
|
|
|
|
|
(zipPath.lastIndexOf(StrPool.SLASH) + DefaultNumberConstants.ONE_NUMBER);
|
|
|
|
|
FileUtil.del(csvPath);
|
|
|
|
|
log.info("================== the zip path {} size {} down id {} ==================",zipPath,originalList.size(),byTaskName.getDownId());
|
|
|
|
|
String downUrl = deliveryProperties.getDmpDownPath().concat(filePath);
|
|
|
|
|
if (type == DefaultNumberConstants.TWO_NUMBER) {
|
|
|
|
|
deliveryRecordClient.updatePath(zipPath, downUrl, byTaskName.getDownId(), SecurityConstants.FROM_IN);
|
|
|
|
|