|
@@ -61,14 +61,14 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
@@ -61,14 +61,14 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
61
|
DividendsIncentivesRules: rules1,
|
61
|
DividendsIncentivesRules: rules1,
|
|
62
|
Undertakers: underTakers,
|
62
|
Undertakers: underTakers,
|
|
63
|
RelevantIds: createCooperationContractCommand.RelevantIds,
|
63
|
RelevantIds: createCooperationContractCommand.RelevantIds,
|
|
64
|
- CooperationContractDescription: createCooperationContractCommand.CooperationContractDescription,
|
|
|
|
65
|
- CooperationContractNumber: createCooperationContractCommand.CooperationContractNumber,
|
|
|
|
66
|
- CooperationProjectNumber: createCooperationContractCommand.CooperationProjectNumber,
|
|
|
|
67
|
- DepartmentId: createCooperationContractCommand.DepartmentId,
|
|
|
|
68
|
- CooperationContractUndertakerType: createCooperationContractCommand.CooperationContractUndertakerType,
|
|
|
|
69
|
- CooperationContractName: createCooperationContractCommand.CooperationContractName,
|
|
|
|
70
|
- CooperationModeNumber: createCooperationContractCommand.CooperationModeNumber,
|
|
|
|
71
|
- SponsorUid: createCooperationContractCommand.SponsorUid,
|
64
|
+ CooperationContractDescription: createCooperationContractCommand.CooperationContract.CooperationContractDescription,
|
|
|
|
65
|
+ CooperationContractNumber: createCooperationContractCommand.CooperationContract.CooperationContractNumber,
|
|
|
|
66
|
+ CooperationProjectNumber: createCooperationContractCommand.CooperationContract.CooperationProjectNumber,
|
|
|
|
67
|
+ DepartmentId: createCooperationContractCommand.CooperationContract.DepartmentId,
|
|
|
|
68
|
+ CooperationContractUndertakerType: createCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
|
|
|
69
|
+ CooperationContractName: createCooperationContractCommand.CooperationContract.CooperationContractName,
|
|
|
|
70
|
+ CooperationModeNumber: createCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
|
|
|
71
|
+ SponsorUid: createCooperationContractCommand.CooperationContract.SponsorUid,
|
|
72
|
})
|
72
|
})
|
|
73
|
if err != nil {
|
73
|
if err != nil {
|
|
74
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
74
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
@@ -167,19 +167,19 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
@@ -167,19 +167,19 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
167
|
underTakers = append(underTakers, u)
|
167
|
underTakers = append(underTakers, u)
|
|
168
|
}
|
168
|
}
|
|
169
|
_, err := creationCooperationGateway.CooperationContractUpdate(allied_creation_cooperation.ReqCooperationContractUpdate{
|
169
|
_, err := creationCooperationGateway.CooperationContractUpdate(allied_creation_cooperation.ReqCooperationContractUpdate{
|
|
170
|
- CooperationContractId: updateCooperationContractCommand.CooperationContractId,
|
170
|
+ CooperationContractId: updateCooperationContractCommand.CooperationContract.CooperationContractId,
|
|
171
|
MoneyIncentivesRules: rules2,
|
171
|
MoneyIncentivesRules: rules2,
|
|
172
|
DividendsIncentivesRules: rules1,
|
172
|
DividendsIncentivesRules: rules1,
|
|
173
|
Undertakers: underTakers,
|
173
|
Undertakers: underTakers,
|
|
174
|
RelevantIds: updateCooperationContractCommand.RelevantIds,
|
174
|
RelevantIds: updateCooperationContractCommand.RelevantIds,
|
|
175
|
- CooperationContractDescription: updateCooperationContractCommand.CooperationContractDescription,
|
|
|
|
176
|
- CooperationContractNumber: updateCooperationContractCommand.CooperationContractNumber,
|
|
|
|
177
|
- CooperationProjectNumber: updateCooperationContractCommand.CooperationProjectNumber,
|
|
|
|
178
|
- DepartmentId: updateCooperationContractCommand.DepartmentId,
|
|
|
|
179
|
- CooperationContractUndertakerType: updateCooperationContractCommand.CooperationContractUndertakerType,
|
|
|
|
180
|
- CooperationContractName: updateCooperationContractCommand.CooperationContractName,
|
|
|
|
181
|
- CooperationModeNumber: updateCooperationContractCommand.CooperationModeNumber,
|
|
|
|
182
|
- SponsorUid: updateCooperationContractCommand.SponsorUid,
|
175
|
+ CooperationContractDescription: updateCooperationContractCommand.CooperationContract.CooperationContractDescription,
|
|
|
|
176
|
+ CooperationContractNumber: updateCooperationContractCommand.CooperationContract.CooperationContractNumber,
|
|
|
|
177
|
+ CooperationProjectNumber: updateCooperationContractCommand.CooperationContract.CooperationProjectNumber,
|
|
|
|
178
|
+ DepartmentId: updateCooperationContractCommand.CooperationContract.DepartmentId,
|
|
|
|
179
|
+ CooperationContractUndertakerType: updateCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
|
|
|
180
|
+ CooperationContractName: updateCooperationContractCommand.CooperationContract.CooperationContractName,
|
|
|
|
181
|
+ CooperationModeNumber: updateCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
|
|
|
182
|
+ SponsorUid: updateCooperationContractCommand.CooperationContract.SponsorUid,
|
|
183
|
})
|
183
|
})
|
|
184
|
if err != nil {
|
184
|
if err != nil {
|
|
185
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
185
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|