From 3b7a33e9aa591bfbeee1e8a337940bb68673e305 Mon Sep 17 00:00:00 2001 From: vilson <545522390@qq.com> Date: Sun, 10 May 2020 08:24:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: vilson <545522390@qq.com> --- application/common/Model/Project.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/Model/Project.php b/application/common/Model/Project.php index 15ada1d..249fdcb 100644 --- a/application/common/Model/Project.php +++ b/application/common/Model/Project.php @@ -46,7 +46,7 @@ class Project extends CommonModel if ($collection == 1) { $sql .= " and pc.project_code is not null and pc.member_code = '{$memberCode}'"; } - $sql .= " order by pc.id desc, p.id desc"; + $sql .= "group by p.id order by pc.id desc, p.id desc"; $total = Db::query($sql); $total = count($total); $sql .= " limit {$offset},{$limit}";