diff --git a/app/operator/hdl/hdl_operator.go b/app/operator/hdl/hdl_operator.go index b932a48..19bcf7e 100644 --- a/app/operator/hdl/hdl_operator.go +++ b/app/operator/hdl/hdl_operator.go @@ -251,7 +251,7 @@ ORDER BY u.uid DESC %s` LEFT JOIN user u on u.uid=ur.uid WHERE ur.parent_uid=%d and u.level=2` sqlCount = fmt.Sprintf(sqlCount, user.Info.Uid) - nativeStringCount, _ := db.QueryNativeString(svc.MasterDb(c), sql) + nativeStringCount, _ := db.QueryNativeString(svc.MasterDb(c), sqlCount) for _, v := range nativeStringCount { total = utils.StrToInt(v["count"]) }