Parcourir la source

update

master
shenjiachi il y a 4 jours
Parent
révision
958799d3dc
3 fichiers modifiés avec 3 ajouts et 4 suppressions
  1. +0
    -1
      app/md/member_center/md_user_management.go
  2. +2
    -2
      app/svc/financial_center/svc_withdraw.go
  3. +1
    -1
      app/svc/member_center/svc_user_management.go

+ 0
- 1
app/md/member_center/md_user_management.go Voir le fichier

@@ -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 Voir le fichier

@@ -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 {


+ 1
- 1
app/svc/member_center/svc_user_management.go Voir le fichier

@@ -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
}


Chargement…
Annuler
Enregistrer