diff --git a/application/service/PayLogService.php b/application/service/PayLogService.php index 356132355f9219fa87a228a828d8a0e816dda532..c2829946ceb8f4452c3f6a5e757e4949f8f6ccaa 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 88fe5231fc33341cb3fc96daf9d3d08416c4639d..214ebd3e19a71103d0e6a9a7355f3ddb7467d374 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 922b1642fade2f9a0772efb0cf6ce1dc218e6d68..6a51dd9aa93910a6c4c17f7e25258d5b6e0a4ec0 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))