Commit 8f8d7831 authored by zhuwei's avatar zhuwei

修改

parent f2ef85ee
......@@ -10,15 +10,18 @@ class UPhoneFollowUp extends BaseModel
protected $table = 'u_phone_follow_up';
protected $UPhoneFollowUp;
protected $siteId;
function __construct($site_id)
{
$this->UPhoneFollowUp = Db($this->table."_".$site_id);
$date = date("Ymd", time());
$this->UPhoneFollowUp = Db($this->table."_".$site_id."_".$date);
$this->siteId = $site_id;
}
/**
* 新增电话跟进-插入数据
* @param $data
* @param $params
* @return int|string
*/
public function savePhoneFollow($params) {
......@@ -51,6 +54,9 @@ class UPhoneFollowUp extends BaseModel
if (isset($params["disc"])) {
$arr["disc"] = $params["disc"];
}
if (isset($this->siteId)) {
$arr["site_id"] = $this->siteId;
}
$result = $this->UPhoneFollowUp->insert($arr);
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