Commit a11c2e09 authored by zhuwei's avatar zhuwei

电话跟进

parent f853f845
......@@ -31,6 +31,7 @@ use app\model\OBargainModel;
use app\model\UPhoneFollowUp;
use app\model\UPhoneFollowUpTemporary;
use app\model\Users;
use app\task\controller\FollowUpTask;
use think\Exception;
use think\Log;
use think\Request;
......@@ -355,6 +356,12 @@ class Broker extends Basic
$user_id = $params['user_id'];
$user_status = $params['user_status'];
$date = date("Y-m-d", time());
$t_follow_up_task = new FollowUpTask();
if(!$t_follow_up_task->isExistTable($date, $this->siteId)){
return $this->response("101", "建表失败!");
}
$Users = new Users();
// $s_phone_follow_up = new UPhoneFollowUp($this->siteId);
$s_phone_follow_up = new UPhoneFollowUpTemporary($this->siteId);
......
......@@ -14,6 +14,7 @@ use app\model\GOperatingRecords;
use app\model\UPhoneFollowUp;
use app\model\UPhoneFollowUpTemporary;
use app\model\Users;
use app\task\controller\FollowUpTask;
use think\Log;
use think\Request;
use think\session;
......@@ -390,6 +391,12 @@ class Member extends Basic{
return $this->response(101, $msg = '缺少参数', $params);
}
$date = date("Y-m-d", time());
$t_follow_up_task = new FollowUpTask();
if(!$t_follow_up_task->isExistTable($date, $this->siteId)){
return $this->response("101", "建表失败!");
}
//$params['id'] = '';
$params['labels_id'] = 0;
$params['agent_id'] = Session::get("user_info.id");
......
......@@ -73,7 +73,6 @@ class UPhoneFollowUpTemporary extends BaseModel
$city = '上海市';
$disc = '黄埔区';
}
$arr["site_id"] = $this->siteId;
$arr["province"] = $province;
$arr["city"] = $city;
$arr["disc"] = $disc;
......
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