From 72427f826828c662ac59491fabb15c0e63a97f57 Mon Sep 17 00:00:00 2001 From: "jiaji.H" Date: Thu, 11 Jun 2026 13:27:02 +0800 Subject: [PATCH] fix --- internal/dao/bundleExtend.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/dao/bundleExtend.go b/internal/dao/bundleExtend.go index cd8dbb4..41d29af 100644 --- a/internal/dao/bundleExtend.go +++ b/internal/dao/bundleExtend.go @@ -234,9 +234,9 @@ func GetPayLaterBundleBalanceList(req *bundle.GetPayLaterBundleBalanceListReq) ( } if len(req.Month) == 0 { newestMonthQuery := app.ModuleClients.BundleDB.Model(&model.BundleBalance{}).Select("max(month) as month,user_id").Group("user_id") - session.Joins("LEFT JOIN (?) as newest_month on newest_month.user_id = bb.user_id", newestMonthQuery).Where("") + session.Joins("LEFT JOIN (?) as newest_month on newest_month.user_id = lb.user_id", newestMonthQuery).Where("") } else { - session = session.Where("bb.month in (?)", req.Month) + session = session.Where("lb.month in (?)", req.Month) } err = session.Count(&total).Error if err != nil {