[後端] 修改時間變更問題
This commit is contained in:
parent
bdf9579503
commit
9202b7edf8
@ -67,11 +67,7 @@ namespace FrontendWebApi.ApiControllers
|
||||
? input.startTime + "-01"
|
||||
: input.tableType == "month" || input.tableType == "year" ? input.startTime + "-01-01"
|
||||
: null;
|
||||
var endTime = input.tableType == "day" || input.tableType == "week"
|
||||
? input.startTime.Split("-")[0] + "-" + (Int32.Parse(input.startTime.Split("-")[1]) + 1).ToString().PadLeft(2, '0') + "-01"
|
||||
: input.tableType == "month" ? (Int32.Parse(input.startTime.Split("-")[0]) + 1) + "-01-01"
|
||||
: input.tableType == "year" ? (Int32.Parse(input.endTime) + 1).ToString() + "-01-01"
|
||||
: null;
|
||||
var endTime = DateTime.Parse(startTime).AddMonths(1).ToString("yyyy-MM-dd");
|
||||
string sqlWhere = "";
|
||||
string sqlGroup = "";
|
||||
string sqlAvgRawData = "";
|
||||
@ -239,11 +235,7 @@ namespace FrontendWebApi.ApiControllers
|
||||
? input.startTime + "-01"
|
||||
: input.tableType == "month" || input.tableType == "year" ? input.startTime + "-01-01"
|
||||
: null;
|
||||
var endTime = input.tableType == "day" || input.tableType == "week"
|
||||
? input.startTime.Split("-")[0] + "-" + (Int32.Parse(input.startTime.Split("-")[1]) + 1).ToString().PadLeft(2, '0') + "-01"
|
||||
: input.tableType == "month" ? (Int32.Parse(input.startTime.Split("-")[0]) + 1) + "-01-01"
|
||||
: input.tableType == "year" ? (Int32.Parse(input.endTime) + 1).ToString() + "-01-01"
|
||||
: null;
|
||||
var endTime = DateTime.Parse(startTime).AddMonths(1).ToString("yyyy-MM-dd");
|
||||
string sqlWhere = "";
|
||||
string sqlGroup = "";
|
||||
string sqlAvgRawData = "";
|
||||
|
Loading…
Reference in New Issue
Block a user