添加用户ID分组查询条件

This commit is contained in:
lzh 2025-06-27 14:37:28 +08:00
parent 1f1fbed3a8
commit b06d06c8e2

View File

@ -170,6 +170,7 @@ func GetBundleBalanceByUserId(req *bundle.GetBundleBalanceByUserIdReq) (data mod
Where("type = 1"). // 手动扩展
Where("user_id = ?", req.UserId).
Where("created_at > ?", data.PayTime). // 判断扩展是否生效
Group("user_id").
First(&additionalInfo).Error
if err != nil {
return