Commit d172d52b authored by zw's avatar zw

业绩

parent 03bb8642
......@@ -54,7 +54,7 @@ class TAgentTotalModel extends Model{
}
public function getTotalByAgentId($params , $type){
$group_ = "";
$group_ = "agent_id";
switch ($type){
case 1:
$group_ = "agent_id";
......@@ -65,9 +65,6 @@ class TAgentTotalModel extends Model{
case 3:
$group_ = "district_id";
break;
default:
$group_ = "agent_id";
}
$result = $this->db_
->field("agent_id,store_id,district_id,sum(performance) as performance_total")
......
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