From 958799d3dce022b2c4b40b0c17728fe1453ade35 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 18 Dec 2024 16:12:48 +0800 Subject: [PATCH] update --- app/md/member_center/md_user_management.go | 1 - app/svc/financial_center/svc_withdraw.go | 4 ++-- app/svc/member_center/svc_user_management.go | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/md/member_center/md_user_management.go b/app/md/member_center/md_user_management.go index f1d2e8e..abd4236 100644 --- a/app/md/member_center/md_user_management.go +++ b/app/md/member_center/md_user_management.go @@ -67,7 +67,6 @@ type UserManagementGetUserListResp struct { type UserInfo struct { model.User `xorm:"extends"` - TagID int `xorm:"tag_id"` ParentPhone string `xorm:"parent_phone"` ParentSystemInviteCode string `xorm:"parent_system_invite_code"` ParentCustomInviteCode string `xorm:"parent_custom_invite_code"` diff --git a/app/svc/financial_center/svc_withdraw.go b/app/svc/financial_center/svc_withdraw.go index a138c95..b0ef5af 100644 --- a/app/svc/financial_center/svc_withdraw.go +++ b/app/svc/financial_center/svc_withdraw.go @@ -13,7 +13,7 @@ func WithDrawManagementGetApply(engine *xorm.Engine, req *md.GetWithdrawApplyLis Join("LEFT OUTER", []string{"wx_user_info", "wx"}, "usera.id = wx.uid") if req.Uid != "0" && req.Uid != "" { - session = session.Where("usera.uid = ?", req.Uid) + session = session.Where("usera.id = ?", req.Uid) } if req.Nickname != "" { @@ -25,7 +25,7 @@ func WithDrawManagementGetApply(engine *xorm.Engine, req *md.GetWithdrawApplyLis } if req.ParentID != "0" && req.ParentID != "" { - session = session.Where("usera.parent_id = ?", req.ParentID) + session = session.Where("usera.parent_uid = ?", req.ParentID) } switch req.IsFirst { diff --git a/app/svc/member_center/svc_user_management.go b/app/svc/member_center/svc_user_management.go index 3dd1d48..ed637df 100644 --- a/app/svc/member_center/svc_user_management.go +++ b/app/svc/member_center/svc_user_management.go @@ -22,7 +22,7 @@ func UserManagementGetUsers(req *md.UserManagementGetUserListReq) ([]*md.UserInf return nil, 0, err } - err = pageSess.Distinct("a.*").Limit(req.Limit, (req.Page-1)*req.Limit).Desc("a.id").Find(&users) + err = pageSess.Select("a.*, b.phone as parent_phone, b.system_invite_code as parent_system_invite_code, b.custom_invite_code as parent_custom_invite_code").Distinct("a.*").Limit(req.Limit, (req.Page-1)*req.Limit).Desc("a.id").Find(&users) if err != nil { return nil, 0, err }