Commit 99ddc6cb authored by zhuwei's avatar zhuwei

月实收

parent 13482bae
...@@ -57,6 +57,7 @@ class ConvertCouponService ...@@ -57,6 +57,7 @@ class ConvertCouponService
*/ */
public function convertCoupon($user_id,$report_id,$bargain_id,$order_id){ public function convertCoupon($user_id,$report_id,$bargain_id,$order_id){
if(!$user_id or !$report_id or !$bargain_id or !$order_id){ if(!$user_id or !$report_id or !$bargain_id or !$order_id){
big_log('=============false客户DI:'.$user_id.' START=================');
return false; return false;
} }
big_log('=============客户DI:'.$user_id.' START================='); big_log('=============客户DI:'.$user_id.' START=================');
......
...@@ -176,9 +176,11 @@ class StatementService ...@@ -176,9 +176,11 @@ class StatementService
$where_['status'] =array( "in", '10, 11, 13' ); $where_['status'] =array( "in", '10, 11, 13' );
$performanceSum = $this->bargainModel->getAddBargainNum($where_, 1);//1表示业绩 2表示实收 $performanceSum = $this->bargainModel->getAddBargainNum($where_, 1);//1表示业绩 2表示实收
$result["performance_month"] = isset($performanceSum[0]["num"]) ? $performanceSum[0]["num"] : 0; $result["performance_month"] = isset($performanceSum[0]["num"]) ? $performanceSum[0]["num"] : 0;
$real_performanceSum = $this->bargainModel->getAddBargainNum($where_, 2);//1表示业绩 2表示实收
$result["real_performance_month"] = isset($real_performanceSum[0]["num"]) ? $real_performanceSum[0]["num"] : 0;
//本周业绩 //本周业绩
$start_time = date("Y-m-d", strtotime("-7 day")); $start_time = date("Y-m-d", strtotime("-7 day"));
$where_['create_time'] = $conditions['create_time']; $where_['create_time'] = $conditions['create_time'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment