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
e7589978
Commit
e7589978
authored
Jun 27, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查重盘
parent
9c8cc4e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+11
-0
OfficeBuildingRoomValidate.php
application/index/validate/OfficeBuildingRoomValidate.php
+2
-2
OfficeGRoom.php
application/model/OfficeGRoom.php
+12
-0
No files found.
application/index/service/OfficeRoomService.php
View file @
e7589978
...
...
@@ -90,6 +90,17 @@ class OfficeRoomService
$result
[
'msg'
]
=
$this
->
validate
->
getError
();
return
$result
;
}
$where
[
'b.city'
]
=
$data
[
'city'
];
$where
[
'a.floor'
]
=
$data
[
'floor'
];
$where
[
'a.mansion'
]
=
$data
[
'mansion'
];
$num
=
$this
->
m_office_room
->
getRoomBuildingListCount
(
$where
);
if
(
$num
>
0
)
{
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
'该楼盘房源重盘'
;
return
$result
;
}
$status
=
$this
->
m_office
->
getFieldOneValue
(
'status'
,
[
'id'
=>
$data
[
'building_id'
]]);
//验证办公楼字典是否完整
$is_alert
=
0
;
if
(
$status
!=
1
)
{
...
...
application/index/validate/OfficeBuildingRoomValidate.php
View file @
e7589978
...
...
@@ -116,10 +116,10 @@ class OfficeBuildingRoomValidate extends Validate
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 @
e7589978
...
...
@@ -477,6 +477,18 @@ class OfficeGRoom extends BaseModel
->
select
();
}
/**
* @param $params
* @return int|string
*/
function
getRoomBuildingListCount
(
$params
)
{
return
$data
=
$this
->
alias
(
"a"
)
->
join
(
"office_g_building b"
,
"a.building_id=b.id"
,
"left"
)
->
where
(
$params
)
->
count
(
'a.id'
);
}
/**
* @param $field
* @param $params
...
...
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