添加用户ID分组查询条件
This commit is contained in:
parent
1f1fbed3a8
commit
b06d06c8e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user