f
This commit is contained in:
@@ -56,6 +56,11 @@ func (l *GetAgentWithdrawalLogic) GetAgentWithdrawal(req *types.GetWithdrawalReq
|
||||
return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "获取代理提现列表, %v", err)
|
||||
}
|
||||
withdrawal.CreateTime = agentWithdrawalModel.CreateTime.Format("2006-01-02 15:04:05")
|
||||
// 从扣税记录中取扣税比例,供前端展示“扣了几个点”
|
||||
taxModel, taxErr := l.svcCtx.AgentWithdrawalTaxModel.FindOneByWithdrawalId(l.ctx, agentWithdrawalModel.Id)
|
||||
if taxErr == nil {
|
||||
withdrawal.TaxRate = taxModel.TaxRate
|
||||
}
|
||||
list = append(list, withdrawal)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user