mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update ShopOrder.php
This commit is contained in:
parent
53dfa80a68
commit
e1705815fe
@ -66,7 +66,9 @@ class ShopOrder extends Controller
|
||||
$db = $this->_query('DataUser')->like('phone#from_phone,nickname#from_nickname')->db();
|
||||
if ($db->getOptions('where')) $query->whereRaw("from in {$db->field('id')->buildSql()}");
|
||||
// 列表选项卡
|
||||
if (is_numeric($this->type = trim(input('type', 'ta'), 't'))) $query->where(['status' => $this->type]);
|
||||
if (is_numeric($this->type = trim(input('type', 'ta'), 't'))) {
|
||||
$query->where(['status' => $this->type]);
|
||||
}
|
||||
// 分页排序处理
|
||||
$query->where(['deleted' => 0])->order('id desc');
|
||||
if (input('output') === 'json') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user