作者 yangfu

共创项目查询修改

... ... @@ -203,8 +203,8 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int
query.Where("status =? ", v)
}
offsetLimitFlag := true
if limit, ok := queryOptions["limit"]; ok {
offsetLimitFlag = limit.(bool)
if _, ok := queryOptions["limit"]; ok {
offsetLimitFlag = true
}
if offsetLimitFlag {
query.SetOffsetAndLimit(20)
... ...