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
8706d06f
Commit
8706d06f
authored
Jun 25, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
楼盘修改日志
parent
2abc594b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
OfficeRoom.php
application/index/controller/OfficeRoom.php
+22
-0
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+21
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/OfficeRoom.php
View file @
8706d06f
...
...
@@ -321,4 +321,25 @@ class OfficeRoom extends Basic
return
$this
->
response
(
$this
->
code
,
$this
->
msg
,
$this
->
data
);
}
/**
* 楼盘修改日志
*
* @return \think\Response
*/
public
function
getEditLog
()
{
if
(
empty
(
$this
->
params
[
'house_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$msg
=
''
;
$data
=
$this
->
service
->
getEditLog
(
$this
->
params
[
'house_id'
]);
if
(
$data
[
'status'
]
==
'successful'
)
{
$code
=
200
;
}
else
{
$code
=
101
;
$msg
=
'获取数据失败'
.
$data
[
'msg'
];
}
return
$this
->
response
(
$code
,
$msg
,
$data
[
'data'
]);
}
}
\ No newline at end of file
application/index/service/OfficeRoomService.php
View file @
8706d06f
...
...
@@ -1641,4 +1641,24 @@ class OfficeRoomService
return
;
}
/**
* 楼盘修改日志
*s
* @param $house_id
* @return mixed
*/
public
function
getEditLog
(
$house_id
)
{
try
{
$m_operating
=
new
OfficeGOperatingRecord
();
$result
[
'data'
]
=
$m_operating
->
getList
(
1
,
1000
,
'id DESC'
,
'agent_id,name,remark,create_time'
,[
'house_id'
=>
$house_id
]);
$result
[
'status'
]
=
'successful'
;
}
catch
(
\Exception
$e
)
{
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
$e
->
getMessage
();
$result
[
'data'
]
=
[];
}
return
$result
;
}
}
\ No newline at end of file
application/route.php
View file @
8706d06f
...
...
@@ -1131,6 +1131,7 @@ Route::group('office_index', [
'selectDistrictPerformance'
=>
[
'index/OfficePerformance/selectDistrictPerformance'
,
[
'method'
=>
'GET|POST'
]],
//区域业绩排行
'selectStorePerformance'
=>
[
'index/OfficePerformance/selectStorePerformance'
,
[
'method'
=>
'GET|POST'
]],
//门店排行
'selectIndividualPerformance'
=>
[
'index/OfficePerformance/selectIndividualPerformance'
,
[
'method'
=>
'GET|POST'
]],
//个人业绩排行
'getEditLog'
=>
[
'index/OfficeRoom/getEditLog'
,
[
'method'
=>
'get'
]],
//楼盘修改日志
]);
Route
::
group
(
'office_api'
,
[
...
...
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