// 检查结果集是否存在 func CheckIsExist(qs orm.QuerySeter, field string, value interface{}, skipId int) bool { qs = qs.Filter(field, value) if skipId > 0 { qs = qs.Exclude("Id", skipId) } return qs.Exist() }