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
f594d3d4
Commit
f594d3d4
authored
Nov 26, 2018
by
zhuwei
Committed by
hujun
Nov 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
38a37c86
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
Statement.php
application/api_broker/controller/Statement.php
+3
-3
StatementService.php
application/api_broker/service/StatementService.php
+4
-2
No files found.
application/api_broker/controller/Statement.php
View file @
f594d3d4
...
@@ -216,7 +216,7 @@ class Statement extends Basic
...
@@ -216,7 +216,7 @@ class Statement extends Basic
$params
=
$this
->
params
;
$params
=
$this
->
params
;
$params
=
array
(
$params
=
array
(
"agent_id"
=>
5741
,
//5739 总监 5740店长 5741总监
"agent_id"
=>
5741
,
//5739 总监 5740店长 5741总监
"type"
=>
1
,
//0 日报 1 周报
"type"
=>
0
,
//0 日报 1 周报
);
);
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"type"
])
)
{
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"type"
])
)
{
...
@@ -247,9 +247,9 @@ class Statement extends Basic
...
@@ -247,9 +247,9 @@ class Statement extends Basic
}
else
{
// 周报
}
else
{
// 周报
$result
=
$this
->
service_
->
selectStatementForStoreWithWeek
(
$params
[
"agent_id"
],
$agent_level
,
$store_id
,
$district_id
);
$result
=
$this
->
service_
->
selectStatementForStoreWithWeek
(
$params
[
"agent_id"
],
$agent_level
,
$store_id
,
$district_id
);
}
}
}
else
{
//
todo
2总监
}
else
{
// 2总监
$agent_level
=
2
;
$agent_level
=
2
;
if
(
$params
[
"type"
]
==
0
){
//
todo
日报
if
(
$params
[
"type"
]
==
0
){
//日报
$result
=
$this
->
service_
->
selectStatementForDistrictWithDay
(
$params
[
"agent_id"
],
$agent_level
,
$store_id
,
$district_id
);
$result
=
$this
->
service_
->
selectStatementForDistrictWithDay
(
$params
[
"agent_id"
],
$agent_level
,
$store_id
,
$district_id
);
}
else
{
//todo 周报
}
else
{
//todo 周报
...
...
application/api_broker/service/StatementService.php
View file @
f594d3d4
...
@@ -742,18 +742,20 @@ class StatementService
...
@@ -742,18 +742,20 @@ class StatementService
return
$result
;
return
$result
;
}
}
/**
/**
* 查询总监日报数据
* 查询总监日报数据
* @param $agent_id
* @param $agent_id
* @param $agent_level
* @param $agent_level
* @param $store_id
* @param $store_id
* @param $district_id
* @param $district_id
* @return mixed
* http://showdoc.tonglianjituan.com/index.php?s=/1&page_id=701
* http://showdoc.tonglianjituan.com/index.php?s=/1&page_id=701
*/
*/
public
function
selectStatementForDistrictWithDay
(
$agent_id
,
$agent_level
,
$store_id
,
$district_id
)
public
function
selectStatementForDistrictWithDay
(
$agent_id
,
$agent_level
,
$store_id
,
$district_id
)
{
{
$agent_res
=
$this
->
getAgentIDsByDistrictId
(
$district_id
,
$agent_level
);
$agent_res
=
$this
->
getAgentIDsByDistrictId
(
$district_id
,
$agent_level
);
$conditions
[
'agent_id'
]
=
array
(
"in"
,
$agent_res
[
'agent_ids'
]
);
$conditions
[
'agent_id'
]
=
array
(
"in"
,
$agent_res
[
'agent_ids'
]
);
// 本月-业绩
// 本月-业绩
...
@@ -770,7 +772,7 @@ class StatementService
...
@@ -770,7 +772,7 @@ class StatementService
//人数
//人数
$result
[
"district_team_num"
]
=
$agent_res
[
'store_list_num'
];
$result
[
"district_team_num"
]
=
$agent_res
[
'store_list_num'
];
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