作者 何书鹏

订单列表查询优化

... ... @@ -94,6 +94,7 @@ class Order extends Api
$where = [
'fa_litestore_order.status' => 'normal',
'fa_litestore_order.user_id' => $this->auth->id,
'fa_litestore_order.pay_status' => '20',
'fa_litestore_order.freight_status' => '10',
];
break;
... ... @@ -101,6 +102,8 @@ class Order extends Api
$where = [
'fa_litestore_order.status' => 'normal',
'fa_litestore_order.user_id' => $this->auth->id,
'fa_litestore_order.pay_status' => '20',
'fa_litestore_order.freight_status' => '20',
'fa_litestore_order.receipt_status' => '10',
];
break;
... ... @@ -108,6 +111,8 @@ class Order extends Api
$where = [
'fa_litestore_order.status' => 'normal',
'fa_litestore_order.user_id' => $this->auth->id,
'fa_litestore_order.pay_status' => '20',
'fa_litestore_order.freight_status' => '20',
'fa_litestore_order.receipt_status' => '20',
];
break;
... ...