|
|
@@ -189,8 +189,8 @@ func getQuarterGoalReportData(ctx context.Context, dataType string, params *map[
|
|
|
return nil, fmt.Errorf("请输入年度")
|
|
|
}
|
|
|
p := *params
|
|
|
- year, _ := p["year"].(int)
|
|
|
- quarter, _ := p["quarter"].(int)
|
|
|
+ year := gconv.Int(p["year"])
|
|
|
+ quarter := gconv.Int(p["quarter"])
|
|
|
if year == 0 {
|
|
|
return nil, fmt.Errorf("请输入年度")
|
|
|
}
|
|
|
@@ -258,7 +258,7 @@ func getQuarterGoalReportData(ctx context.Context, dataType string, params *map[
|
|
|
var reportData home.ReportData
|
|
|
for _, c := range productLineCode {
|
|
|
reportData.XData = append(reportData.XData, productLine[c])
|
|
|
- reportData.YDataTarget = append(reportData.YDataTarget, goal[c]/10000)
|
|
|
+ reportData.YDataTarget = append(reportData.YDataTarget, goal[c])
|
|
|
reportData.YDataReal = append(reportData.YDataReal, got[c]/10000)
|
|
|
}
|
|
|
return &reportData, nil
|