Commit a653d25a authored by hujun's avatar hujun

status

parent e8cc2226
......@@ -89,6 +89,12 @@ class OfficeRoomService
$result['msg'] = $this->validate->getError();
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);
......@@ -217,12 +223,6 @@ class OfficeRoomService
$m_operating = new OfficeGOperatingRecord();
$m_operating->record($agent_id, 2, $remark, $id);
}
$status = $this->m_office->getFieldOneValue('status', ['id'=>$data['building_id']]);
$is_alert = 0;
if ($status != 1) {
$is_alert = 1;
}
$result['status'] = 'successful';
$result['data']['house_id'] = $id;
$result['data']['is_alert'] = $is_alert;
......
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