...
|
...
|
@@ -28,8 +28,8 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
|
SalesmanPercentage: v.SalesmanPercentage,
|
|
|
DividendsIncentivesPercentage: v.DividendsIncentivesPercentage,
|
|
|
DividendsIncentivesStage: v.DividendsIncentivesStage,
|
|
|
DividendsIncentivesStageEnd: time.Unix(int64(v.DividendsIncentivesStageEnd), 0),
|
|
|
DividendsIncentivesStageStart: time.Unix(int64(v.DividendsIncentivesStageStart), 0),
|
|
|
DividendsIncentivesStageEnd: time.Unix(int64(v.DividendsIncentivesStageEnd/1e3), 0),
|
|
|
DividendsIncentivesStageStart: time.Unix(int64(v.DividendsIncentivesStageStart/1e3), 0),
|
|
|
}
|
|
|
rules1 = append(rules1, r)
|
|
|
}
|
...
|
...
|
@@ -40,7 +40,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
|
CooperationContractNumber: v.CooperationContractNumber,
|
|
|
MoneyIncentivesAmount: v.MoneyIncentivesAmount,
|
|
|
MoneyIncentivesStage: v.MoneyIncentivesStage,
|
|
|
MoneyIncentivesTime: time.Unix(int64(v.MoneyIncentivesTime), 0),
|
|
|
MoneyIncentivesTime: time.Unix(int64(v.MoneyIncentivesTime/1e3), 0),
|
|
|
ReferrerPercentage: v.ReferrerPercentage,
|
|
|
SalesmanPercentage: v.SalesmanPercentage,
|
|
|
}
|
...
|
...
|
@@ -143,8 +143,8 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
SalesmanPercentage: v.SalesmanPercentage,
|
|
|
DividendsIncentivesPercentage: v.DividendsIncentivesPercentage,
|
|
|
DividendsIncentivesStage: v.DividendsIncentivesStage,
|
|
|
DividendsIncentivesStageEnd: time.Unix(int64(v.DividendsIncentivesStageEnd), 0),
|
|
|
DividendsIncentivesStageStart: time.Unix(int64(v.DividendsIncentivesStageStart), 0),
|
|
|
DividendsIncentivesStageEnd: time.Unix(int64(v.DividendsIncentivesStageEnd/1e3), 0),
|
|
|
DividendsIncentivesStageStart: time.Unix(int64(v.DividendsIncentivesStageStart/1e3), 0),
|
|
|
}
|
|
|
rules1 = append(rules1, r)
|
|
|
}
|
...
|
...
|
@@ -155,7 +155,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
CooperationContractNumber: v.CooperationContractNumber,
|
|
|
MoneyIncentivesAmount: v.MoneyIncentivesAmount,
|
|
|
MoneyIncentivesStage: v.MoneyIncentivesStage,
|
|
|
MoneyIncentivesTime: time.Unix(int64(v.MoneyIncentivesTime), 0),
|
|
|
MoneyIncentivesTime: time.Unix(int64(v.MoneyIncentivesTime/1e3), 0),
|
|
|
ReferrerPercentage: v.ReferrerPercentage,
|
|
|
SalesmanPercentage: v.SalesmanPercentage,
|
|
|
}
|
...
|
...
|
|