From 5df62f2a76c55b7e226b717705d25813ebbb6bc6 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 25 Sep 2023 17:36:25 +0800 Subject: [PATCH] update --- rule/public_platoon_relate_commission.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rule/public_platoon_relate_commission.go b/rule/public_platoon_relate_commission.go index 65c59db..2bc25d4 100644 --- a/rule/public_platoon_relate_commission.go +++ b/rule/public_platoon_relate_commission.go @@ -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) }