first commit
This commit is contained in:
35
pgserver/application/admin/service/EstateService.php
Normal file
35
pgserver/application/admin/service/EstateService.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\admin\service;
|
||||
|
||||
|
||||
use app\model\Estate;
|
||||
|
||||
class EstateService extends CommonService
|
||||
{
|
||||
/**
|
||||
* 归档一套房产的回价信息
|
||||
*
|
||||
* @param array $data
|
||||
* @return bool
|
||||
*/
|
||||
public function archiveEstate(array $data)
|
||||
{
|
||||
$estate = new Estate();
|
||||
$estate->building_name = $data['building_name'];
|
||||
$estate->building_name = $data['building_name'];
|
||||
$estate->floor_no = $data['floor_no'];
|
||||
$estate->house_name = $data['house_name'];
|
||||
$estate->property_full_name = $data['building_name'].$data['building_name'].$data['house_name'];
|
||||
$estate->city = $data['city'];
|
||||
$estate->area = $data['area'];
|
||||
$estate->type = $data['type'];
|
||||
$estate->size = $data['size'];
|
||||
$estate->remark = $data['remark'];
|
||||
$estate->per_price = $data['per_price'];
|
||||
$estate->eva_total_value = $data['eva_total_value'];
|
||||
$estate->clear_price = $data['clear_price'];
|
||||
return $estate->save();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user