File tree Expand file tree Collapse file tree
backend/plugins/zentao/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,10 +90,11 @@ type ZentaoProject struct {
9090 TeamCount int `json:"teamCount" mapstructure:"teamCount"`
9191 LeftTasks string `json:"leftTasks" mapstructure:"leftTasks"`
9292 //TeamMembers []interface{} `json:"teamMembers" gorm:"-"`
93- TotalEstimate float64 `json:"totalEstimate" mapstructure:"totalEstimate"`
94- TotalConsumed float64 `json:"totalConsumed" mapstructure:"totalConsumed"`
95- TotalLeft float64 `json:"totalLeft" mapstructure:"totalLeft"`
96- Progress interface {} `json:"progress" mapstructure:"progress"`
93+ TotalEstimate float64 `json:"totalEstimate" mapstructure:"totalEstimate"`
94+ TotalConsumed float64 `json:"totalConsumed" mapstructure:"totalConsumed"`
95+ TotalLeft float64 `json:"totalLeft" mapstructure:"totalLeft"`
96+ Progress float64
97+ ProgressRes interface {} `json:"progress" mapstructure:"progress" gorm:"-"`
9798 ScopeConfigId uint64 `json:"scopeConfigId,omitempty" mapstructure:"scopeConfigId"`
9899}
99100
@@ -118,7 +119,7 @@ type Hours struct {
118119}
119120
120121func (p * ZentaoProject ) fixProgressField () {
121- p .Progress = cast .ToFloat64 (p .Progress )
122+ p .Progress = cast .ToFloat64 (p .ProgressRes )
122123}
123124
124125func (p * ZentaoProject ) fixClosedByResField () {
You can’t perform that action at this time.
0 commit comments