This commit is contained in:
xman 2025-06-27 11:15:16 +08:00
parent d76f15d2de
commit e1cd94e678

View File

@ -230,7 +230,7 @@ class Order extends Model
public function dispatch2()
{
return $this->hasOne(OrderDispatch::class, 'order_id', 'id', [], 'LEFT')->setEagerlyType(1)->where('fa_order_dispatch.status',OrderDispatch::STATUS_FINISH);
return $this->hasOne(OrderDispatch::class, 'order_id', 'id', [], 'LEFT')->setEagerlyType(1)->where('fa_order_dispatch.status','>',0);
}
/**