Commit ddf766a1 authored by hujun's avatar hujun

修改楼盘与经纪人关系

parent 9151d05c
......@@ -264,9 +264,9 @@ class HouseService
continue;
} else {
$update_data[$k]['id'] = $v['id'];
$update_data[$k]['agents_id'] = $v['agents_id'];
$update_data[$k]['houses_id'] = $v['houses_id'];
$update_data[$k]['type'] = $type;
// $update_data[$k]['agents_id'] = $v['agents_id'];
// $update_data[$k]['houses_id'] = $v['houses_id'];
// $update_data[$k]['type'] = $type;
$update_data[$k]['is_del'] = 1;
$del_agent_id[] = $v['agents_id'];
}
......@@ -276,10 +276,12 @@ class HouseService
if (in_array($v2, $agent_id_old)) {
continue;
} else {
$insert_data[$k2]['agents_id'] = $v2;
$insert_data[$k2]['houses_id'] = $house_id;
$insert_data[$k2]['type'] = $type;
$add_agent_id[] = $v2;
if (!empty($v2)) {
$insert_data[$k2]['agents_id'] = $v2;
$insert_data[$k2]['houses_id'] = $house_id;
$insert_data[$k2]['type'] = $type;
$add_agent_id[] = $v2;
}
}
}
......
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