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
2f79d448
Commit
2f79d448
authored
Nov 09, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增客户列表
parent
f96ef74a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
PerformanceService.php
application/api_broker/service/PerformanceService.php
+4
-2
Users.php
application/model/Users.php
+5
-3
No files found.
application/api_broker/service/PerformanceService.php
View file @
2f79d448
...
...
@@ -456,6 +456,8 @@ class PerformanceService
private
function
getAgentIdPcInfo
(
$id
,
$type
,
$start_time
,
$end_time
)
{
switch
(
$type
)
{
case
1
:
$params
[
"agent_id"
]
=
$id
;
...
...
@@ -524,7 +526,7 @@ class PerformanceService
$params
=
$this
->
getAgentId
(
$agent_id
,
$type
,
$start_time
,
$end_time
);
if
(
!
$params
)
return
[
"code"
=>
101
,
"date"
=>
"传入的参数错误"
];
$field
=
"
id,user_name,user_phone,user_nick,create_time,
agent_id"
;
$field
=
"
a.id,a.user_name,a.user_phone,a.user_nick,a.create_time,a.
agent_id"
;
$addUserList
=
$this
->
userModel
->
getAddUserList
(
$params
,
$field
,
$page_no
,
$page_size
);
foreach
(
$addUserList
as
$key
=>
$val
)
{
if
(
$val
[
"agent_id"
]
==
$agent_id
)
{
...
...
@@ -747,7 +749,7 @@ class PerformanceService
$params
=
$this
->
getAgentIdPcInfo
(
$id
,
$type
,
$start_time
,
$end_time
);
if
(
!
$params
)
return
[
"code"
=>
101
,
"date"
=>
"传入的参数错误"
];
$field
=
"
id,user_name,user_phone,user_nick,create_time,agent_id,user_status,source,industry_type,area_demand
"
;
$field
=
"
a.id,a.user_name,a.user_phone,a.user_nick,a.create_time,a.agent_id,a.user_status,a.source,a.industry_type,a.area_demand,b.name
"
;
$addUserList
=
$this
->
userModel
->
getAddUserList
(
$params
,
$field
,
$page_no
,
$page_size
);
foreach
(
$addUserList
as
$key
=>
$val
)
{
if
(
$val
[
"agent_id"
]
==
$id
)
{
...
...
application/model/Users.php
View file @
2f79d448
...
...
@@ -599,18 +599,20 @@ class Users extends Model
{
$where_
=
[];
if
(
isset
(
$params
[
"agent_id"
]))
{
$where_
[
"agent_id"
]
=
$params
[
"agent_id"
];
$where_
[
"a
.a
gent_id"
]
=
$params
[
"agent_id"
];
}
if
(
isset
(
$params
[
"create_time"
]))
{
$where_
[
"create_time"
]
=
$params
[
"create_time"
];
$where_
[
"
a.
create_time"
]
=
$params
[
"create_time"
];
}
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
"a"
)
->
join
(
"a_agents b"
,
"a.agent_id=b.id"
,
"left"
)
->
where
(
$where_
)
->
limit
(
$page_size
)
->
page
(
$page_no
)
->
select
();
//
echo Db::table($this->table)->getLastSql();
//
echo Db::table($this->table)->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