This website works better with JavaScript.
首頁
探索
說明
登入
EggPlanet
/
egg_admin
關註
3
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
update
master
shenjiachi
4 天之前
父節點
bd4be109f1
當前提交
958799d3dc
共有
3 個文件被更改
,包括
3 次插入
和
4 次删除
分割檢視
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
查看文件
@@ -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
查看文件
@@ -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
查看文件
@@ -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…
取消
儲存