|
|
@@ -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) |
|
|
|
} |
|
|
|
|
|
|
|