Commit f23b102c authored by zhuwei's avatar zhuwei

区分城市

parent 09b4fc6f
...@@ -310,7 +310,7 @@ class Broker extends Basic ...@@ -310,7 +310,7 @@ class Broker extends Basic
$params['disc'] = $result[0]['disc'] ? $result[0]['disc'] : '黄浦区'; $params['disc'] = $result[0]['disc'] ? $result[0]['disc'] : '黄浦区';
} }
$UPhoneFollowPp = new UPhoneFollowPp(); $UPhoneFollowPp = new UPhoneFollowPp($this->siteId);
$result = $UPhoneFollowPp->savePhoneFollow($params); $result = $UPhoneFollowPp->savePhoneFollow($params);
if ($result > 0) { if ($result > 0) {
......
...@@ -171,7 +171,7 @@ class Client extends Basic ...@@ -171,7 +171,7 @@ class Client extends Basic
*/ */
public function agentUserFollow(){ public function agentUserFollow(){
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
$table= new UPhoneFollowPp; $table= new UPhoneFollowPp($this->siteId);
$data['msg'] = ''; $data['msg'] = '';
$params = $this->request->param(); $params = $this->request->param();
$time=date("Y-m-d H:i:s",time());//当前时间 $time=date("Y-m-d H:i:s",time());//当前时间
...@@ -283,7 +283,7 @@ class Client extends Basic ...@@ -283,7 +283,7 @@ class Client extends Basic
$total = $user->all_user_count($conditions); $total = $user->all_user_count($conditions);
}else{ }else{
//跟进 //跟进
$UPhoneFollowPp = new UPhoneFollowPp(); $UPhoneFollowPp = new UPhoneFollowPp($this->siteId);
$user_res = $UPhoneFollowPp->all_user_search($phone_or_name,$pagesize,$pagenum); $user_res = $UPhoneFollowPp->all_user_search($phone_or_name,$pagesize,$pagenum);
$total = $UPhoneFollowPp->all_user_search_count($phone_or_name); $total = $UPhoneFollowPp->all_user_search_count($phone_or_name);
} }
......
...@@ -27,7 +27,7 @@ class HomePageLog extends Basic ...@@ -27,7 +27,7 @@ class HomePageLog extends Basic
function __construct(Request $request = null) function __construct(Request $request = null)
{ {
parent::__construct($request); parent::__construct($request);
$this->uPhoneFollowUpModel = new UPhoneFollowPp(); $this->uPhoneFollowUpModel = new UPhoneFollowPp($this->siteId);
$this->gHouseFollowUpModel = new GHousesFollowUp(); $this->gHouseFollowUpModel = new GHousesFollowUp();
} }
......
...@@ -688,7 +688,7 @@ class OrderLogService ...@@ -688,7 +688,7 @@ class OrderLogService
$oRefundModel = new ORefundModel(); $oRefundModel = new ORefundModel();
$oBargainModel = new OBargainModel(); $oBargainModel = new OBargainModel();
$uPhoneFollowModel = new UPhoneFollowPp(); $uPhoneFollowModel = new UPhoneFollowPp($this->siteId);
//电话跟进 //电话跟进
$userParams["user_id"] = $user_id; $userParams["user_id"] = $user_id;
$userParams["type"] = 0; //电话跟进 $userParams["type"] = 0; //电话跟进
......
...@@ -215,7 +215,7 @@ class Remark extends Basic ...@@ -215,7 +215,7 @@ class Remark extends Basic
$pagesize = 15; $pagesize = 15;
$user_id = $params['user_id']; $user_id = $params['user_id'];
$UPhoneFollowPp = new UPhoneFollowPp(); $UPhoneFollowPp = new UPhoneFollowPp($this->siteId);
// 查询电话跟进数据 // 查询电话跟进数据
$UPhoneFollowPp_res = $UPhoneFollowPp->select_useraction_search($user_id, $searchdate); $UPhoneFollowPp_res = $UPhoneFollowPp->select_useraction_search($user_id, $searchdate);
...@@ -336,7 +336,7 @@ class Remark extends Basic ...@@ -336,7 +336,7 @@ class Remark extends Basic
$pagesize = 15; $pagesize = 15;
$user_id = $params['user_id']; $user_id = $params['user_id'];
$UPhoneFollowPp = new UPhoneFollowPp(); $UPhoneFollowPp = new UPhoneFollowPp($this->siteId);
// 查询电话跟进数据 // 查询电话跟进数据
$UPhoneFollowPp_res = $UPhoneFollowPp->phone_up_list($pagesize, $pagenum); $UPhoneFollowPp_res = $UPhoneFollowPp->phone_up_list($pagesize, $pagenum);
//dump($UPhoneFollowPp_res); //dump($UPhoneFollowPp_res);
...@@ -364,7 +364,7 @@ class Remark extends Basic ...@@ -364,7 +364,7 @@ class Remark extends Basic
}*/ }*/
$UPhoneFollowPp = new UPhoneFollowPp(); $UPhoneFollowPp = new UPhoneFollowPp($this->siteId);
$total = $UPhoneFollowPp->phone_up_list_count(); $total = $UPhoneFollowPp->phone_up_list_count();
//dump($total); //dump($total);
$total = intval($total / $pagesize) + (($total % $pagesize == 0) ? 0 : 1); $total = intval($total / $pagesize) + (($total % $pagesize == 0) ? 0 : 1);
......
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