edit-liche-robot3
This commit is contained in:
@@ -75,12 +75,12 @@ class Qyrobot{
|
||||
$month_count = $this->ci->app_liche_orders_model->count($where);//本月成交订单数
|
||||
|
||||
//意向金等于定金的支付订单
|
||||
$sql = "select count(*) as total from lc_app_liche_orders as a left join lc_receiver_orders as b on a.o_id=b.id where a.total_price=b.deposit and a.type=4 and a.status=1 and a.pay_price>=0 and a.pay_time>='".date('Y-m-d 00:00:00')."'";
|
||||
$sql = "select count(*) as total from lc_app_liche_orders as a left join lc_receiver_orders as b on a.o_id=b.id where a.total_price=b.deposit and a.type=4 and a.status=1 and a.pay_price>=50 and a.pay_time>='".date('Y-m-d 00:00:00')."'";
|
||||
$today_query = $this->ci->db->query($sql)->row_array();
|
||||
$sql = "select count(*) as total from lc_app_liche_orders as a left join lc_receiver_orders as b on a.o_id=b.id where a.total_price=b.deposit and a.type=4 and a.status=1 and a.pay_price>=0 and a.pay_time>='".date('Y-m-01 00:00:00')."'";
|
||||
$sql = "select count(*) as total from lc_app_liche_orders as a left join lc_receiver_orders as b on a.o_id=b.id where a.total_price=b.deposit and a.type=4 and a.status=1 and a.pay_price>=50 and a.pay_time>='".date('Y-m-01 00:00:00')."'";
|
||||
$month_query = $this->ci->db->query($sql)->row_array();
|
||||
$today_query['total_price'] && $today_count += $today_query['total'];
|
||||
$month_query['total_price'] && $month_count += $month_query['total'];
|
||||
$today_query['total'] && $today_count += $today_query['total'];
|
||||
$month_query['total'] && $month_count += $month_query['total'];
|
||||
|
||||
$url = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key='.$this->key;
|
||||
$this->ci->load->library('mycurl');
|
||||
|
||||
Reference in New Issue
Block a user