|
@@ -57,7 +57,7 @@ func ToCooperationContractItem(param *allied_creation_cooperation.CooperationCon |
|
@@ -57,7 +57,7 @@ func ToCooperationContractItem(param *allied_creation_cooperation.CooperationCon |
57
|
}
|
57
|
}
|
58
|
|
58
|
|
59
|
type MoneyIncentivesRule struct {
|
59
|
type MoneyIncentivesRule struct {
|
60
|
- MoneyIncentivesRuleId int `json:"moneyIncentivesRuleId"`
|
60
|
+ MoneyIncentivesRuleId int `json:"moneyIncentivesRuleId,string"`
|
61
|
CooperationContractNumber string `json:"cooperationContractNumber"` // 关联的共创合约编号
|
61
|
CooperationContractNumber string `json:"cooperationContractNumber"` // 关联的共创合约编号
|
62
|
MoneyIncentivesAmount float64 `json:"moneyIncentivesAmount"` // 激励金额
|
62
|
MoneyIncentivesAmount float64 `json:"moneyIncentivesAmount"` // 激励金额
|
63
|
MoneyIncentivesStage int `json:"moneyIncentivesStage"` // 金额激励阶段
|
63
|
MoneyIncentivesStage int `json:"moneyIncentivesStage"` // 金额激励阶段
|
|
@@ -67,14 +67,14 @@ type MoneyIncentivesRule struct { |
|
@@ -67,14 +67,14 @@ type MoneyIncentivesRule struct { |
67
|
}
|
67
|
}
|
68
|
|
68
|
|
69
|
type DividendsIncentivesRule struct {
|
69
|
type DividendsIncentivesRule struct {
|
70
|
- DividendsIncentivesRuleId int `json:"dividendsIncentivesRuleId"`
|
|
|
71
|
- CooperationContractNumber string `json:"cooperationContractNumber"` // 关联的项目合约编号
|
|
|
72
|
- ReferrerPercentage float64 `json:"referrerPercentage"` // 推荐人抽成比例
|
|
|
73
|
- SalesmanPercentage float64 `json:"salesmanPercentage"` // 业务员抽成比例
|
|
|
74
|
- DividendsIncentivesPercentage float64 `json:"dividendsIncentivesPercentage"` // 分红规则激励百分点
|
|
|
75
|
- DividendsIncentivesStage int `json:"dividendsIncentivesStage,string"` // 分红规则激励阶段,
|
|
|
76
|
- DividendsIncentivesStageEnd int64 `json:"dividendsIncentivesStageEnd"` // 分红规则激励阶段结束
|
|
|
77
|
- DividendsIncentivesStageStart int64 `json:"dividendsIncentivesStageStart"` // 分红规则激励阶段开始
|
70
|
+ DividendsIncentivesRuleId int `json:"dividendsIncentivesRuleId,string"`
|
|
|
71
|
+ CooperationContractNumber string `json:"cooperationContractNumber"` // 关联的项目合约编号
|
|
|
72
|
+ ReferrerPercentage float64 `json:"referrerPercentage"` // 推荐人抽成比例
|
|
|
73
|
+ SalesmanPercentage float64 `json:"salesmanPercentage"` // 业务员抽成比例
|
|
|
74
|
+ DividendsPercentage float64 `json:"dividendsPercentage"` // 分红规则激励百分点
|
|
|
75
|
+ DividendsStage int `json:"dividendsStage,string"` // 分红规则激励阶段,
|
|
|
76
|
+ DividendsStageEnd int64 `json:"dividendsStageEnd"` // 分红规则激励阶段结束
|
|
|
77
|
+ DividendsStageStart int64 `json:"dividendsStageStart"` // 分红规则激励阶段开始
|
78
|
}
|
78
|
}
|
79
|
|
79
|
|
80
|
type Relevant struct {
|
80
|
type Relevant struct {
|
|
@@ -126,14 +126,14 @@ func ToCooperationContractInfo(param *allied_creation_cooperation.CooperationCon |
|
@@ -126,14 +126,14 @@ func ToCooperationContractInfo(param *allied_creation_cooperation.CooperationCon |
126
|
|
126
|
|
127
|
for _, v := range param.DividendsIncentivesRules {
|
127
|
for _, v := range param.DividendsIncentivesRules {
|
128
|
r := DividendsIncentivesRule{
|
128
|
r := DividendsIncentivesRule{
|
129
|
- DividendsIncentivesRuleId: v.DividendsIncentivesRuleId,
|
|
|
130
|
- CooperationContractNumber: v.CooperationContractNumber,
|
|
|
131
|
- ReferrerPercentage: v.ReferrerPercentage,
|
|
|
132
|
- SalesmanPercentage: v.SalesmanPercentage,
|
|
|
133
|
- DividendsIncentivesPercentage: v.DividendsIncentivesPercentage,
|
|
|
134
|
- DividendsIncentivesStage: v.DividendsIncentivesStage,
|
|
|
135
|
- DividendsIncentivesStageEnd: v.DividendsIncentivesStageEnd.UnixNano() / 1e6,
|
|
|
136
|
- DividendsIncentivesStageStart: v.DividendsIncentivesStageStart.UnixNano() / 1e6,
|
129
|
+ DividendsIncentivesRuleId: v.DividendsIncentivesRuleId,
|
|
|
130
|
+ CooperationContractNumber: v.CooperationContractNumber,
|
|
|
131
|
+ ReferrerPercentage: v.ReferrerPercentage,
|
|
|
132
|
+ SalesmanPercentage: v.SalesmanPercentage,
|
|
|
133
|
+ DividendsPercentage: v.DividendsIncentivesPercentage,
|
|
|
134
|
+ DividendsStage: v.DividendsIncentivesStage,
|
|
|
135
|
+ DividendsStageEnd: v.DividendsIncentivesStageEnd.UnixNano() / 1e6,
|
|
|
136
|
+ DividendsStageStart: v.DividendsIncentivesStageStart.UnixNano() / 1e6,
|
137
|
}
|
137
|
}
|
138
|
dividendsIncentivesRules = append(dividendsIncentivesRules, r)
|
138
|
dividendsIncentivesRules = append(dividendsIncentivesRules, r)
|
139
|
}
|
139
|
}
|