过滤被删除的用户
This commit is contained in:
parent
bfa9fc4026
commit
46a6c5723f
@ -111,7 +111,7 @@ func GetBundleBalanceList(req *bundle.GetBundleBalanceListReq) (data []model.Bun
|
||||
Joins("LEFT JOIN fiee_bundle.bundle_balance AS bb on u.id = bb.user_id").
|
||||
Joins("LEFT JOIN `micro-account`.`real_name` rn on u.real_name_id = rn.id").
|
||||
Joins("LEFT JOIN bundle_order_records bor on bor.uuid = bb.order_uuid").
|
||||
Where("bor.deleted_at IS NULL and rn.name IS NOT NULL")
|
||||
Where("bor.deleted_at IS NULL and rn.name IS NOT NULL and u.deleted_at = 0")
|
||||
if req.UserName != "" {
|
||||
if utils.IsPhoneNumber(req.UserName) {
|
||||
session = session.Where("u.tel_num = ?", req.UserName)
|
||||
|
Loading…
Reference in New Issue
Block a user