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
e6602a70
Commit
e6602a70
authored
Jun 18, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mansion
parent
3a062f88
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+1
-1
OfficeBuildingRoomValidate.php
application/index/validate/OfficeBuildingRoomValidate.php
+7
-4
OfficeGRoom.php
application/model/OfficeGRoom.php
+5
-0
No files found.
application/index/service/OfficeRoomService.php
View file @
e6602a70
...
...
@@ -256,7 +256,7 @@ class OfficeRoomService
$field
=
'id,building_id,is_show,is_exclusive_type,is_rent,status,source,price_total,price,slotting_fee,'
;
$field
.=
'management_fee,station_start,station_end,area,floor,room_number,floor_tag,enter_date,'
;
$field
.=
'payment_month,deposit_month,age_limit_start,age_limit_end,is_register,is_partition,carport,decoration,'
;
$field
.=
'rent_free,shop_sign,fee_rule,agent_start_time,agent_end_time,landlord_remark'
;
$field
.=
'rent_free,shop_sign,fee_rule,agent_start_time,agent_end_time,landlord_remark
,mansion
'
;
$data
=
$this
->
m_office_room
->
getFindData
(
$field
,
[
'id'
=>
$id
]);
if
(
$data
)
{
...
...
application/index/validate/OfficeBuildingRoomValidate.php
View file @
e6602a70
...
...
@@ -45,7 +45,8 @@ class OfficeBuildingRoomValidate extends Validate
'is_carefully_chosen'
=>
'require|in:0,1'
,
'agent_start_time'
=>
'require'
,
'agent_end_time'
=>
'require'
,
'title'
=>
'require'
'title'
=>
'require'
,
'mansion'
=>
'require|length:2,255'
];
protected
$message
=
[
...
...
@@ -104,16 +105,18 @@ class OfficeBuildingRoomValidate extends Validate
'is_carefully_chosen.in'
=>
'是否精选参数错误'
,
'agent_start_time.require'
=>
'独家开始时间必填'
,
'agent_end_time.require'
=>
'独家结束时间必填'
,
'title.require'
=>
'楼盘字段标题必传'
'title.require'
=>
'楼盘字段标题必传'
,
'mansion.require'
=>
'楼号/栋/座必传'
,
'mansion.length'
=>
'楼号/栋/座字数要在2至255之间'
,
];
protected
$scene
=
[
'add'
=>
[
'floor'
,
'room_number'
,
'is_rent'
,
'is_exclusive_type'
,
'price_total'
,
'price'
,
'slotting_fee'
,
'management_fee'
,
'station_start'
,
'station_end'
,
'area'
,
'floor_tag'
,
'enter_time'
,
'payment_month'
,
'deposit_month'
,
'age_limit_start'
,
'age_limit_end'
,
'is_partition'
,
'carport'
,
'rent_free'
,
'source'
,
'decoration'
,
'shop_sign'
],
'age_limit_end'
,
'is_partition'
,
'carport'
,
'rent_free'
,
'source'
,
'decoration'
,
'shop_sign'
,
'mansion'
],
'edit'
=>
[
'id'
,
'floor'
,
'room_number'
,
'is_rent'
,
'is_exclusive_type'
,
'price_total'
,
'price'
,
'slotting_fee'
,
'management_fee'
,
'station_start'
,
'station_end'
,
'area'
,
'floor_tag'
,
'enter_time'
,
'payment_month'
,
'deposit_month'
,
'age_limit_start'
,
'age_limit_end'
,
'is_partition'
,
'carport'
,
'rent_free'
,
'source'
,
'decoration'
,
'shop_sign'
],
'age_limit_end'
,
'is_partition'
,
'carport'
,
'rent_free'
,
'source'
,
'decoration'
,
'shop_sign'
,
'mansion'
],
'detail'
=>
[
'id'
],
'is_carefully_chosen'
=>
[
'id'
,
'is_carefully_chosen'
],
'exclusive'
=>
[
'agent_start_time,agent_end_time,is_exclusive_type,id'
],
...
...
application/model/OfficeGRoom.php
View file @
e6602a70
...
...
@@ -203,6 +203,11 @@ class OfficeGRoom extends BaseModel
$save_data
[
'status'
]
=
$data
[
'status'
];
}
//楼号/栋/座
if
(
isset
(
$data
[
'mansion'
]))
{
$save_data
[
'mansion'
]
=
$data
[
'mansion'
];
}
if
(
empty
(
$data
[
'id'
]))
{
$save_data
[
'operation_id'
]
=
$agent_id
;
//上传人
$save_data
[
'create_time'
]
=
date
(
'Y-m-d H:i:s'
);
...
...
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