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
d3bbb4af
Commit
d3bbb4af
authored
Nov 20, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐藏长假客户
parent
58fd3806
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
StatementService.php
application/api_broker/service/StatementService.php
+3
-3
AAgents.php
application/model/AAgents.php
+1
-1
No files found.
application/api_broker/service/StatementService.php
View file @
d3bbb4af
...
...
@@ -96,10 +96,9 @@ class StatementService
$result
=
$params
=
[];
switch
(
$user_type
)
{
case
0
:
//todo
break
;
case
1
:
//
todo
统计门店下的所有经纪人
// 统计门店下的所有经纪人
$params
[
"store_id"
]
=
$store_id
;
//$params["level"] = array( "neq", "30" );
$params
[
"status"
]
=
array
(
'in'
,
'0,1'
);
//只查询正常状态的经纪人
...
...
@@ -118,7 +117,8 @@ class StatementService
$agentIds
=
""
;
foreach
(
$agentsArr
as
$key
=>
$value
)
{
$agentIds
.=
$value
[
"id"
]
.
","
;
if
(
$user_type
==
1
)
{
#列表排除长假经纪人
if
(
$user_type
==
1
and
(
$value
[
'status'
]
!=
1
))
{
//1店长
array_push
(
$store_list
,
$this
->
getStoreList
(
$conditions
,
$value
[
"id"
],
$value
[
"name"
]));
}
}
...
...
application/model/AAgents.php
View file @
d3bbb4af
...
...
@@ -497,7 +497,7 @@ class AAgents extends BaseModel
public
function
getAgentsByStoreId
(
$params
)
{
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
"id,name"
)
->
field
(
"id,name
,status
"
)
->
where
(
$params
)
->
select
();
//echo Db::table($this->table)->getLastSql();
...
...
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