Update ShopOrderSend.php

This commit is contained in:
Anyon 2020-12-30 14:24:46 +08:00
parent 8185049be7
commit b80da74774

View File

@ -41,13 +41,13 @@ class ShopOrderSend extends Controller
// 用户搜索查询
$db = $this->_query('DataUser')->like('phone#member_phone,nickname#member_nickname')->db();
if ($db->getOptions('where')) $query->whereRaw("uid in {$db->field('id')->buildSql()}");
// 订单搜索查询
$db = $this->_query('ShopOrder')->whereIn('status', [3, 4, 5])->db();
if ($db->getOptions('where')) $query->whereRaw("order_no in {$db->field('order_no')->buildSql()}");
// 列表选项卡
if (is_numeric($this->type = trim(input('type', 'ta'), 't'))) {
$query->where(['status' => $this->type]);
}
// 订单搜索查询
$db = $this->_query('ShopOrder')->whereIn('status', [3, 4, 5])->db();
$query->whereRaw("order_no in {$db->field('order_no')->buildSql()}");
// 分页排序处理
if (input('output') === 'json') {
$result = $query->page(true, false);