diff --git a/rule/public_platoon_relate_commission.go b/rule/public_platoon_relate_commission.go index be6f00f..d6cf847 100644 --- a/rule/public_platoon_relate_commission.go +++ b/rule/public_platoon_relate_commission.go @@ -479,7 +479,7 @@ func JudgeUserBelowLevel(engine *xorm.Engine, uid int) (level int, err error) { level = son.Level - m.Level var list []model.UserPublicPlatoonRelation - if err = engine.Where("father_uid", son.FatherUid). + if err = engine.Where("father_uid =?", son.FatherUid). Find(&list); err != nil { return }