修复内容
This commit is contained in:
@@ -34,10 +34,14 @@ class OrderLogic
|
||||
public static function getListsCondition($get)
|
||||
{
|
||||
$where = [];
|
||||
|
||||
//订单状态
|
||||
if ($get['type'] != '') {
|
||||
$where[] = ['pay_status', '=', $get['type']];
|
||||
if ($get['type'] != 66){
|
||||
//订单状态
|
||||
if ($get['type'] != '') {
|
||||
$where[] = ['pay_status', '=', $get['type']];
|
||||
}
|
||||
$where[] = ['del', '=', 0];
|
||||
}else{
|
||||
$where[] = ['del', '=', 1];
|
||||
}
|
||||
//订单编号查询
|
||||
if (isset($get['order_sn']) && $get['order_sn'] != '') {
|
||||
@@ -117,7 +121,7 @@ class OrderLogic
|
||||
$order = new Order();
|
||||
$where = self::getListsCondition($get);
|
||||
$field = 'o.*,order_status as order_status_text,pay_way as pay_way_text';
|
||||
$brand = Db::name('goods_brand')->where(['del' => 0])->column('name', 'id'); //订单类型
|
||||
$brand = Db::name('goods_brand')->column('name', 'id'); //订单类型
|
||||
$admin = Db::name('admin')->column('name', 'id');
|
||||
$count = $order
|
||||
->where($where)
|
||||
|
||||
Reference in New Issue
Block a user