[後端] 修改排程儲存資料格式問題

This commit is contained in:
dev02 2023-05-15 17:44:14 +08:00
parent 7271af8b0e
commit 1abd1f3c5b
2 changed files with 4 additions and 4 deletions

View File

@ -1243,7 +1243,7 @@ namespace BackendWorkerService.Quartz.Jobs
arrangeRawData.Add("@avg_rawdata", avg);
break;
case "sum":
var sum = Convert.ToDecimal(real["@val"].ToString());
var sum = Decimal.Parse(real["@val"].ToString(), System.Globalization.NumberStyles.Float);
arrangeRawData.Add("@sum_rawdata", sum);
break;
}
@ -1311,7 +1311,7 @@ namespace BackendWorkerService.Quartz.Jobs
arrangeRawData.Add("@avg_rawdata", avg);
break;
case "sum":
var sum = Convert.ToDecimal(real["@val"].ToString());
var sum = Decimal.Parse(real["@val"].ToString(), System.Globalization.NumberStyles.Float);
arrangeRawData.Add("@sum_rawdata", sum);
break;
}

View File

@ -826,7 +826,7 @@ namespace BackendWorkerService.Services.Implement
arrangeRawData.Add("@avg_rawdata", avg);
break;
case "sum":
var sum = Convert.ToDecimal(real["@val"].ToString());
var sum = Decimal.Parse(real["@val"].ToString(), System.Globalization.NumberStyles.Float);
arrangeRawData.Add("@sum_rawdata", sum);
break;
}
@ -894,7 +894,7 @@ namespace BackendWorkerService.Services.Implement
arrangeRawData.Add("@avg_rawdata", avg);
break;
case "sum":
var sum = Convert.ToDecimal(real["@val"].ToString());
var sum = Decimal.Parse(real["@val"].ToString(), System.Globalization.NumberStyles.Float);
arrangeRawData.Add("@sum_rawdata", sum);
break;
}