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
d05b6a8a
Commit
d05b6a8a
authored
Sep 28, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周报日报1
parent
4ca139a3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
6 deletions
+72
-6
PerformanceReport.php
application/index/controller/PerformanceReport.php
+43
-0
RAgentReport.php
application/model/RAgentReport.php
+20
-0
route.php
application/route.php
+9
-6
No files found.
application/index/controller/PerformanceReport.php
View file @
d05b6a8a
...
@@ -26,6 +26,49 @@ class PerformanceReport extends Basic
...
@@ -26,6 +26,49 @@ class PerformanceReport extends Basic
}
}
/**
* 获取日报或者周报列表
* @return \think\Response
*/
public
function
getPerformanceReportList
()
{
$params
=
$this
->
params
;
/*$params = array(
"type" => 0,
);*/
// if (!isset($params["type"])) {
// return $this->response("101", "请求参数错误");
// }
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$type
=
!
empty
(
$params
[
"type"
])
?
$params
[
"type"
]
:
0
;
$field
=
'RAgentReport.id,'
;
$field
.=
'RAgentReport.img_url,'
;
$field
.=
'Agent.name'
;
$get_params
[
'RAgentReport.type'
]
=
$type
;
//类型 0周报 1日报
$get_params
[
'RAgentReport.is_del'
]
=
0
;
$order
=
"RAgentReport.create_time desc"
;
$res
=
$this
->
rAgentReport
->
getPerformanceReportList
(
$pageNo
,
$pageSize
,
$field
,
$get_params
,
$order
);
// $res_total = $this->aCollectHouse->getCollectListTotal($field,$get_params);
// $look_shop_service = new LookShopService();
// foreach ($res as $key => $val) {
// $isLook = $look_shop_service->isLooked($params["agents_id"], $val["id"]);
// $res[$key]["is_look"] = $isLook;
// $res[$key]["rent_price"] = $val["rent_price"] * 0.01;
// $res[$key]["rent_price"] = $val["rent_price"] * 0.01;
// }
//
return
$this
->
response
(
"200"
,
"成功"
,
$res
);
}
...
...
application/model/RAgentReport.php
View file @
d05b6a8a
...
@@ -12,4 +12,23 @@ namespace app\model;
...
@@ -12,4 +12,23 @@ namespace app\model;
class
RAgentReport
extends
BaseModel
class
RAgentReport
extends
BaseModel
{
{
/**
* 查询数据
* 朱伟 2018-09-28
*/
public
function
getPerformanceReportList
(
$pageNo
,
$pageSize
,
$field
,
$params
,
$order
)
{
$result
=
$this
->
field
(
$field
)
->
alias
(
'RAgentReport'
)
->
join
(
'a_agents Agent'
,
'RAgentReport.agent_id=Agent.id'
,
'left'
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
order
(
$order
)
->
select
();
//dump($this->getLastSql());
return
$result
;
}
}
}
\ No newline at end of file
application/route.php
View file @
d05b6a8a
...
@@ -318,12 +318,15 @@ Route::group('index', [
...
@@ -318,12 +318,15 @@ Route::group('index', [
'ceshi'
=>
[
'index/ImageDepot/ceshi'
,
[
'method'
=>
'get | post'
]
],
//
'ceshi'
=>
[
'index/ImageDepot/ceshi'
,
[
'method'
=>
'get | post'
]
],
//
//运营数相关接口
//运营数相关接口
'operationChatUserNum'
=>
[
'index/OperationData/chatUserNum'
,
[
'method'
=>
'get | post'
]
],
//
'operationChatUserNum'
=>
[
'index/OperationData/chatUserNum'
,
[
'method'
=>
'get | post'
]
],
'operationUserPhoneNum'
=>
[
'index/OperationData/userPhoneNum'
,
[
'method'
=>
'get | post'
]
],
//
'operationUserPhoneNum'
=>
[
'index/OperationData/userPhoneNum'
,
[
'method'
=>
'get | post'
]
],
'operationLoginNum'
=>
[
'index/OperationData/loginNum'
,
[
'method'
=>
'get | post'
]
],
//
'operationLoginNum'
=>
[
'index/OperationData/loginNum'
,
[
'method'
=>
'get | post'
]
],
'operationHouseNum'
=>
[
'index/OperationData/houseNum'
,
[
'method'
=>
'get | post'
]
],
//
'operationHouseNum'
=>
[
'index/OperationData/houseNum'
,
[
'method'
=>
'get | post'
]
],
'operationHouseBargainNum'
=>
[
'index/OperationData/houseBargainNum'
,
[
'method'
=>
'get | post'
]
],
//
'operationHouseBargainNum'
=>
[
'index/OperationData/houseBargainNum'
,
[
'method'
=>
'get | post'
]
],
'getFirstLoginTotal'
=>
[
'index/InviteTotal/getFirstLoginTotal'
,
[
'method'
=>
'get | post'
]
],
//
'getFirstLoginTotal'
=>
[
'index/InviteTotal/getFirstLoginTotal'
,
[
'method'
=>
'get | post'
]
],
//后台业绩日报,周报
'getPerformanceReportList'
=>
[
'index/PerformanceReport/getPerformanceReportList'
,
[
'method'
=>
'get | post'
]
],
]);
]);
...
...
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