|
@@ -187,7 +187,8 @@ class DispatchService
|
|
|
// 查找批发配送订单
|
|
// 查找批发配送订单
|
|
|
$deliveryOrder = GhsDeliveryOrderClass::getByCondition([
|
|
$deliveryOrder = GhsDeliveryOrderClass::getByCondition([
|
|
|
'deliveryId' => $deliveryId,
|
|
'deliveryId' => $deliveryId,
|
|
|
- 'ghsOrderId' => $orderId
|
|
|
|
|
|
|
+ 'ghsOrderId' => $orderId,
|
|
|
|
|
+ 'orderStatus' => ['not in', [-1, -2]],
|
|
|
], false, null, $fields);
|
|
], false, null, $fields);
|
|
|
|
|
|
|
|
if ($deliveryOrder) {
|
|
if ($deliveryOrder) {
|
|
@@ -197,7 +198,8 @@ class DispatchService
|
|
|
// 查找零售配送订单
|
|
// 查找零售配送订单
|
|
|
$deliveryOrder = HdDeliveryOrderClass::getByCondition([
|
|
$deliveryOrder = HdDeliveryOrderClass::getByCondition([
|
|
|
'deliveryId' => $deliveryId,
|
|
'deliveryId' => $deliveryId,
|
|
|
- 'hdOrderId' => $orderId
|
|
|
|
|
|
|
+ 'hdOrderId' => $orderId,
|
|
|
|
|
+ 'orderStatus' => ['not in', [-1, -2]],
|
|
|
], false, null, $fields);
|
|
], false, null, $fields);
|
|
|
|
|
|
|
|
if ($deliveryOrder) {
|
|
if ($deliveryOrder) {
|