Commit 6c576b56 by html5-李恒逸

修复:渠道看不到对应楼盘

parent 14799930
......@@ -33,9 +33,7 @@ class Channel_building_model extends My_Model{
*/
public function get_all_building($where=''){
$this->db->select('B.id,B.building_id,B.building_title')
->from('tb_building B')
->join('tb_channel_building CB','B.id=CB.building_id','left')
->join('tb_channel E','E.id=CB.channel_id');
->from('tb_building B');
if($where!=''){
$this->db->where($where);
}
......
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