作者 陈志颖

fix:共创项目编号查询

... ... @@ -34,7 +34,6 @@ type SearchCooperationProjectQuery struct {
}
func (searchCooperationProjectQuery *SearchCooperationProjectQuery) Valid(validation *validation.Validation) {
//validation.SetError("CustomValid", "未实现的自定义认证")
}
func (searchCooperationProjectQuery *SearchCooperationProjectQuery) ValidateQuery() error {
... ...
... ... @@ -269,6 +269,7 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int
if count, err := query.SelectAndCount(); err != nil {
return 0, cooperationProjects, err
} else {
if count > 0 {
for _, cooperationProjectModel := range cooperationProjectModels {
// 获取共创模式
cooperationModeModel := new(models.CooperationMode)
... ... @@ -282,6 +283,7 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int
cooperationProjects = append(cooperationProjects, cooperationProject)
}
}
}
return int64(count), cooperationProjects, nil
}
}
... ...