This website works better with JavaScript.
Home
Explore
Help
Sign In
EggPlanet
/
egg_admin
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
update
master
shenjiachi
4 days ago
parent
bd4be109f1
commit
958799d3dc
3 changed files
with
3 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
app/md/member_center/md_user_management.go
+2
-2
app/svc/financial_center/svc_withdraw.go
+1
-1
app/svc/member_center/svc_user_management.go
+ 0
- 1
app/md/member_center/md_user_management.go
View File
@@ -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"`
+ 2
- 2
app/svc/financial_center/svc_withdraw.go
View File
@@ -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.
u
id = ?", 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_
u
id = ?", req.ParentID)
}
switch req.IsFirst {
+ 1
- 1
app/svc/member_center/svc_user_management.go
View File
@@ -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
}
Write
Preview
Loading…
Cancel
Save