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
39f7d601
Commit
39f7d601
authored
Jan 10, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证判断表是否创建
parent
edcfb412
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
PhoneFollowUpService.php
application/index/service/PhoneFollowUpService.php
+6
-0
UPhoneFollowUpTemporary.php
application/model/UPhoneFollowUpTemporary.php
+0
-2
No files found.
application/index/service/PhoneFollowUpService.php
View file @
39f7d601
...
...
@@ -13,6 +13,7 @@ use app\model\AAgents;
use
app\model\UPhoneFollowUp
;
use
app\model\UPhoneFollowUpTemporary
;
use
app\model\Users
;
use
app\task\controller\FollowUpTask
;
class
PhoneFollowUpService
{
...
...
@@ -21,6 +22,11 @@ class PhoneFollowUpService
public
function
__construct
(
$site_id
)
{
$date
=
date
(
"Y-m-d"
,
time
());
$t_follow_up_task
=
new
FollowUpTask
();
if
(
!
$t_follow_up_task
->
isExistTable
(
$date
,
$site_id
)){
return
false
;
}
$this
->
phoneFollowUp
=
new
UPhoneFollowUp
(
$site_id
);
$this
->
phoneFollowUpTemporary
=
new
UPhoneFollowUpTemporary
(
$site_id
);
}
...
...
application/model/UPhoneFollowUpTemporary.php
View file @
39f7d601
...
...
@@ -19,8 +19,6 @@ class UPhoneFollowUpTemporary extends BaseModel
function
__construct
(
$site_id
)
{
$date
=
date
(
"Y-m-d"
,
time
());
$t_follow_up_task
=
new
FollowUpTask
();
$t_follow_up_task
->
isExistTable
(
$date
,
$site_id
);
$this
->
UPhoneFollowUp
=
Db
(
$this
->
table
.
"_"
.
$site_id
.
"_"
.
$date
);
$this
->
siteId
=
$site_id
;
}
...
...
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