Commit cdee7693 authored by zhuwei's avatar zhuwei

business_name

parent 7d0a4075
......@@ -598,7 +598,7 @@ class OfficeRoomService
$field = 'a.id,a.building_id,b.title,b.province,b.city,b.disc,b.floor_total,a.price_total,a.price,a.station_start,b.type,a.station_end,a.area,a.floor,a.floor_tag,
a.is_register,a.age_limit_start,a.age_limit_end,a.rent_free,a.management_fee,a.slotting_fee,a.carport,a.enter_date,
a.is_partition,a.decoration,a.payment_month,a.deposit_month,a.source,a.create_time,a.operation_id,a.landlord_remark,
a.fee_rule,a.update_time,b.address,a.is_exclusive_type,a.agent_start_time,a.agent_end_time';
a.fee_rule,a.update_time,b.address,a.is_exclusive_type,a.agent_start_time,a.agent_end_time,c.name as business_name';
$result = $this->m_office_room->getOfficeRoomInfo($field,['a.id'=>$id]);
if (!$result) {
......
......@@ -242,6 +242,7 @@ class OfficeGRoom extends BaseModel
$result = $this->field($field)
->alias("a")
->join('office_g_building b', 'a.building_id=b.id','left')
->join('g_business_district c', 'b.business_district_id=c.id','left')
->where($params)
->find();
// dump($this->getLastSql());
......
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