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
c0b103d7
Commit
c0b103d7
authored
May 13, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩修改
parent
273fa836
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
StatementService.php
application/api_broker/service/StatementService.php
+7
-7
No files found.
application/api_broker/service/StatementService.php
View file @
c0b103d7
...
@@ -104,11 +104,11 @@ class StatementService
...
@@ -104,11 +104,11 @@ class StatementService
// 统计门店下的所有经纪人
// 统计门店下的所有经纪人
$params
[
"store_id"
]
=
$store_id
;
$params
[
"store_id"
]
=
$store_id
;
//$params["level"] = array( "neq", "30" );
//$params["level"] = array( "neq", "30" );
$params
[
"status"
]
=
0
;
//array('in','0,1');//只查询正常状态的经纪人
$params
[
"status"
]
=
array
(
'in'
,
'0,1,2'
);
//0正常 1长假 2离职
break
;
break
;
case
2
:
case
2
:
$params
[
"district_id"
]
=
$district_id
;
$params
[
"district_id"
]
=
$district_id
;
$params
[
"status"
]
=
0
;
//array('in','0,1'); //只查询正常状态的经纪人
$params
[
"status"
]
=
array
(
'in'
,
'0,1,2'
);
//0正常 1长假 2离职
break
;
break
;
}
}
$agent_total
=
1
;
//进到这里的经纪人肯定都存在所以默认此经纪人数量为1
$agent_total
=
1
;
//进到这里的经纪人肯定都存在所以默认此经纪人数量为1
...
@@ -121,7 +121,7 @@ class StatementService
...
@@ -121,7 +121,7 @@ class StatementService
foreach
(
$agentsArr
as
$key
=>
$value
)
{
foreach
(
$agentsArr
as
$key
=>
$value
)
{
$agentIds
.=
$value
[
"id"
]
.
","
;
$agentIds
.=
$value
[
"id"
]
.
","
;
#列表排除长假经纪人
#列表排除长假经纪人
if
(
$user_type
==
1
and
(
$value
[
'status'
]
!=
1
)
)
{
//1店长
if
(
$user_type
==
1
and
$value
[
'status'
]
==
0
)
{
//1店长
array_push
(
$store_list
,
$this
->
getStoreList
(
$conditions
,
$value
[
"id"
],
$value
[
"name"
]));
array_push
(
$store_list
,
$this
->
getStoreList
(
$conditions
,
$value
[
"id"
],
$value
[
"name"
]));
}
}
}
}
...
@@ -142,9 +142,9 @@ class StatementService
...
@@ -142,9 +142,9 @@ class StatementService
$store_manager_list_res
=
$this
->
getStoreManagerList
(
$store_id
,
$conditions
[
'create_time'
]);
$store_manager_list_res
=
$this
->
getStoreManagerList
(
$store_id
,
$conditions
[
'create_time'
]);
$result
[
"store_manager_list"
]
=
$store_manager_list_res
;
$result
[
"store_manager_list"
]
=
$store_manager_list_res
;
}
}
$params
[
"status"
]
=
0
;
//0正常
$agents_res
=
$this
->
agentModel
->
getAgentsByStoreId
(
$params
);
$result
[
"agent_total"
]
=
$agent_total
;
$result
[
"agent_total"
]
=
count
(
$agents_res
)
;
$result
[
"house_num"
]
=
$this
->
housesToAgents
->
getAddHouseNumByAgentId
(
$conditions
);
$result
[
"house_num"
]
=
$this
->
housesToAgents
->
getAddHouseNumByAgentId
(
$conditions
);
$result
[
"user_num"
]
=
$this
->
userModel
->
getAddUserNumByAgentId
(
$conditions
);
$result
[
"user_num"
]
=
$this
->
userModel
->
getAddUserNumByAgentId
(
$conditions
);
//本周带看(报备)
//本周带看(报备)
...
@@ -464,7 +464,7 @@ class StatementService
...
@@ -464,7 +464,7 @@ class StatementService
//查询总监下面门店的所有经纪人
//查询总监下面门店的所有经纪人
$params
=
[];
$params
=
[];
$params
[
"store_id"
]
=
$value
[
"store_id"
];
$params
[
"store_id"
]
=
$value
[
"store_id"
];
$params
[
"status"
]
=
0
;
//只查询正常状态的经纪人
$params
[
"status"
]
=
array
(
'in'
,
'0,1,2'
);
//0正常 1长假 2离职
$agentsArr
=
$this
->
agentModel
->
getAgentsByStoreId
(
$params
);
$agentsArr
=
$this
->
agentModel
->
getAgentsByStoreId
(
$params
);
$agent_total
=
count
(
$agentsArr
);
$agent_total
=
count
(
$agentsArr
);
if
(
$agent_total
>
0
)
{
if
(
$agent_total
>
0
)
{
...
...
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