edit-api-static

This commit is contained in:
lccsw
2022-07-24 12:02:44 +08:00
parent a48e5ecb07
commit ffbd56a580
+6 -4
View File
@@ -15,6 +15,7 @@ class Statistics extends Wxapp{
$this->load->model('receiver/receiver_clue_statistics_model','statistics_model');
$this->load->model('receiver/receiver_clues_model','clues_model');
$this->load->model('receiver/order/receiver_orders_model','orders_model');
$this->load->model('receiver/order/receiver_orders_v2_model');
$this->load->model('auto/auto_brand_model');
$this->load->model('auto/auto_series_model');
@@ -198,15 +199,16 @@ class Statistics extends Wxapp{
!$page && $page = 1;
!$size && $size = 20;
$t1 = 'lc_receiver_clues';
$t2 = 'lc_receiver_orders';
$t2 = 'lc_receiver_orders_v2';
$where = [
"{$t1}.recommend_id" => $this->session['uid'],
"{$t2}.status" => 1
];
if($type){
$where["{$t2}.status"] = 6;
$where["{$t2}.id in (select o_id from lc_receiver_order_status where pid_status=5 and status=1)"] = null;
}else{
$where["{$t2}.status>"] = 0;
$where["{$t2}.id in (select o_id from lc_receiver_order_status where pid_status=0 and status=1)"] = null;
}
$count = $this->clues_model->count_order($where);
$lists = [];
@@ -226,7 +228,7 @@ class Statistics extends Wxapp{
$attrs_arr = array_merge($version_arr,$color_arr);
$attrs = $this->auto_attr_model->get_map_by_ids($attrs_arr,'id,title');
$status_arr = $this->orders_model->get_status();
$status_arr = $this->receiver_orders_v2_model->get_status();
foreach($rows as $key=>$val){
$brand_name = isset($brands[$val['brand_id']]) ? $brands[$val['brand_id']][0]['name'] : '';