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
4c8b01bc
Commit
4c8b01bc
authored
Nov 21, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐藏
parent
da68ae2b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
PerformanceService.php
application/api_broker/service/PerformanceService.php
+1
-1
VerifyService.php
application/api_broker/service/VerifyService.php
+4
-6
AAgents.php
application/model/AAgents.php
+17
-0
No files found.
application/api_broker/service/PerformanceService.php
View file @
4c8b01bc
...
@@ -374,7 +374,7 @@ class PerformanceService
...
@@ -374,7 +374,7 @@ class PerformanceService
}
}
$verify
=
new
VerifyService
();
$verify
=
new
VerifyService
();
$agent_ids
=
$verify
->
getAgentsBy
AgentId
(
$agent_id
);
$agent_ids
=
$verify
->
getAgentsBy
Where
(
$agent_id
);
$params
[
"a.agent_id"
]
=
array
(
"in"
,
$agent_ids
);
$params
[
"a.agent_id"
]
=
array
(
"in"
,
$agent_ids
);
if
(
!
empty
(
$site_id
))
{
if
(
!
empty
(
$site_id
))
{
$where
[
'a.disc'
]
=
$site_id
;
$where
[
'a.disc'
]
=
$site_id
;
...
...
application/api_broker/service/VerifyService.php
View file @
4c8b01bc
...
@@ -61,7 +61,7 @@ class VerifyService
...
@@ -61,7 +61,7 @@ class VerifyService
/**
/**
* 经纪人身份验证 获取经纪人
* 经纪人身份验证 获取经纪人
不区分状态
* @param $agent_id
* @param $agent_id
* @return null|string
* @return null|string
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DataNotFoundException
...
@@ -71,20 +71,18 @@ class VerifyService
...
@@ -71,20 +71,18 @@ class VerifyService
public
function
getAgentsByWhere
(
$agent_id
)
public
function
getAgentsByWhere
(
$agent_id
)
{
{
$params
[
"id"
]
=
$agent_id
;
$params
[
"id"
]
=
$agent_id
;
$result
=
$this
->
agentModel
->
search
AgentsByKeyword
(
"id,store_id,district_id,level"
,
$params
);
$result
=
$this
->
agentModel
->
get
AgentsByKeyword
(
"id,store_id,district_id,level"
,
$params
);
if
(
count
(
$result
)
>
0
)
{
if
(
count
(
$result
)
>
0
)
{
$arr_list
=
[];
$arr_list
=
[];
switch
(
$result
[
0
][
"level"
])
{
switch
(
$result
[
0
][
"level"
])
{
case
10
:
case
10
:
return
$result
[
0
][
"id"
];
return
$result
[
0
][
"id"
];
case
20
:
case
20
:
$arr_list
=
$this
->
agentModel
->
searchAgentsByKeyword
(
"id"
,
[
"store_id"
=>
$result
[
0
][
"store_id"
],
$arr_list
=
$this
->
agentModel
->
getAgentsByKeyword
(
"id"
,
[
"store_id"
=>
$result
[
0
][
"store_id"
]]);
"status"
=>
"-1"
]);
break
;
break
;
case
30
:
case
30
:
case
40
:
case
40
:
$arr_list
=
$this
->
agentModel
->
searchAgentsByKeyword
(
"id"
,
[
"district_id"
=>
$result
[
0
][
"district_id"
],
$arr_list
=
$this
->
agentModel
->
getAgentsByKeyword
(
"id"
,
[
"district_id"
=>
$result
[
0
][
"district_id"
]]);
"status"
=>
"-1"
]);
break
;
break
;
default
:
default
:
return
$agent_id
;
return
$agent_id
;
...
...
application/model/AAgents.php
View file @
4c8b01bc
...
@@ -672,6 +672,23 @@ class AAgents extends BaseModel
...
@@ -672,6 +672,23 @@ class AAgents extends BaseModel
return
$result
;
return
$result
;
}
}
/**
* @param $field
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getAgentsByKeyword
(
$field
,
$params
)
{
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
where
(
$params
)
->
select
();
return
$result
;
}
public
function
searchAgentsByKeywordPcInfo
(
$field
,
$params
,
$page_size
,
$page_no
)
public
function
searchAgentsByKeywordPcInfo
(
$field
,
$params
,
$page_size
,
$page_no
)
{
{
...
...
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