1
This commit is contained in:
@@ -1314,17 +1314,9 @@ public class TencentDocController extends BaseController {
|
|||||||
JDOrder order = jdOrderService.selectJDOrderByThirdPartyOrderNo(orderNo);
|
JDOrder order = jdOrderService.selectJDOrderByThirdPartyOrderNo(orderNo);
|
||||||
|
|
||||||
if (order == null) {
|
if (order == null) {
|
||||||
errorCount++;
|
// 订单不存在,跳过但不统计为错误
|
||||||
log.warn("未找到订单 - 单号: {}, 行号: {}", orderNo, excelRow);
|
skippedCount++;
|
||||||
|
log.info("跳过订单不存在 - 单号: {}, 行号: {}", orderNo, excelRow);
|
||||||
// 记录错误详情
|
|
||||||
Map<String, Object> errorLog = new java.util.HashMap<>();
|
|
||||||
errorLog.put("orderNo", orderNo);
|
|
||||||
errorLog.put("row", excelRow);
|
|
||||||
errorLog.put("errorType", "订单不存在");
|
|
||||||
errorLog.put("errorMessage", "未找到订单");
|
|
||||||
errorLogs.add(errorLog);
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user