From 7bf56d18e2efcf9f428be78ae06beeb764aa71e7 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Tue, 12 Mar 2024 16:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/dao/user/UserDao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/dao/user/UserDao.php b/app/common/dao/user/UserDao.php index fbbcaf23..de90b069 100644 --- a/app/common/dao/user/UserDao.php +++ b/app/common/dao/user/UserDao.php @@ -312,7 +312,7 @@ class UserDao extends BaseDao public function userOrderDetail($uid) { $info = User::getDB()->alias('A')->with(['group','spread','memberIcon']) - ->join('StoreOrder B', 'A.uid = B.uid and B.paid = 1 and B.pay_time between \'' . date('Y/m/d', strtotime('first day of')) . ' 00:00:00\' and \'' . date('Y/m/d H:i:s') . '\'') + ->leftJoin('StoreOrder B', 'A.uid = B.uid and B.paid = 1 and B.pay_time between \'' . date('Y/m/d', strtotime('first day of')) . ' 00:00:00\' and \'' . date('Y/m/d H:i:s') . '\'') ->join('PresellOrder C', 'C.order_id = B.order_id and C.paid = 1', 'LEFT') ->field('A.*, sum(B.pay_price + IFNULL(C.pay_price,0)) as total_pay_price, count(B.order_id) as total_pay_count,is_svip,svip_endtime,svip_save_money') ->where('A.uid', $uid)