Commit 1865cf47 authored by clone's avatar clone

进场统计

parent 1b9ad39b
......@@ -93,12 +93,12 @@ class OMarchInModel extends Model
}
/**
* 查询经纪人进场数据
* 查询经纪人进场数据 todo 产品定义同一天带看同一个客户去多个铺子算一个带看,下个方法同样
* @param $params
* @return false|\PDOStatement|string|\think\Collection
*/
public function getAddMarchInNumGroupTime($params){
$field = "count(1) as num,DATE(create_time) as day";
$field = "count(DISTINCT report_id) as num,DATE(create_time) as day";
$where_ = [];
if(isset($params["agent_id"])){
$where_["reception_id"] = $params["agent_id"];
......@@ -114,7 +114,7 @@ class OMarchInModel extends Model
}
public function getAddMarchInNum($params){
$field = "count(1) as num";
$field = "count(DISTINCT report_id) as num";
$where_ = [];
if(isset($params["agent_id"])){
$where_["a.reception_id"] = $params["agent_id"];
......
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