|
...
|
...
|
@@ -30,6 +30,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
|
|
DividendsIncentivesStage: v.DividendsStage,
|
|
|
|
DividendsIncentivesStageEnd: time.Unix(int64(v.DividendsStageEnd/1e3), 0),
|
|
|
|
DividendsIncentivesStageStart: time.Unix(int64(v.DividendsStageStart/1e3), 0),
|
|
|
|
Remarks: v.Remarks,
|
|
|
|
}
|
|
|
|
rules1 = append(rules1, r)
|
|
|
|
}
|
|
...
|
...
|
@@ -43,6 +44,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
|
|
MoneyIncentivesTime: time.Unix(int64(v.MoneyIncentivesTime/1e3), 0),
|
|
|
|
ReferrerPercentage: v.ReferrerPercentage,
|
|
|
|
SalesmanPercentage: v.SalesmanPercentage,
|
|
|
|
Remarks: v.Remarks,
|
|
|
|
}
|
|
|
|
rules2 = append(rules2, r)
|
|
|
|
}
|
|
...
|
...
|
@@ -61,7 +63,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
|
|
MoneyIncentivesRules: rules2,
|
|
|
|
DividendsIncentivesRules: rules1,
|
|
|
|
Undertakers: underTakers,
|
|
|
|
RelevantIds: createCooperationContractCommand.RelevantIds,
|
|
|
|
RelevantIds: createCooperationContractCommand.RelationUser,
|
|
|
|
CooperationContractDescription: createCooperationContractCommand.CooperationContract.CooperationContractDescription,
|
|
|
|
CooperationProjectNumber: createCooperationContractCommand.CooperationContract.CooperationProjectNumber,
|
|
|
|
DepartmentId: createCooperationContractCommand.CooperationContract.DepartmentId,
|
|
...
|
...
|
@@ -181,13 +183,13 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
|
underTakers = append(underTakers, u)
|
|
|
|
}
|
|
|
|
result, err := creationCooperationGateway.CooperationContractUpdate(allied_creation_cooperation.ReqCooperationContractUpdate{
|
|
|
|
CooperationContractId: updateCooperationContractCommand.CooperationContract.CooperationContractId,
|
|
|
|
MoneyIncentivesRules: rules2,
|
|
|
|
DividendsIncentivesRules: rules1,
|
|
|
|
Undertakers: underTakers,
|
|
|
|
RelevantIds: updateCooperationContractCommand.RelevantIds,
|
|
|
|
CooperationContractDescription: updateCooperationContractCommand.CooperationContract.CooperationContractDescription,
|
|
|
|
CooperationContractNumber: updateCooperationContractCommand.CooperationContract.CooperationContractNumber,
|
|
|
|
CooperationContractId: updateCooperationContractCommand.CooperationContract.CooperationContractId,
|
|
|
|
MoneyIncentivesRules: rules2,
|
|
|
|
DividendsIncentivesRules: rules1,
|
|
|
|
Undertakers: underTakers,
|
|
|
|
RelevantIds: updateCooperationContractCommand.RelationUser,
|
|
|
|
CooperationContractDescription: updateCooperationContractCommand.CooperationContract.CooperationContractDescription,
|
|
|
|
// CooperationContractNumber: updateCooperationContractCommand.CooperationContract.CooperationContractNumber,
|
|
|
|
CooperationProjectNumber: updateCooperationContractCommand.CooperationContract.CooperationProjectNumber,
|
|
|
|
DepartmentId: updateCooperationContractCommand.CooperationContract.DepartmentId,
|
|
|
|
CooperationContractUndertakerType: updateCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
...
|
...
|
|