edit-admin-order_list
This commit is contained in:
@@ -62,6 +62,7 @@ class Orders extends HD_Controller
|
||||
if($key2){
|
||||
$where_s = [];
|
||||
$key==1 && $where_s["{$t1}.payway"] = 0;//分期
|
||||
$key==3 && $where_s["{$t1}.id in (select o_id from lc_app_liche_orders where status=1 group by o_id)"] = null;
|
||||
if($key2){
|
||||
$where_s["{$t2}.pid_status"] = $value['pid_status'];
|
||||
$up_key = $key2+1;
|
||||
@@ -74,6 +75,7 @@ class Orders extends HD_Controller
|
||||
"id not in (select o_id from lc_receiver_order_status where pid_status={$value['pid_status']} and status=1)" => null
|
||||
];
|
||||
$key==1 && $where_s['payway'] = 0;
|
||||
$key==3 && $where_s['id in (select o_id from lc_app_liche_orders where status=1 group by o_id)'] = null;
|
||||
$where_s = array_merge($where,$where_s);
|
||||
$count2 = $this->receiver_orders_v2_model->count($where_s);
|
||||
}
|
||||
|
||||
@@ -192,6 +192,9 @@ class Ordersv2List
|
||||
$fileds = "{$this->t1}.id,{$this->t1}.name,{$this->t1}.mobile,{$this->t1}.brand_id,{$this->t1}.s_id,{$this->t1}.v_id,
|
||||
{$this->t1}.cor_id,{$this->t1}.incor_id,{$this->t1}.money_json,{$this->t1}.payway,{$this->t1}.status,{$this->t1}.c_time,
|
||||
{$this->t1}.biz_id,{$this->t1}.bill_time,{$this->t1}.customer_id,{$this->t1}.owner_name,{$this->t1}.owner_mobile,{$this->t1}.main_type,{$this->t1}.info_json";
|
||||
if($params['status_pid']==3){
|
||||
$where["{$this->t1}.id in (select o_id from lc_app_liche_orders where status=1 group by o_id)"] = null;
|
||||
}
|
||||
if(strlen($params['status_pid']) && $params['status']){
|
||||
$where["{$this->t2}.pid_status"] = $params['status_pid'];
|
||||
$up_key = $params['status']+1;
|
||||
|
||||
Reference in New Issue
Block a user