orderv2 zero_first_pay fixbug qyrobot
This commit is contained in:
@@ -506,9 +506,9 @@ class Qyrobot{
|
||||
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}' and b.brand_id!=12 group by b.brand_id";
|
||||
$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 (type=1 and pay_price=0 or pay_price>{$min_price}) and pay_time!='0000-00-00 00:00:00' and pay_time>='{$today_s_time}' and pay_time<='{$today_e_time}' and type <> 4 group by o_id order by o_id desc) as a
|
||||
where o_id>=10000 and status=1 and pid!=0 and (type=1 and pay_price=0 or pay_price>{$min_price}) and pay_time!='0000-00-00 00:00:00' and type <> 4 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 b.brand_id!=12 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 = [];
|
||||
@@ -527,9 +527,9 @@ class Qyrobot{
|
||||
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}' and b.brand_id!=12 group by b.brand_id";
|
||||
$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 (type=1 and pay_price=0 || pay_price>{$min_price}) and pay_time!='0000-00-00 00:00:00' and pay_time>='{$month_s_time}' and pay_time<='{$month_e_time}' and type <> 4 group by o_id order by o_id desc) as a
|
||||
where o_id>=10000 and status=1 and pid!=0 and (type=1 and pay_price=0 or pay_price>{$min_price}) and pay_time!='0000-00-00 00:00:00' and type <> 4 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 b.brand_id!=12 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 = [];
|
||||
|
||||
Reference in New Issue
Block a user