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
20af9be8
Commit
20af9be8
authored
Oct 22, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进区分城市
parent
e06e76e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
30 deletions
+7
-30
Performance.php
application/api_broker/controller/Performance.php
+2
-1
PerformanceService.php
application/api_broker/service/PerformanceService.php
+5
-3
UPhoneFollowPp.php
application/model/UPhoneFollowPp.php
+0
-26
No files found.
application/api_broker/controller/Performance.php
View file @
20af9be8
...
...
@@ -599,7 +599,8 @@ class Performance extends Basic
$page_no
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$page_size
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$result
=
$this
->
service_
->
getUserResourceListPcInfo
(
$params
[
"id"
],
$params
[
"type"
],
$start_day
,
$end_day
,
$page_no
,
$page_size
);
$result
=
$this
->
service_
->
getUserResourceListPcInfo
(
$params
[
"id"
],
$params
[
"type"
],
$start_day
,
$end_day
,
$page_no
,
$page_size
,
$this
->
siteId
);
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"date"
]);
}
else
{
...
...
application/api_broker/service/PerformanceService.php
View file @
20af9be8
...
...
@@ -720,9 +720,10 @@ class PerformanceService
* @param $end_time
* @param $page_no
* @param $page_size
* @param $site_id
* @return array
*/
public
function
getUserResourceListPcInfo
(
$id
,
$type
,
$start_time
,
$end_time
,
$page_no
,
$page_size
)
public
function
getUserResourceListPcInfo
(
$id
,
$type
,
$start_time
,
$end_time
,
$page_no
,
$page_size
,
$site_id
)
{
$params
=
$this
->
getAgentIdPcInfo
(
$id
,
$type
,
$start_time
,
$end_time
);
...
...
@@ -738,8 +739,9 @@ class PerformanceService
}
$addUserList
[
$key
][
"user_phone"
]
=
preg_replace
(
'/(\d{3})\d{4}(\d{4})/'
,
'$1****$2'
,
$val
[
"user_phone"
]);
$follow
=
new
UPhoneFollowPp
();
$res
=
$follow
->
getLastPhoneFollowTime
(
$val
[
'id'
]);
$follow
=
new
UPhoneFollowPp
(
$site_id
);
$res
=
$follow
->
getLastPhoneFollowTime
(
$val
[
'id'
]);
$addUserList
[
$key
][
"last_phone_follow_time"
]
=
$res
[
0
][
'create_time'
]
?
$res
[
0
][
'create_time'
]
:
'暂无!'
;
}
return
[
"code"
=>
200
,
"date"
=>
$addUserList
];
...
...
application/model/UPhoneFollowPp.php
View file @
20af9be8
...
...
@@ -334,30 +334,4 @@ class UPhoneFollowPp extends BaseModel
return
$return
;
}
/**
* 查询数据
* 朱伟 2018-10-22 14:36:06
*/
public
function
getPhoneFollow
(
$field
,
$params
)
{
$result
=
$this
->
UPhoneFollowPp
->
field
(
$field
)
//->alias('a')
->
where
(
$params
)
->
select
();
//dump($this->getLastSql());
return
$result
;
}
/**
* 更新数据
* 朱伟 2018-10-22 14:36:06
*/
public
function
updatePhoneFollow
(
$params
)
{
$result
=
$this
->
UPhoneFollowPp
->
update
(
$params
);
//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