作者 陈志颖

fix:共创项目新增

@@ -195,6 +195,7 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro @@ -195,6 +195,7 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro
195 UpdatedAt: time.Time{}, 195 UpdatedAt: time.Time{},
196 DeletedAt: time.Time{}, 196 DeletedAt: time.Time{},
197 CreatedAt: time.Now(), 197 CreatedAt: time.Now(),
  198 + ApplicantCount: 0,
198 } 199 }
199 var cooperationProjectRepository domain.CooperationProjectRepository 200 var cooperationProjectRepository domain.CooperationProjectRepository
200 if value, err := factory.CreateCooperationProjectRepository(map[string]interface{}{ 201 if value, err := factory.CreateCooperationProjectRepository(map[string]interface{}{
@@ -47,7 +47,7 @@ func (repository *CooperationProjectRepository) Save(cooperationProject *domain. @@ -47,7 +47,7 @@ func (repository *CooperationProjectRepository) Save(cooperationProject *domain.
47 "updated_at", 47 "updated_at",
48 "deleted_at", 48 "deleted_at",
49 "created_at", 49 "created_at",
50 - "applicant_account", 50 + "applicant_count",
51 } 51 }
52 insertFieldsSnippet := sqlbuilder.SqlFieldsSnippet(sqlBuildFields) 52 insertFieldsSnippet := sqlbuilder.SqlFieldsSnippet(sqlBuildFields)
53 insertPlaceHoldersSnippet := sqlbuilder.SqlPlaceHoldersSnippet(sqlBuildFields) 53 insertPlaceHoldersSnippet := sqlbuilder.SqlPlaceHoldersSnippet(sqlBuildFields)