Bläddra i källkod

Merge remote-tracking branch 'origin/master'

master
huangjiajun 2 dagar sedan
förälder
incheckning
c3ab470b8c
2 ändrade filer med 6 tillägg och 5 borttagningar
  1. +4
    -4
      app/md/financial_center/md_withdraw.go
  2. +2
    -1
      app/svc/financial_center/svc_withdraw.go

+ 4
- 4
app/md/financial_center/md_withdraw.go Visa fil

@@ -82,10 +82,10 @@ type WithdrawApplyInfo struct {
model.FinWithdrawApply `xorm:"extends"`
Nickname string `xorm:"nickname"` // 用户名称
ParentID int64 `xorm:"parent_uid"` // 推荐人ID
AliPayName string `xorm:"user_name"` // 支付宝昵称
AliPayAccount string `xorm:"user_id"` // 支付宝账号
WxPayName string `xorm:"user_name"` // 微信昵称
WxPayAccount string `xorm:"user_id"` // 微信账号
AliPayName string `xorm:"alipay_user_name"` // 支付宝昵称
AliPayAccount string `xorm:"alipay_open_id"` // 支付宝账号
WxPayName string `xorm:"wx_user_name"` // 微信昵称
WxPayAccount string `xorm:"wx_user_id"` // 微信账号
InviteCode string `xorm:"system_invite_code"` // 邀请码
}



+ 2
- 1
app/svc/financial_center/svc_withdraw.go Visa fil

@@ -82,7 +82,8 @@ func WithDrawManagementGetApply(engine *xorm.Engine, req *md.GetWithdrawApplyLis
if req.Level != "" {
session = session.Where("usera.level = ?", req.Level)
}
total, err := session.Limit(req.Limit, (req.Page-1)*req.Limit).Asc("apply.id").FindAndCount(&applies)
total, err := session.Select("apply.*, alipay.open_id as alipay_open_id, alipay.user_name as alipay_user_name, wx.user_id as wx_user_id, wx.user_name as wx_user_name, usera.system_invite_code as system_invite_code").
Limit(req.Limit, (req.Page-1)*req.Limit).Asc("apply.id").FindAndCount(&applies)
if err != nil {
return nil, 0, err
}


Laddar…
Avbryt
Spara