...
|
...
|
@@ -15,7 +15,9 @@ type DividendsIncentivesRule struct { |
|
|
// 分红规则激励百分点
|
|
|
DividendsIncentivesPercentage float64 `json:"dividendsIncentivesPercentage"`
|
|
|
// 分红规则激励阶段,阶段返回时需要转换为中文数字
|
|
|
DividendsIncentivesStage int64 `json:"dividendsIncentivesStage,string"`
|
|
|
DividendsIncentivesStage int64 `json:"dividendsIncentivesStage"`
|
|
|
// 分红激励规则阶段中文表示
|
|
|
DividendsIncentivesStageCN string `json:"dividendsIncentivesStageCN"`
|
|
|
// 分红规则激励阶段结束
|
|
|
DividendsIncentivesStageEnd time.Time `json:"dividendsIncentivesStageEnd"`
|
|
|
// 分红规则激励阶段开始
|
...
|
...
|
@@ -73,20 +75,10 @@ func (dividendsIncentivesRule *DividendsIncentivesRule) Update(data map[string]i |
|
|
if dividendsIncentivesStageStart, ok := data["dividendsIncentivesStageStart"]; ok {
|
|
|
dividendsIncentivesRule.DividendsIncentivesStageStart = dividendsIncentivesStageStart.(time.Time)
|
|
|
}
|
|
|
if orgId, ok := data["orgId"]; ok {
|
|
|
dividendsIncentivesRule.Org.OrgId = orgId.(int64)
|
|
|
}
|
|
|
if orgName, ok := data["orgName"]; ok {
|
|
|
dividendsIncentivesRule.Org.OrgName = orgName.(string)
|
|
|
}
|
|
|
if companyId, ok := data["companyId"]; ok {
|
|
|
dividendsIncentivesRule.Org.Company.CompanyId = companyId.(int64)
|
|
|
}
|
|
|
if companyLogo, ok := data["companyLogo"]; ok {
|
|
|
dividendsIncentivesRule.Org.Company.CompanyLogo = companyLogo.(string)
|
|
|
}
|
|
|
if companyName, ok := data["companyName"]; ok {
|
|
|
dividendsIncentivesRule.Org.Company.CompanyName = companyName.(string)
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// NumberToCNNumber 数字转中文数字
|
|
|
func (dividendsIncentivesRule *DividendsIncentivesRule) NumberToCNNumber() (string, error) {
|
|
|
return "", nil
|
|
|
} |
...
|
...
|
|