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
0ecf180c
Commit
0ecf180c
authored
Sep 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺修改日志
parent
a2448f9c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
0 deletions
+45
-0
Houses.php
application/index/controller/Houses.php
+23
-0
HouseService.php
application/index/service/HouseService.php
+21
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Houses.php
View file @
0ecf180c
...
...
@@ -704,4 +704,26 @@ class Houses extends Basic
return
$this
->
response
(
101
,
'锁盘失败!'
);
}
}
/**
* 商铺修改日志
*
* @return \think\Response
*/
public
function
getEditLog
()
{
if
(
empty
(
$this
->
params
[
'house_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$msg
=
''
;
$house
=
new
HouseService
();
$data
=
$house
->
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/HouseService.php
View file @
0ecf180c
...
...
@@ -287,4 +287,24 @@ class HouseService
return
$result
;
}
/**
* 商铺修改日志
*s
* @param $house_id
* @return mixed
*/
public
function
getEditLog
(
$house_id
)
{
try
{
$m_operating
=
new
GOperatingRecords
();
$result
[
'data'
]
=
$m_operating
->
getList
(
1
,
1000
,
'id DESC'
,
'agents_id,name,remark,create_time'
,[
'type'
=>
6
,
'houses_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 @
0ecf180c
...
...
@@ -112,6 +112,7 @@ Route::group('index', [
'batchChangDish'
=>
[
'index/houses/batchChangDish'
,
[
'method'
=>
'post'
]
],
//批量修改盘方
'transformLandlord'
=>
[
'index/houses/transformLandlord'
,
[
'method'
=>
'post'
]
],
//转换房东手机号
'lockHouse'
=>
[
'index/houses/lockHouse'
,
[
'method'
=>
'post'
]
],
//锁盘
'getEditLog'
=>
[
'index/houses/getEditLog'
,
[
'method'
=>
'get'
]
],
//商铺修改日志
//版本管理
'version'
=>
[
'index/version/index'
,
[
'method'
=>
'get'
]
],
...
...
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