Commit caefec30 authored by zhuwei's avatar zhuwei

业绩

parent ef192fc4
......@@ -444,7 +444,15 @@ class PerformanceService
foreach ($arr as $key => $v) {
$e_data_old['index'] = $v["index_"];//排名
$e_data_old['district_name'] = $v['store_name'].'-'.$v['name'];//部门
if($type ==1 ){
$e_data_old['district_name'] = $v['name'];//个人
}elseif ($type ==2){
$e_data_old['district_name'] = $v['store_name'];//门店
}else{
$e_data_old['district_name'] = $v['district_name'];//部门
}
$e_data_old['performance_total'] = $v['performance_total'];//业绩
$e_data_old['bargain_sum_total'] = $v['bargain_sum_total'];//成交单数
$e_data_old['paylog_total'] = $v['paylog_total'];//收款数
......
......@@ -136,7 +136,7 @@ class TAgentTotalModel extends Model
->group($group_)
->order($order)
->select();
echo $this->db_->getLastSql();
//echo $this->db_->getLastSql();
return $result;
}
......
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