Commit bc379d3c authored by zhuwei's avatar zhuwei

excel

parent dbc86312
...@@ -222,7 +222,7 @@ class OfficePerformanceInfo extends Basic ...@@ -222,7 +222,7 @@ class OfficePerformanceInfo extends Basic
$field .= 'Obargain.father_id,'; $field .= 'Obargain.father_id,';
$field .= 'Obargain.trade_type,'; $field .= 'Obargain.trade_type,';
$field .= 'Obargain.agent_id,';//分佣方ID $field .= 'Obargain.agent_id,';//分佣方ID
$field .= 'Houses.internal_address,'; $field .= 'Houses.address as internal_address,';
$field .= 'Oorder.house_id,'; $field .= 'Oorder.house_id,';
$field .= 'Obargain.price,';//pricec成交价格 $field .= 'Obargain.price,';//pricec成交价格
$field .= 'Agent.name,'; $field .= 'Agent.name,';
......
...@@ -1438,7 +1438,8 @@ class OfficeOBargainModel extends Model ...@@ -1438,7 +1438,8 @@ class OfficeOBargainModel extends Model
->alias("Obargain") ->alias("Obargain")
->join("office_o_report Oreport", "Obargain.report_id = Oreport.id", "left") ->join("office_o_report Oreport", "Obargain.report_id = Oreport.id", "left")
->join("office_o_order Oorder", "Obargain.order_id = Oorder.id", "left") ->join("office_o_order Oorder", "Obargain.order_id = Oorder.id", "left")
->join("g_houses Houses", "Oorder.house_id = Houses.id", "left") ->join("office_g_room Room", "Oorder.house_id = Room.id", "left")
->join("office_g_building Houses", "Room.building_id = Houses.id", "left")
->join("a_agents Agent", "Obargain.agent_id = Agent.id", "left") ->join("a_agents Agent", "Obargain.agent_id = Agent.id", "left")
// ->join('a_store Store', 'Agent.store_id = Store.id', 'left') // ->join('a_store Store', 'Agent.store_id = Store.id', 'left')
// ->join('a_district District', 'Agent.district_id = District.id', 'left') // ->join('a_district District', 'Agent.district_id = District.id', 'left')
......
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