|
|
@@ -728,6 +728,13 @@ public class DfOrderServiceImpl implements IErpOrderService {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
+ //判断物流状态是否更新 更新ai发送物流给客户
|
|
|
+ try {
|
|
|
+ aiSendExpress(order, stateEx);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("ai发送物流信息错误:{}", e.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
if (OrderContextHolder.hasIntegralOrder()){
|
|
|
//加积分订单的字段,然后在这里更新它
|
|
|
FsIntegralOrder integralOrder = OrderContextHolder.getIntegralOrder();
|
|
|
@@ -741,12 +748,6 @@ public class DfOrderServiceImpl implements IErpOrderService {
|
|
|
fsStoreOrderMapper.updateFsStoreOrder(fsStoreOrderMap);
|
|
|
}
|
|
|
|
|
|
- //判断物流状态是否更新 更新ai发送物流给客户
|
|
|
- try {
|
|
|
- aiSendExpress(order, stateEx);
|
|
|
- } catch (Exception e) {
|
|
|
- log.error("ai发送物流信息错误:{}", e.getMessage());
|
|
|
- }
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
@@ -760,11 +761,6 @@ public class DfOrderServiceImpl implements IErpOrderService {
|
|
|
log.info("AI发送物流消息开始 - orderId: {}, orderCode: {}, 原始deliveryType: {}, 新stateEx: {}",
|
|
|
orderId, order.getOrderCode(), order.getDeliveryType(), stateEx);
|
|
|
|
|
|
- order = fsStoreOrderMapper.selectFsStoreOrderByOrderId(orderId); //查询更新后的订单信息
|
|
|
-
|
|
|
- // 2. 查询最新数据后的日志
|
|
|
- log.info("查询最新订单数据 - orderId: {}, deliveryType: {}, deliveryStatus: {}, deliverySn: {}",
|
|
|
- orderId, order.getDeliveryType(), order.getDeliveryStatus(), order.getDeliverySn());
|
|
|
|
|
|
// 3. 检查deliveryType是否发生变化
|
|
|
boolean isStateChanged = !Objects.equals(order.getDeliveryType(), stateEx);
|