|
|
|
@ -42,8 +42,8 @@ public class LabelTransactionLogServiceImpl implements LabelTransactionLogServic |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Object> batchRetry(List<Map<String, Object>> retryList) { |
|
|
|
logger.info("批量手动重试开始,记录数: {}", retryList.size()); |
|
|
|
public Map<String, Object> batchRetry(List<Map<String, Object>> retryList, boolean isExceptionRetry) { |
|
|
|
logger.info("批量手动重试开始,记录数: {}, 是否异常重试: {}", retryList.size(), isExceptionRetry); |
|
|
|
|
|
|
|
int successCount = 0; |
|
|
|
int failureCount = 0; |
|
|
|
@ -59,6 +59,7 @@ public class LabelTransactionLogServiceImpl implements LabelTransactionLogServic |
|
|
|
|
|
|
|
try { |
|
|
|
// 1. 校验StockTransactionLog的传输状态 |
|
|
|
if (!isExceptionRetry) { |
|
|
|
Map<String, Object> syncStatus = stockTransactionLogDao.getSyncStatus(site, buNo, transactionId); |
|
|
|
if (syncStatus != null) { |
|
|
|
String syncedFlag = syncStatus.get("syncedFlag") != null ? syncStatus.get("syncedFlag").toString() : ""; |
|
|
|
@ -73,6 +74,7 @@ public class LabelTransactionLogServiceImpl implements LabelTransactionLogServic |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 2. 同步调用ERP接口(返回调用结果) |
|
|
|
logger.info("开始同步调用ERP接口,site: {}, buNo: {}, transactionId: {}", site, buNo, transactionId); |
|
|
|
|