Commit 0c75f555 authored by zw's avatar zw

bug

parent c5df1e7e
...@@ -20,6 +20,10 @@ class UPhoneFollowUpTemporary extends BaseModel ...@@ -20,6 +20,10 @@ class UPhoneFollowUpTemporary extends BaseModel
function __construct($site_id) function __construct($site_id)
{ {
$date = date("Y-m-d", time()); $date = date("Y-m-d", time());
$t_follow_up_task = new FollowUpTask();
if(!$t_follow_up_task->isExistTable($date, $site_id)){
return false;
}
$this->follow_up = Db($this->table."_".$site_id."_".$date); $this->follow_up = Db($this->table."_".$site_id."_".$date);
$this->siteId = $site_id; $this->siteId = $site_id;
$this->table_name_string = '`'.$this->table."_".$site_id."_".$date.'`'; $this->table_name_string = '`'.$this->table."_".$site_id."_".$date.'`';
......
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