This commit is contained in:
Leo
2026-01-17 13:43:46 +08:00
parent 5a8e1198cf
commit dafd63a9ec

View File

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