...
|
...
|
@@ -560,6 +560,19 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
} else {
|
|
|
userService = value
|
|
|
}
|
|
|
|
|
|
// 获取发起人
|
|
|
var sponsor *domain.User
|
|
|
sponsorUid, _ := strconv.ParseInt(updateCooperationContractCommand.SponsorUid, 10, 64)
|
|
|
if data, err := userService.OperatorFrom(updateCooperationContractCommand.CompanyId, updateCooperationContractCommand.OrgId, sponsorUid); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
} else {
|
|
|
sponsor = data
|
|
|
}
|
|
|
|
|
|
// 更新发起人
|
|
|
cooperationContract.CooperationContractSponsor = sponsor
|
|
|
|
|
|
// 获取相关人
|
|
|
var relevantPeople []*domain.Relevant
|
|
|
for _, relevantPersonUid := range updateCooperationContractCommand.RelevantPeople {
|
...
|
...
|
|