...
|
...
|
@@ -68,23 +68,23 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
|
|
// 获取操作人
|
|
|
var operator *domain.User
|
|
|
if data, err := userService.OperatorFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId, createCooperationProjectCommand.UserId); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取操作人失败")
|
|
|
} else {
|
|
|
operator = data
|
|
|
}
|
|
|
|
|
|
// Sponsor
|
|
|
// 获取发起人
|
|
|
var sponsor *domain.User
|
|
|
if data, err := userService.UserFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId, createCooperationProjectCommand.SponsorUid); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取发起人失败")
|
|
|
} else {
|
|
|
sponsor = data
|
|
|
}
|
|
|
|
|
|
// Publisher
|
|
|
// 获取发布人
|
|
|
var publisher *domain.User
|
|
|
if data, err := userService.UserFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId, createCooperationProjectCommand.PublisherUid); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取发布人失败")
|
|
|
} else {
|
|
|
publisher = data
|
|
|
}
|
...
|
...
|
@@ -100,7 +100,7 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
|
|
// 获取公司信息
|
|
|
var company *domain.Company
|
|
|
if data, err := companyService.CompanyFrom(createCooperationProjectCommand.CompanyId); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取公司信息失败")
|
|
|
} else {
|
|
|
company = data
|
|
|
}
|
...
|
...
|
@@ -116,15 +116,15 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
|
|
// 获取组织机构信息
|
|
|
var organization *domain.Org
|
|
|
if data, err := organizationService.OrgFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取组织机构信息失败")
|
|
|
} else {
|
|
|
organization = data
|
|
|
}
|
|
|
|
|
|
// 获取组织机构信息
|
|
|
// 获取部门信息
|
|
|
var department *domain.Org
|
|
|
if data, err := organizationService.OrgFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.DepartmentId); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取部门信息失败")
|
|
|
} else {
|
|
|
department = data
|
|
|
}
|
...
|
...
|
|