Browse Source

update

master
DengBiao 1 year ago
parent
commit
5df62f2a76
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      rule/public_platoon_relate_commission.go

+ 10
- 0
rule/public_platoon_relate_commission.go View File

@@ -512,6 +512,16 @@ func FindRandUser(engine *xorm.Engine, nums int) (resp []int64, err error) {
return
}
if int(count) < nums {
//TODO::直接查询所有的数据返回即可
var list []model.UserPublicPlatoonRelation
if err1 := engine.Where("1=1").
Find(&list); err1 != nil {
return nil, zhios_order_relate_logx.Warn(err1)
}
for _, v := range list {
resp = append(resp, int64(v.Uid))
}
return
nums = int(count)
}



Loading…
Cancel
Save