...
|
...
|
@@ -61,14 +61,14 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
|
DividendsIncentivesRules: rules1,
|
|
|
Undertakers: underTakers,
|
|
|
RelevantIds: createCooperationContractCommand.RelevantIds,
|
|
|
CooperationContractDescription: createCooperationContractCommand.CooperationContractDescription,
|
|
|
CooperationContractNumber: createCooperationContractCommand.CooperationContractNumber,
|
|
|
CooperationProjectNumber: createCooperationContractCommand.CooperationProjectNumber,
|
|
|
DepartmentId: createCooperationContractCommand.DepartmentId,
|
|
|
CooperationContractUndertakerType: createCooperationContractCommand.CooperationContractUndertakerType,
|
|
|
CooperationContractName: createCooperationContractCommand.CooperationContractName,
|
|
|
CooperationModeNumber: createCooperationContractCommand.CooperationModeNumber,
|
|
|
SponsorUid: createCooperationContractCommand.SponsorUid,
|
|
|
CooperationContractDescription: createCooperationContractCommand.CooperationContract.CooperationContractDescription,
|
|
|
CooperationContractNumber: createCooperationContractCommand.CooperationContract.CooperationContractNumber,
|
|
|
CooperationProjectNumber: createCooperationContractCommand.CooperationContract.CooperationProjectNumber,
|
|
|
DepartmentId: createCooperationContractCommand.CooperationContract.DepartmentId,
|
|
|
CooperationContractUndertakerType: createCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
|
|
CooperationContractName: createCooperationContractCommand.CooperationContract.CooperationContractName,
|
|
|
CooperationModeNumber: createCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
|
|
SponsorUid: createCooperationContractCommand.CooperationContract.SponsorUid,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
@@ -167,19 +167,19 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
underTakers = append(underTakers, u)
|
|
|
}
|
|
|
_, err := creationCooperationGateway.CooperationContractUpdate(allied_creation_cooperation.ReqCooperationContractUpdate{
|
|
|
CooperationContractId: updateCooperationContractCommand.CooperationContractId,
|
|
|
CooperationContractId: updateCooperationContractCommand.CooperationContract.CooperationContractId,
|
|
|
MoneyIncentivesRules: rules2,
|
|
|
DividendsIncentivesRules: rules1,
|
|
|
Undertakers: underTakers,
|
|
|
RelevantIds: updateCooperationContractCommand.RelevantIds,
|
|
|
CooperationContractDescription: updateCooperationContractCommand.CooperationContractDescription,
|
|
|
CooperationContractNumber: updateCooperationContractCommand.CooperationContractNumber,
|
|
|
CooperationProjectNumber: updateCooperationContractCommand.CooperationProjectNumber,
|
|
|
DepartmentId: updateCooperationContractCommand.DepartmentId,
|
|
|
CooperationContractUndertakerType: updateCooperationContractCommand.CooperationContractUndertakerType,
|
|
|
CooperationContractName: updateCooperationContractCommand.CooperationContractName,
|
|
|
CooperationModeNumber: updateCooperationContractCommand.CooperationModeNumber,
|
|
|
SponsorUid: updateCooperationContractCommand.SponsorUid,
|
|
|
CooperationContractDescription: updateCooperationContractCommand.CooperationContract.CooperationContractDescription,
|
|
|
CooperationContractNumber: updateCooperationContractCommand.CooperationContract.CooperationContractNumber,
|
|
|
CooperationProjectNumber: updateCooperationContractCommand.CooperationContract.CooperationProjectNumber,
|
|
|
DepartmentId: updateCooperationContractCommand.CooperationContract.DepartmentId,
|
|
|
CooperationContractUndertakerType: updateCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
|
|
CooperationContractName: updateCooperationContractCommand.CooperationContract.CooperationContractName,
|
|
|
CooperationModeNumber: updateCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
|
|
SponsorUid: updateCooperationContractCommand.CooperationContract.SponsorUid,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
|