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
41e56d7f
Commit
41e56d7f
authored
Jun 03, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加字段
parent
09ccdf80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+22
-0
OfficeGRoom.php
application/model/OfficeGRoom.php
+10
-0
No files found.
application/index/service/OfficeRoomService.php
View file @
41e56d7f
...
...
@@ -316,6 +316,28 @@ class OfficeRoomService
$data
[
'building_data'
]
=
[];
}
}
$data
[
'landlord_phone_array'
]
=
$this
->
landlord_phone
->
getAllList
(
'id,name,phone'
,
[
'house_id'
=>
$id
]);
//房东手机号
if
(
$data
[
'price_total'
]
>
0
)
{
$data
[
'price_total'
]
=
$data
[
'price_total'
]
/
100
;
}
if
(
$data
[
'price'
]
>
0
)
{
$data
[
'price'
]
=
$data
[
'price'
]
/
100
;
}
if
(
$data
[
'slotting_fee'
]
>
0
)
{
$data
[
'slotting_fee'
]
=
$data
[
'slotting_fee'
]
/
100
;
}
if
(
$data
[
'management_fee'
]
>
0
)
{
$data
[
'management_fee'
]
=
$data
[
'management_fee'
]
/
100
;
}
if
(
$data
[
'rent_free'
]
>
0
)
{
$data
[
'rent_free'
]
=
$data
[
'rent_free'
]
/
100
;
}
}
$result
[
'data'
]
=
$data
;
$result
[
'status'
]
=
'successful'
;
...
...
application/model/OfficeGRoom.php
View file @
41e56d7f
...
...
@@ -67,6 +67,16 @@ class OfficeGRoom extends BaseModel
$save_data
[
'is_exclusive_type'
]
=
$data
[
'is_exclusive_type'
];
}
//是否独家0否1是
if
(
isset
(
$data
[
'agent_start_time'
]))
{
$save_data
[
'agent_start_time'
]
=
$data
[
'agent_start_time'
];
}
//是否独家0否1是
if
(
isset
(
$data
[
'agent_end_time'
]))
{
$save_data
[
'agent_end_time'
]
=
$data
[
'agent_end_time'
];
}
//租金总价 存分
if
(
isset
(
$data
[
'price_total'
]))
{
$save_data
[
'price_total'
]
=
$data
[
'price_total'
]
*
100
;
...
...
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