From 735463df3ba4ac4ae9dc543436b9cd99fa9720ef Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 14 Feb 2023 17:17:39 +0800 Subject: [PATCH] test --- lib/comm_plan/winery.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/comm_plan/winery.go b/lib/comm_plan/winery.go index e6bbc7d..b2edf00 100644 --- a/lib/comm_plan/winery.go +++ b/lib/comm_plan/winery.go @@ -112,7 +112,7 @@ Loop: //找出前两个人 如果不是就分团队奖 如果是就再找 sql := `SELECT u.uid,u.first_arrive_at FROM user_profile up LEFT JOIN user u on u.uid=up.uid - WHERE up.parent_uid=? and u.level=1 ORDER BY u.first_arrive_at asc,u.uid asc LIMIT 2` + WHERE up.parent_uid=? ORDER BY u.first_arrive_at asc,u.uid asc LIMIT 2` nativeString, err := db.QueryNativeString(eg, sql, node.ParentUser.Uid) if err != nil { return zhios_order_relate_logx.Warn("sql error") @@ -121,6 +121,7 @@ Loop: for _, v := range nativeString { if zhios_order_relate_utils.StrToInt(v["uid"]) == extendUid { isNext = 1 + extendUid = node.ParentUser.Uid } } }