Commit 9ede1b20 authored by hujun's avatar hujun

internal_address

parent 7e95a12d
......@@ -79,7 +79,11 @@ class HouseService
}
try {
$num = $this->m_house->getHouseListTotal(['internal_address' => $data['internal_address']]);
$check_where['internal_address'] = trim($data['internal_address']);
if (!empty($data['id'])) {
$check_where['id'] = ['<>', $data['id']];
}
$num = $this->m_house->getHouseListTotal($check_where);
if ($num > 1) {
$result['status'] = 'fail';
......
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