Browse Source

Merge remote-tracking branch 'remotes/origin/dev_voice' into dev

master
jianjun 5 years ago
parent
commit
335a4297c3
  1. 24
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java

24
epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java

@ -964,17 +964,21 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
result = new SyncScanResult();
SyncScanResult imgSyncScanResultData = imgSyncScanResult.getData();
if (imgSyncScanResult.success()&&imgSyncScanResultData.isAllPass()) {
result.setAllPass(imgSyncScanResultData.isAllPass());
result.getSuccessDataIds().addAll(imgSyncScanResultData.getSuccessDataIds());
result.getFailDataIds().addAll(imgSyncScanResultData.getFailDataIds());
if (imgSyncScanResult != null){
SyncScanResult imgSyncScanResultData = imgSyncScanResult.getData();
if (imgSyncScanResult.success()&&imgSyncScanResultData.isAllPass()) {
result.setAllPass(imgSyncScanResultData.isAllPass());
result.getSuccessDataIds().addAll(imgSyncScanResultData.getSuccessDataIds());
result.getFailDataIds().addAll(imgSyncScanResultData.getFailDataIds());
}
}
SyncScanResult textSyncScanResultData = textSyncScanResult.getData();
if (textSyncScanResult.success()&&textSyncScanResultData.isAllPass()) {
result.setAllPass(result.isAllPass() ? textSyncScanResultData.isAllPass() : false);
result.getSuccessDataIds().addAll(textSyncScanResultData.getSuccessDataIds());
result.getFailDataIds().addAll(textSyncScanResultData.getFailDataIds());
if (textSyncScanResult != null) {
SyncScanResult textSyncScanResultData = textSyncScanResult.getData();
if (textSyncScanResult.success() && textSyncScanResultData.isAllPass()) {
result.setAllPass(result.isAllPass() ? textSyncScanResultData.isAllPass() : false);
result.getSuccessDataIds().addAll(textSyncScanResultData.getSuccessDataIds());
result.getFailDataIds().addAll(textSyncScanResultData.getFailDataIds());
}
}
} catch (Exception e) {
log.error("scanContent exception", e);

Loading…
Cancel
Save