...
|
...
|
@@ -49,6 +49,22 @@ func (cooperationContractChangeLogService *CooperationContractChangeLogService) |
|
|
company = data
|
|
|
}
|
|
|
|
|
|
// 组织机构REST服务初始化
|
|
|
var organizationService service.OrgService
|
|
|
if value, err := factory.CreateOrganizationService(map[string]interface{}{}); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
} else {
|
|
|
organizationService = value
|
|
|
}
|
|
|
|
|
|
// 获取组织机构信息
|
|
|
var organization *domain.Org
|
|
|
if data, err := organizationService.OrgFrom(createCooperationContractChangeLogCommand.CompanyId, createCooperationContractChangeLogCommand.OrgId); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
} else {
|
|
|
organization = data
|
|
|
}
|
|
|
|
|
|
// 用户REST服务初始化
|
|
|
var userService service.UserService
|
|
|
if value, err := factory.CreateUserService(map[string]interface{}{}); err != nil {
|
...
|
...
|
@@ -82,6 +98,7 @@ func (cooperationContractChangeLogService *CooperationContractChangeLogService) |
|
|
Undertakers: createCooperationContractChangeLogCommand.Undertakers,
|
|
|
CooperationContractNumber: createCooperationContractChangeLogCommand.CooperationContractNumber,
|
|
|
Company: company,
|
|
|
Org: organization,
|
|
|
Operator: operator,
|
|
|
UpdatedAt: time.Time{},
|
|
|
DeletedAt: time.Time{},
|
...
|
...
|
|