Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
0f051bf8
Commit
0f051bf8
authored
Jan 10, 2019
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
name
parent
5f3f15bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
FollowUpTask.php
application/task/controller/FollowUpTask.php
+15
-2
No files found.
application/task/controller/FollowUpTask.php
View file @
0f051bf8
...
@@ -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
());
//时间是今天
//时间是今天
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment