Commit fb7b9dbb authored by hujun's avatar hujun

where

parent 4a9fc4ab
...@@ -91,7 +91,14 @@ class OfficeRoomService ...@@ -91,7 +91,14 @@ class OfficeRoomService
return $result; return $result;
} }
$where['b.city'] = $data['city']; $status = $this->m_office->getFindData('status,city', ['id' => $data['building_id']]);//验证办公楼字典是否完整
$is_alert = 0;
if ($status['status'] != 1) {
$is_alert = 1;
$data['status'] = 2;
}
$where['b.city'] = $status['city'];
$where['a.floor'] = $data['floor']; $where['a.floor'] = $data['floor'];
$where['a.mansion'] = $data['mansion']; $where['a.mansion'] = $data['mansion'];
$where['a.room_number'] = $data['room_number']; $where['a.room_number'] = $data['room_number'];
...@@ -101,13 +108,6 @@ class OfficeRoomService ...@@ -101,13 +108,6 @@ class OfficeRoomService
$result['msg'] = '该楼盘房源重盘'; $result['msg'] = '该楼盘房源重盘';
return $result; return $result;
} }
$status = $this->m_office->getFieldOneValue('status', ['id' => $data['building_id']]);//验证办公楼字典是否完整
$is_alert = 0;
if ($status != 1) {
$is_alert = 1;
$data['status'] = 2;
}
$id = $this->m_office_room->addRoom($data, $agent_id); $id = $this->m_office_room->addRoom($data, $agent_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment