Commit 0f051bf8 authored by zw's avatar zw

name

parent 5f3f15bd
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace app\task\controller; namespace app\task\controller;
use app\extra\RedisExt; use app\extra\RedisExt;
use app\model\ASite;
use app\model\UPhoneFollowUpTemporary; use app\model\UPhoneFollowUpTemporary;
/** /**
...@@ -16,12 +17,10 @@ class FollowUpTask ...@@ -16,12 +17,10 @@ class FollowUpTask
{ {
private $redis_; private $redis_;
private $table = 'u_phone_follow_up_'; private $table = 'u_phone_follow_up_';
private $phoneFollowUpModel;
public function __construct() public function __construct()
{ {
$this->redis_ = RedisExt::getRedis(); $this->redis_ = RedisExt::getRedis();
} }
public function test() public function test()
...@@ -29,8 +28,22 @@ class FollowUpTask ...@@ -29,8 +28,22 @@ class FollowUpTask
$this->isExistTable("2019-01-10",10006); $this->isExistTable("2019-01-10",10006);
} }
/**
* @param $time
* @param $siteId
* @return bool
* @throws \think\db\exception\BindParamException
* @throws \think\exception\PDOException
*/
public function isExistTable($time, $siteId) public function isExistTable($time, $siteId)
{ {
$siteModel = new ASite();
$site_field = 'city';
$site_params['id'] = $siteId;
$site_arr = $siteModel->findByOne($site_field,$site_params);
if(count($site_arr) <= 0){
return false;
}
//todo 1.判断表是否存在,不存在则创建, //todo 1.判断表是否存在,不存在则创建,
$date = date("Y-m-d", time()); $date = date("Y-m-d", time());
//时间是今天 //时间是今天
......
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