Commit 175de13d authored by zw's avatar zw

最适合业态

parent 66bffe79
......@@ -187,11 +187,11 @@ class RankingListService
{
$storeModel = new AStore();
$fields = "a.id,a.store_name,SUM(b.performance) as performance";
$params["a.id"] = array("not in","5288,3742,5292");
//$params["a.id"] = array("not in","5288,3742,5292");
//查询出有业绩的经纪人
$have_performance_arr = $storeModel->getStoreListByPK($fields, $params);
//查询出无业绩的经纪人
$arr = $storeModel->getStoreListByPk1($params["a.site_id"], $begin_time, $end_time,$ids,"5288,3742,5292");
$arr = $storeModel->getStoreListByPk1($params["a.site_id"], $begin_time, $end_time,$ids);
return array_merge($have_performance_arr, $arr);
}
......
......@@ -301,10 +301,10 @@ class AStore extends BaseModel
//echo $this->getLastSql();
return $data;
}
public function getStoreListByPk1($siteId,$startTime,$endTime,$ids,$notIds){
public function getStoreListByPk1($siteId,$startTime,$endTime,$ids){
$str_ids = " ";
if($ids){
$str_ids = " and a.id in ($ids) and a.id not in ($notIds)";
$str_ids = " and a.id in ($ids)";
}
$sql = "select aa.id,aa.store_name,aa.performance from
......
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