mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-10 15:39:45 +08:00
Update ShopOrderSend.php
This commit is contained in:
parent
8185049be7
commit
b80da74774
@ -41,13 +41,13 @@ class ShopOrderSend extends Controller
|
|||||||
// 用户搜索查询
|
// 用户搜索查询
|
||||||
$db = $this->_query('DataUser')->like('phone#member_phone,nickname#member_nickname')->db();
|
$db = $this->_query('DataUser')->like('phone#member_phone,nickname#member_nickname')->db();
|
||||||
if ($db->getOptions('where')) $query->whereRaw("uid in {$db->field('id')->buildSql()}");
|
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'))) {
|
if (is_numeric($this->type = trim(input('type', 'ta'), 't'))) {
|
||||||
$query->where(['status' => $this->type]);
|
$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') {
|
if (input('output') === 'json') {
|
||||||
$result = $query->page(true, false);
|
$result = $query->page(true, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user