From 41893413d26b749adbbc69dd3b166d846c2ab950 Mon Sep 17 00:00:00 2001 From: liuyi Date: Fri, 15 May 2020 02:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E5=AF=B9=E4=BA=86mysql5.7?= =?UTF-8?q?=E4=BB=A5=E4=B8=8A=E7=9A=84sql=5Fmode=3Donly=5Ffull=5Fgroup=5Fb?= =?UTF-8?q?y=E6=A8=A1=E5=BC=8F=E7=9A=84=E5=85=BC=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E9=9C=80=E8=A6=81=E5=BC=80=E5=8F=91=E8=80=85?= =?UTF-8?q?=E5=86=8D=E5=8E=BB=E8=B0=83=E6=95=B4mysql=E7=9A=84=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=BA=86=EF=BC=8C=E5=A6=82=E6=9E=9C=E4=B8=8D=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E5=88=99=E5=9C=A8=E5=90=8E=E5=8F=B0=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=92=8C=E7=BB=9F=E8=AE=A1=E4=BC=9A=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/PayLogService.php | 2 +- application/service/RefundLogService.php | 2 +- application/service/StatisticalService.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/service/PayLogService.php b/application/service/PayLogService.php index 356132355..c2829946c 100755 --- a/application/service/PayLogService.php +++ b/application/service/PayLogService.php @@ -68,7 +68,7 @@ class PayLogService */ public static function PayLogTypeList($params = []) { - $data = Db::name('PayLog')->field('payment AS id, payment_name AS name')->group('payment')->select(); + $data = Db::name('PayLog')->field('any_value(payment) AS id, any_value(payment_name) AS name')->group('payment')->select(); return DataReturn('处理成功', 0, $data); } diff --git a/application/service/RefundLogService.php b/application/service/RefundLogService.php index 88fe5231f..214ebd3e1 100644 --- a/application/service/RefundLogService.php +++ b/application/service/RefundLogService.php @@ -72,7 +72,7 @@ class RefundLogService */ public static function RefundLogTypeList($params = []) { - $data = Db::name('RefundLog')->field('payment AS id, payment_name AS name')->group('payment')->select(); + $data = Db::name('RefundLog')->field('any_value(payment) AS id, any_value(payment_name) AS name')->group('payment')->select(); return DataReturn('处理成功', 0, $data); } diff --git a/application/service/StatisticalService.php b/application/service/StatisticalService.php index 922b1642f..6a51dd9aa 100755 --- a/application/service/StatisticalService.php +++ b/application/service/StatisticalService.php @@ -442,7 +442,7 @@ class StatisticalService { $data = []; } else { - $data = Db::name('OrderDetail')->field('title AS name,sum(buy_number) AS value')->where('order_id', 'IN', $order_ids)->group('goods_id')->order('value desc')->limit(10)->select(); + $data = Db::name('OrderDetail')->field('any_value(title) AS name,sum(buy_number) AS value')->where('order_id', 'IN', $order_ids)->group('goods_id')->order('value desc')->limit(10)->select(); } if(!empty($data)) -- GitLab