diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index 46e16393..843ffd7f 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -281,7 +281,7 @@ class LocalStoreLogic extends Logic } $count = LocalStoreOrder::alias('lso') - ->where(['lstore_id' => $data['lstore_id'], 'pay_shop_type' => 1, 'state' => 1]) + ->where(['lso.lstore_id' => $data['lstore_id'], 'lso.pay_shop_type' => 1, 'lso.state' => 1]) ->where($where) ->count();