修复:客户模块查询语句MySQL5.7以上版本出现使用GROUP BY 报错问题
This commit is contained in:
parent
8d79e48ec0
commit
307d2ec30a
@ -103,7 +103,7 @@ class Index extends BaseController
|
||||
}
|
||||
}
|
||||
}
|
||||
$cc_sql= Db::name('CustomerContact')->group('cid')->buildSql();
|
||||
$cc_sql= Db::name('CustomerContact')->group('cid,mobile,qq,wechat,email')->field('cid,mobile,qq,wechat,email')->buildSql();
|
||||
$ct_sql= Db::name('CustomerTrace')->group('cid')->field('cid,MAX(follow_time) AS follow_time,MAX(next_time) AS next_time')->buildSql();
|
||||
$orderby = 'ct.next_time desc,a.create_time desc';
|
||||
if(isset($param['orderby'])){
|
||||
|
Loading…
x
Reference in New Issue
Block a user