Compare commits
No commits in common. "107a4571119d62f24d273d5d6dffdb4725a8c85d" and "edc93077a7fa9ea85357781312ce8936b3f67c2a" have entirely different histories.
107a457111
...
edc93077a7
@ -115,12 +115,8 @@ func GetBundleBalanceList(req *bundle.GetBundleBalanceListReq) (data []model.Bun
|
|||||||
Joins("LEFT JOIN bundle_order_records bor on bor.uuid = bb.order_uuid").
|
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")
|
||||||
if req.UserName != "" {
|
if req.UserName != "" {
|
||||||
if utils.IsPhoneNumber(req.UserName) {
|
|
||||||
session = session.Where("u.tel_num = ?", req.UserName)
|
|
||||||
} else {
|
|
||||||
session = session.Where("rn.name like ?", "%"+req.UserName+"%")
|
session = session.Where("rn.name like ?", "%"+req.UserName+"%")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if req.Status != 0 {
|
if req.Status != 0 {
|
||||||
session = session.Where("bor.status = ?", req.Status)
|
session = session.Where("bor.status = ?", req.Status)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user