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
60cc847b
Commit
60cc847b
authored
Jan 11, 2019
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
2d2f3ca8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
UserLogService.php
application/index/service/UserLogService.php
+1
-2
UPhoneFollowUpTemporary.php
application/model/UPhoneFollowUpTemporary.php
+23
-0
No files found.
application/index/service/UserLogService.php
View file @
60cc847b
...
...
@@ -209,10 +209,9 @@ class UserLogService
$field_user_follow
=
"a.id,a.content,a.user_id,a.agent_id,a.type,a.create_time,a.user_status,b.name,b.phone,b.img"
;
$bargainData
=
$uPhoneFollowTempModel
->
getFollow
List
(
$page_no
,
$page_size
,
""
,
$field_user_follow
,
$userParams
);
$bargainData
=
$uPhoneFollowTempModel
->
getFollow
UpList
(
$field_user_follow
,
$userParams
,
$page_no
,
$page_size
);
if
(
count
(
$bargainData
)
<=
0
){
$bargainData
=
$uPhoneFollowModel
->
getFollowUpList
(
$field_user_follow
,
$userParams
,
$page_no
,
$page_size
);
}
return
$bargainData
;
}
...
...
application/model/UPhoneFollowUpTemporary.php
View file @
60cc847b
...
...
@@ -112,6 +112,29 @@ class UPhoneFollowUpTemporary extends BaseModel
->
select
();
}
public
function
getFollowUpList
(
$field
,
$params
,
$page_no
,
$page_size
)
{
if
(
!
$this
->
createTable
()){
return
null
;
}
$where_
=
[];
if
(
isset
(
$params
[
"user_id"
]))
{
$where_
[
"a.user_id"
]
=
$params
[
"user_id"
];
}
$result
=
$this
->
follow_up
->
field
(
$field
)
->
alias
(
"a"
)
->
join
(
"a_agents b"
,
"a.agent_id = b.id"
,
"left"
)
->
where
(
$where_
)
->
order
(
"a.create_time desc"
)
->
page
(
$page_no
)
->
limit
(
$page_size
)
->
select
();
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