|
@@ -67,7 +67,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
@@ -67,7 +67,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
67
|
CooperationContractUndertakerType: createCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
67
|
CooperationContractUndertakerType: createCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
68
|
CooperationContractName: createCooperationContractCommand.CooperationContract.CooperationContractName,
|
68
|
CooperationContractName: createCooperationContractCommand.CooperationContract.CooperationContractName,
|
69
|
CooperationModeNumber: createCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
69
|
CooperationModeNumber: createCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
70
|
- SponsorUid: createCooperationContractCommand.CooperationContract.SponsorUid,
|
70
|
+ SponsorUid: createCooperationContractCommand.CooperationContract.SponsorUserId,
|
71
|
CompanyId: int(createCooperationContractCommand.Operator.CompanyId),
|
71
|
CompanyId: int(createCooperationContractCommand.Operator.CompanyId),
|
72
|
UserId: int(createCooperationContractCommand.Operator.UserId),
|
72
|
UserId: int(createCooperationContractCommand.Operator.UserId),
|
73
|
UserBaseId: int(createCooperationContractCommand.Operator.UserBaseId),
|
73
|
UserBaseId: int(createCooperationContractCommand.Operator.UserBaseId),
|
|
@@ -141,10 +141,10 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
@@ -141,10 +141,10 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
141
|
CooperationContractNumber: v.CooperationContractNumber,
|
141
|
CooperationContractNumber: v.CooperationContractNumber,
|
142
|
ReferrerPercentage: v.ReferrerPercentage,
|
142
|
ReferrerPercentage: v.ReferrerPercentage,
|
143
|
SalesmanPercentage: v.SalesmanPercentage,
|
143
|
SalesmanPercentage: v.SalesmanPercentage,
|
144
|
- DividendsIncentivesPercentage: v.DividendsIncentivesPercentage,
|
|
|
145
|
- DividendsIncentivesStage: v.DividendsIncentivesStage,
|
|
|
146
|
- DividendsIncentivesStageEnd: time.Unix(int64(v.DividendsIncentivesStageEnd/1e3), 0),
|
|
|
147
|
- DividendsIncentivesStageStart: time.Unix(int64(v.DividendsIncentivesStageStart/1e3), 0),
|
144
|
+ DividendsIncentivesPercentage: v.DividendsPercentage,
|
|
|
145
|
+ DividendsIncentivesStage: v.DividendsStage,
|
|
|
146
|
+ DividendsIncentivesStageEnd: time.Unix(int64(v.DividendsStageEnd/1e3), 0),
|
|
|
147
|
+ DividendsIncentivesStageStart: time.Unix(int64(v.DividendsStageStart/1e3), 0),
|
148
|
}
|
148
|
}
|
149
|
rules1 = append(rules1, r)
|
149
|
rules1 = append(rules1, r)
|
150
|
}
|
150
|
}
|
|
@@ -184,7 +184,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
@@ -184,7 +184,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
184
|
CooperationContractUndertakerType: updateCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
184
|
CooperationContractUndertakerType: updateCooperationContractCommand.CooperationContract.CooperationContractUndertakerType,
|
185
|
CooperationContractName: updateCooperationContractCommand.CooperationContract.CooperationContractName,
|
185
|
CooperationContractName: updateCooperationContractCommand.CooperationContract.CooperationContractName,
|
186
|
CooperationModeNumber: updateCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
186
|
CooperationModeNumber: updateCooperationContractCommand.CooperationContract.CooperationModeNumber,
|
187
|
- SponsorUid: updateCooperationContractCommand.CooperationContract.SponsorUid,
|
187
|
+ SponsorUid: updateCooperationContractCommand.CooperationContract.SponsorUserId,
|
188
|
CompanyId: int(updateCooperationContractCommand.Operator.CompanyId),
|
188
|
CompanyId: int(updateCooperationContractCommand.Operator.CompanyId),
|
189
|
UserId: int(updateCooperationContractCommand.Operator.UserId),
|
189
|
UserId: int(updateCooperationContractCommand.Operator.UserId),
|
190
|
UserBaseId: int(updateCooperationContractCommand.Operator.UserBaseId),
|
190
|
UserBaseId: int(updateCooperationContractCommand.Operator.UserBaseId),
|