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
8a41ab24
Commit
8a41ab24
authored
Jan 10, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电话跟进查询
parent
d4139624
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
39 deletions
+11
-39
PhoneFollowUpService.php
application/index/service/PhoneFollowUpService.php
+7
-5
UPhoneFollowUpTemporary.php
application/model/UPhoneFollowUpTemporary.php
+4
-34
No files found.
application/index/service/PhoneFollowUpService.php
View file @
8a41ab24
...
@@ -8,17 +8,19 @@
...
@@ -8,17 +8,19 @@
namespace
app\index\service
;
namespace
app\index\service
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\UPhoneFollowUp
;
use
app\model\UPhoneFollowUp
;
use
app\model\UPhoneFollowUpTemporary
;
class
PhoneFollowUpService
class
PhoneFollowUpService
{
{
private
$phone_follow_up
;
private
$phoneFollowUp
;
private
$phoneFollowUpTemporary
;
public
function
__construct
(
$site_id
)
public
function
__construct
(
$site_id
)
{
{
$this
->
phone_follow_up
=
new
UPhoneFollowUp
(
$site_id
);
$this
->
phoneFollowUp
=
new
UPhoneFollowUp
(
$site_id
);
$this
->
phoneFollowUpTemporary
=
new
UPhoneFollowUpTemporary
(
$site_id
);
}
}
/**
/**
...
@@ -75,9 +77,9 @@ class PhoneFollowUpService
...
@@ -75,9 +77,9 @@ class PhoneFollowUpService
}
}
if
(
$start_time
==
$end_time
&&
date
(
'Y-m-d'
,
strtotime
(
$start_time
))
==
date
(
'Y-m-d'
))
{
if
(
$start_time
==
$end_time
&&
date
(
'Y-m-d'
,
strtotime
(
$start_time
))
==
date
(
'Y-m-d'
))
{
$data
=
$this
->
phoneFollowUpTemporary
->
getFollowList
(
$page_no
,
$page_size
,
$order_
=
'id desc'
,
$field
,
$where
);
}
else
{
}
else
{
$data
=
$this
->
phone
_follow_u
p
->
getFollowList
(
$page_no
,
$page_size
,
$order_
=
'id desc'
,
$field
,
$where
);
$data
=
$this
->
phone
FollowU
p
->
getFollowList
(
$page_no
,
$page_size
,
$order_
=
'id desc'
,
$field
,
$where
);
}
}
return
$data
;
return
$data
;
...
...
application/model/UPhoneFollowUpTemporary.php
View file @
8a41ab24
...
@@ -64,43 +64,13 @@ class UPhoneFollowUpTemporary extends BaseModel
...
@@ -64,43 +64,13 @@ class UPhoneFollowUpTemporary extends BaseModel
return
$result
;
return
$result
;
}
}
public
function
getSearch
(
$p
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
,
$join
,
$where
,
$group
)
public
function
getFollowList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
)
{
{
return
$this
->
UPhoneFollowUp
->
field
(
$field
)
$r
=
$this
->
UPhoneFollowUp
->
field
(
$field
)
->
where
(
$params
)
->
alias
(
'f'
)
->
join
(
$join
)
->
where
(
$where
)
->
group
(
$group
)
->
order
(
$order_
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
->
page
(
$p
)
->
page
(
$p
ageNo
)
->
select
();
->
select
();
$data
=
array
();
foreach
(
$r
as
$k
=>
$v
)
{
$data
[
$k
]
=
$v
;
if
(
$v
[
'img'
])
{
$data
[
$k
][
'imagename'
]
=
AGENTHEADERIMGURL
.
$v
[
'img'
];
}
}
return
$data
;
}
/**
* 查询数据
* 朱伟 2018-10-24
*/
public
function
getPhoneFollowData
(
$field
,
$params
,
$order
)
{
$result
=
$this
->
UPhoneFollowUp
->
field
(
$field
)
->
order
(
$order
)
->
where
(
$params
)
->
limit
(
1
)
->
select
();
//dump($this->getLastSql());
return
$result
;
}
}
}
}
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