|
@@ -269,6 +269,7 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int |
|
@@ -269,6 +269,7 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int |
269
|
if count, err := query.SelectAndCount(); err != nil {
|
269
|
if count, err := query.SelectAndCount(); err != nil {
|
270
|
return 0, cooperationProjects, err
|
270
|
return 0, cooperationProjects, err
|
271
|
} else {
|
271
|
} else {
|
|
|
272
|
+ if count > 0 {
|
272
|
for _, cooperationProjectModel := range cooperationProjectModels {
|
273
|
for _, cooperationProjectModel := range cooperationProjectModels {
|
273
|
// 获取共创模式
|
274
|
// 获取共创模式
|
274
|
cooperationModeModel := new(models.CooperationMode)
|
275
|
cooperationModeModel := new(models.CooperationMode)
|
|
@@ -282,6 +283,7 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int |
|
@@ -282,6 +283,7 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int |
282
|
cooperationProjects = append(cooperationProjects, cooperationProject)
|
283
|
cooperationProjects = append(cooperationProjects, cooperationProject)
|
283
|
}
|
284
|
}
|
284
|
}
|
285
|
}
|
|
|
286
|
+ }
|
285
|
return int64(count), cooperationProjects, nil
|
287
|
return int64(count), cooperationProjects, nil
|
286
|
}
|
288
|
}
|
287
|
}
|
289
|
}
|