From 443a331e32ddc58a3ae423225332b3c4b4445b81 Mon Sep 17 00:00:00 2001 From: qianhy Date: Thu, 30 Mar 2023 22:38:10 +0800 Subject: [PATCH] orderv2 zero_first_pay fixbug qyrobot --- common/libraries/Qyrobot.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/libraries/Qyrobot.php b/common/libraries/Qyrobot.php index 51f5aaf8..aa32b57f 100644 --- a/common/libraries/Qyrobot.php +++ b/common/libraries/Qyrobot.php @@ -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 = [];