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
670b59e5
Commit
670b59e5
authored
Nov 28, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
966bceea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
Statement.php
application/api_broker/controller/Statement.php
+14
-10
No files found.
application/api_broker/controller/Statement.php
View file @
670b59e5
...
...
@@ -228,24 +228,28 @@ class Statement extends Basic
$store_id
=
$agent_result
[
0
][
"store_id"
];
$district_id
=
$agent_result
[
0
][
"district_id"
];
if
(
$agent_result
[
0
][
"level"
]
==
10
)
{
// 业务员 Clerk
if
(
$agent_result
[
0
][
"level"
]
==
10
)
{
#业务员
$agent_level
=
0
;
$result
=
$this
->
service_
->
selectStatementForClerk
(
$params
[
"agent_id"
],
$agent_level
,
$store_id
,
$district_id
);
}
elseif
(
$agent_result
[
0
][
"level"
]
==
20
)
{
// 1
店长
}
elseif
(
$agent_result
[
0
][
"level"
]
==
20
)
{
#
店长
$agent_level
=
1
;
if
(
$params
[
"type"
]
==
0
)
{
//
日报
if
(
$params
[
"type"
]
==
0
)
{
#
日报
$result
=
$this
->
service_
->
selectStatementForStoreWithDay
(
$params
[
"agent_id"
],
$agent_level
,
$store_id
,
$district_id
);
}
else
{
// 周报
}
else
{
#周报
$result
=
$this
->
service_
->
selectStatementForStoreWithWeek
(
$params
[
"agent_id"
],
$agent_level
,
$store_id
,
$district_id
);
}
}
else
{
// 2总监
}
else
{
#总监
$agent_level
=
2
;
if
(
$params
[
"type"
]
==
0
){
//日报
if
(
$params
[
"type"
]
==
0
){
#日报
$result
=
$this
->
service_
->
selectStatementForDistrictWithDay
(
$params
[
"agent_id"
],
$agent_level
,
$store_id
,
$district_id
);
}
else
{
// 周报
}
else
{
#周报
$result
=
$this
->
service_
->
selectStatementForDistrictWithWeek
(
$params
[
"agent_id"
],
$agent_level
,
$store_id
,
$district_id
);
}
}
...
...
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