...
|
...
|
@@ -341,6 +341,14 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int |
|
|
} else {
|
|
|
if count > 0 {
|
|
|
for _, cooperationProjectModel := range cooperationProjectModels {
|
|
|
if v, ok := queryOptions["isSkipFetchProjectModel"]; ok && v.(bool) {
|
|
|
if cooperationProject, err := transform.TransformToCooperationProjectDomainModelFromPgModels(cooperationProjectModel, &models.CooperationMode{}); err != nil {
|
|
|
return 0, cooperationProjects, err
|
|
|
} else {
|
|
|
cooperationProjects = append(cooperationProjects, cooperationProject)
|
|
|
}
|
|
|
continue
|
|
|
}
|
|
|
// 获取共创模式
|
|
|
var cooperationModeModels []*models.CooperationMode
|
|
|
cooperationModeQuery := tx.Model(&cooperationModeModels)
|
...
|
...
|
|