|
|
@ -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); |
|
|
|