...
|
...
|
@@ -61,14 +61,17 @@ 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,
|
|
|
CooperationProjectNumber: createCooperationContractCommand.CooperationContract.CooperationProjectNumber,
|
|
|
DepartmentId: createCooperationContractCommand.CooperationContract.DepartmentId,
|
|
|
CooperationContractUndertakerType: createCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
|
|
CooperationContractName: createCooperationContractCommand.CooperationContract.CooperationContractName,
|
|
|
CooperationModeNumber: createCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
|
|
SponsorUid: createCooperationContractCommand.CooperationContract.SponsorUid,
|
|
|
CompanyId: int(createCooperationContractCommand.Operator.CompanyId),
|
|
|
UserId: int(createCooperationContractCommand.Operator.UserId),
|
|
|
UserBaseId: int(createCooperationContractCommand.Operator.UserBaseId),
|
|
|
OrgId: int(createCooperationContractCommand.Operator.OrgId),
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
@@ -167,19 +170,23 @@ 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,
|
|
|
CompanyId: int(updateCooperationContractCommand.Operator.CompanyId),
|
|
|
UserId: int(updateCooperationContractCommand.Operator.UserId),
|
|
|
UserBaseId: int(updateCooperationContractCommand.Operator.UserBaseId),
|
|
|
OrgId: int(updateCooperationContractCommand.Operator.OrgId),
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
|