作者 yangfu

共创项目查询修改

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