This commit is contained in:
van
2026-04-11 22:55:40 +08:00
parent 52b8f13b2d
commit 1446ea2432
6 changed files with 33 additions and 66 deletions

View File

@@ -43,11 +43,6 @@ public interface IJDOrderService {
/** 根据第三方单号查询订单 */
JDOrder selectJDOrderByThirdPartyOrderNo(String thirdPartyOrderNo);
/**
* 按订单号或客户/第三方单号(与表 jd_order.order_id、third_party_order_no 完全匹配)
*/
JDOrder selectJDOrderByOrderIdOrThirdPartyOrderNo(String orderKey);
/** 批量删除根据主键ID */
int deleteJDOrderByIds(Long[] ids);

View File

@@ -69,14 +69,6 @@ public class JDOrderServiceImpl implements IJDOrderService {
return jdOrderMapper.selectJDOrderByThirdPartyOrderNo(thirdPartyOrderNo);
}
@Override
public JDOrder selectJDOrderByOrderIdOrThirdPartyOrderNo(String orderKey) {
if (orderKey == null || orderKey.trim().isEmpty()) {
return null;
}
return jdOrderMapper.selectJDOrderByOrderIdOrThirdPartyOrderNo(orderKey.trim());
}
@Override
public int deleteJDOrderByIds(Long[] ids) {
if (ids == null || ids.length == 0) {

View File

@@ -229,6 +229,8 @@ public class TencentDocServiceImpl implements ITencentDocService {
companyColumn = i;
} else if (TencentDocDataParser.headerEquals(cellText, "单号")) {
orderNoColumn = i;
} else if (orderNoColumn == null && TencentDocDataParser.headerEquals(cellText, "客户单号")) {
orderNoColumn = i;
} else if (orderNoColumn == null && TencentDocDataParser.headerEquals(cellText, "第三方单号")) {
orderNoColumn = i;
} else if (cellText.contains("型号")) {
@@ -255,7 +257,7 @@ public class TencentDocServiceImpl implements ITencentDocService {
}
if (orderNoColumn == null) {
throw new RuntimeException("未找到'单号'列,请检查表头配置");
throw new RuntimeException("未找到「单号」「客户单号」或「第三方单号」列,请检查表头配置");
}
log.info("表头识别完成 - 单号列: {}, 京东下单订单号列: {}, 物流列: {}", orderNoColumn, jdPlaceOrderNoColumn, logisticsColumn);