...
|
...
|
@@ -67,7 +67,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
|
CooperationContractUndertakerType: createCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
|
|
CooperationContractName: createCooperationContractCommand.CooperationContract.CooperationContractName,
|
|
|
CooperationModeNumber: createCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
|
|
SponsorUid: createCooperationContractCommand.CooperationContract.SponsorUid,
|
|
|
SponsorUid: createCooperationContractCommand.CooperationContract.SponsorUserId,
|
|
|
CompanyId: int(createCooperationContractCommand.Operator.CompanyId),
|
|
|
UserId: int(createCooperationContractCommand.Operator.UserId),
|
|
|
UserBaseId: int(createCooperationContractCommand.Operator.UserBaseId),
|
...
|
...
|
@@ -141,10 +141,10 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
CooperationContractNumber: v.CooperationContractNumber,
|
|
|
ReferrerPercentage: v.ReferrerPercentage,
|
|
|
SalesmanPercentage: v.SalesmanPercentage,
|
|
|
DividendsIncentivesPercentage: v.DividendsIncentivesPercentage,
|
|
|
DividendsIncentivesStage: v.DividendsIncentivesStage,
|
|
|
DividendsIncentivesStageEnd: time.Unix(int64(v.DividendsIncentivesStageEnd/1e3), 0),
|
|
|
DividendsIncentivesStageStart: time.Unix(int64(v.DividendsIncentivesStageStart/1e3), 0),
|
|
|
DividendsIncentivesPercentage: v.DividendsPercentage,
|
|
|
DividendsIncentivesStage: v.DividendsStage,
|
|
|
DividendsIncentivesStageEnd: time.Unix(int64(v.DividendsStageEnd/1e3), 0),
|
|
|
DividendsIncentivesStageStart: time.Unix(int64(v.DividendsStageStart/1e3), 0),
|
|
|
}
|
|
|
rules1 = append(rules1, r)
|
|
|
}
|
...
|
...
|
@@ -184,7 +184,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
CooperationContractUndertakerType: updateCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
|
|
CooperationContractName: updateCooperationContractCommand.CooperationContract.CooperationContractName,
|
|
|
CooperationModeNumber: updateCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
|
|
SponsorUid: updateCooperationContractCommand.CooperationContract.SponsorUid,
|
|
|
SponsorUid: updateCooperationContractCommand.CooperationContract.SponsorUserId,
|
|
|
CompanyId: int(updateCooperationContractCommand.Operator.CompanyId),
|
|
|
UserId: int(updateCooperationContractCommand.Operator.UserId),
|
|
|
UserBaseId: int(updateCooperationContractCommand.Operator.UserBaseId),
|
...
|
...
|
|