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
f6538615
Commit
f6538615
authored
Jun 04, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
盘方操作记录
parent
d4ba55df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
0 deletions
+54
-0
OfficeRoom.php
application/index/controller/OfficeRoom.php
+22
-0
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+31
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/OfficeRoom.php
View file @
f6538615
...
...
@@ -139,4 +139,25 @@ class OfficeRoom extends Basic
}
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
/**
* 操作记录
*
* @return \think\Response
*/
public
function
getRecords
()
{
$data
=
[];
$this
->
params
[
'type'
]
=
1
;
$result
=
$this
->
service
->
getRecords
(
$this
->
params
);
if
(
$result
[
'status'
]
==
'successful'
)
{
$data
=
$result
[
'data'
];
$code
=
200
;
$msg
=
''
;
}
else
{
$code
=
101
;
$msg
=
$result
[
'msg'
];
}
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
}
\ No newline at end of file
application/index/service/OfficeRoomService.php
View file @
f6538615
...
...
@@ -1021,5 +1021,35 @@ class OfficeRoomService
return
$where
;
}
/**
* 操作记录
*
* @param $params
* @return mixed
*/
public
function
getRecords
(
$params
)
{
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
''
;
if
(
empty
(
$params
[
'houses_id'
]))
{
$result
[
'msg'
]
=
'参数错误'
;
}
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$field
=
'id,name,remark,create_time'
;
$where
[
'house_id'
]
=
$params
[
'houses_id'
];
if
(
isset
(
$params
[
'type'
]))
{
$where
[
'type'
]
=
$params
[
'type'
];
}
try
{
$agents
=
new
OfficeGOperatingRecord
();
$result
[
'data'
]
=
$agents
->
getList
(
$pageNo
,
$pageSize
,
'id DESC'
,
$field
,
$where
);
$result
[
'status'
]
=
'successful'
;
}
catch
(
\Exception
$e
)
{
$result
[
'msg'
]
=
$e
->
getMessage
();
}
return
$result
;
}
}
\ No newline at end of file
application/route.php
View file @
f6538615
...
...
@@ -1000,6 +1000,7 @@ Route::group('office_index', [
'getLabelsList'
=>
[
'index/OfficeLabel/getLabelsList'
,
[
'method'
=>
'get'
]],
//楼盘标签列表
'houseEdit'
=>
[
'index/OfficeRoom/edit'
,
[
'method'
=>
'POST|GET'
]],
//楼盘字典新增和编辑
'houseAdd'
=>
[
'index/OfficeRoom/edit'
,
[
'method'
=>
'POST|GET'
]],
//楼盘字典新增和编辑
'getRecords'
=>
[
'index/OfficeRoom/getRecords'
,
[
'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