Skip to content

Commit

Permalink
增加司机展示承运商名称
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuweicheng committed Jul 11, 2018
1 parent f99afb3 commit e1e231b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/models/Examine/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ public function getDriverInfo($serach,$id){
$this ->dbh ->set_page_num($serach['pageCurrent']);
$this ->dbh ->set_page_rows($serach['pageSize']);
//数据获取
$sql = "SELECT id,name,mobile,sex,cid,type,driver_start,driver_end,practitioners,driver_status,company_id,is_use,status FROM gl_driver gd {$WHERE} ORDER BY updated_at DESC ";
$sql = "SELECT gd.id,gd.name,gd.mobile,gd.sex,gd.cid,gd.type,gd.driver_start,gd.driver_end,gd.practitioners,gd.driver_status,gd.company_id,gd.is_use,gd.status,gl_companies.company_name FROM gl_driver gd
LEFT JOIN gl_companies ON gl_companies.id = gd.company_id
{$WHERE} ORDER BY gd.updated_at DESC ";

$result['list'] = $this->dbh->select_page($sql);
}

Expand Down

0 comments on commit e1e231b

Please sign in to comment.