Commit 0f051bf8 authored by zw's avatar zw

name

parent 5f3f15bd
......@@ -3,6 +3,7 @@
namespace app\task\controller;
use app\extra\RedisExt;
use app\model\ASite;
use app\model\UPhoneFollowUpTemporary;
/**
......@@ -16,12 +17,10 @@ class FollowUpTask
{
private $redis_;
private $table = 'u_phone_follow_up_';
private $phoneFollowUpModel;
public function __construct()
{
$this->redis_ = RedisExt::getRedis();
}
public function test()
......@@ -29,8 +28,22 @@ class FollowUpTask
$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)
{
$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.判断表是否存在,不存在则创建,
$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