edit-robot-filter_brand=12

This commit is contained in:
lccsw
2022-09-02 15:02:53 +08:00
parent e4a42447e7
commit 7bace4505c
+3 -3
View File
@@ -440,7 +440,7 @@ class Qyrobot{
$this->ci->load->model('app/licheb/app_licheb_channel_biz_model');
$order_row = $this->ci->receiver_orders_v2_model->get(['id'=>$oid]);
if(!$order_row){
if(!$order_row || $order_row['brand_id']==12){
return false;
}
$biz_row = $this->ci->biz_model->get(['id'=>$order_row['biz_id']]);
@@ -497,7 +497,7 @@ class Qyrobot{
$sql = "select brand_id,count(a.o_id) as total from (select o_id,min(pay_time) as pay_time from lc_app_liche_orders
where o_id>=10000 and status=1 and pid!=0 and pay_price>0 and pay_time!='0000-00-00 00:00:00' and type <> 4 and pay_price>{$min_price} group by o_id order by o_id desc) as a
left join lc_receiver_orders_v2 as b on a.o_id=b.id
where a.pay_time>='{$today_s_time}' and a.pay_time<='{$today_e_time}' group by b.brand_id";
where a.pay_time>='{$today_s_time}' and a.pay_time<='{$today_e_time}' and b.brand_id!=12 group by b.brand_id";
$today_rows = $this->ci->db->query($sql)->result_array();
$today_count = 0;
$today_info = [];
@@ -514,7 +514,7 @@ class Qyrobot{
$sql = "select brand_id,count(a.o_id) as total from (select o_id,min(pay_time) as pay_time from lc_app_liche_orders
where o_id>=10000 and status=1 and pid!=0 and pay_price>0 and pay_time!='0000-00-00 00:00:00' and type <> 4 and pay_price>{$min_price} group by o_id order by o_id desc) as a
left join lc_receiver_orders_v2 as b on a.o_id=b.id
where a.pay_time>='{$month_s_time}' and a.pay_time<='{$month_e_time}' group by b.brand_id";
where a.pay_time>='{$month_s_time}' and a.pay_time<='{$month_e_time}' and b.brand_id!=12 group by b.brand_id";
$month_rows = $this->ci->db->query($sql)->result_array();
$month_count = 0;
$month_info = [];