From 307d2ec30a7cb406d8ce734d869c06a40368a0f2 Mon Sep 17 00:00:00 2001 From: "HDM58\\hdm58" Date: Sun, 11 Jun 2023 16:36:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=9F=A5=E8=AF=A2=E8=AF=AD=E5=8F=A5MySQL5.7?= =?UTF-8?q?=E4=BB=A5=E4=B8=8A=E7=89=88=E6=9C=AC=E5=87=BA=E7=8E=B0=E4=BD=BF?= =?UTF-8?q?=E7=94=A8GROUP=20BY=20=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/customer/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/customer/controller/Index.php b/app/customer/controller/Index.php index c1798d3..8a3f602 100644 --- a/app/customer/controller/Index.php +++ b/app/customer/controller/Index.php @@ -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'])){