微调
This commit is contained in:
@@ -82,7 +82,7 @@ public class OfflineDataUploadController extends BaseController {
|
|||||||
if (result) {
|
if (result) {
|
||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, "文件补召中,请稍后", methodDescribe);
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, "文件补召中,请稍后", methodDescribe);
|
||||||
} else {
|
} else {
|
||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, "文件补召中失败", methodDescribe);
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, "文件补召失败", methodDescribe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -220,8 +220,7 @@ public class OfflineDataUploadServiceImpl implements OfflineDataUploadService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean startMakeUpData(MakeUpParam param) {
|
public boolean startMakeUpData(MakeUpParam param) {
|
||||||
boolean result = true;
|
boolean result = false;
|
||||||
try {
|
|
||||||
List<String> fileList = new ArrayList<>();
|
List<String> fileList = new ArrayList<>();
|
||||||
//fixme 这边补召暂不支持多工程补召,防止下载文件时间过长,会出问题。
|
//fixme 这边补召暂不支持多工程补召,防止下载文件时间过长,会出问题。
|
||||||
String s = param.getProList().get(0);
|
String s = param.getProList().get(0);
|
||||||
@@ -279,12 +278,10 @@ public class OfflineDataUploadServiceImpl implements OfflineDataUploadService {
|
|||||||
redisUtil.saveByKey(AppRedisKey.MAKE_UP_FILES + param.getNDid(),downloadMakeUpDto);
|
redisUtil.saveByKey(AppRedisKey.MAKE_UP_FILES + param.getNDid(),downloadMakeUpDto);
|
||||||
publisher.send("/makeUpData/" + param.getNDid() +"/" + param.getLineId(), "makeUpData", 1, false);
|
publisher.send("/makeUpData/" + param.getNDid() +"/" + param.getLineId(), "makeUpData", 1, false);
|
||||||
log.info("下载的文件列表,{}",fileList);
|
log.info("下载的文件列表,{}",fileList);
|
||||||
|
result = true;
|
||||||
} else {
|
} else {
|
||||||
throw new BusinessException("装置内未找到原始文件!");
|
throw new BusinessException("装置内未找到原始文件!");
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
|
||||||
result = false;
|
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user