[後端] 修改年份結束日期
This commit is contained in:
		
							parent
							
								
									a8e836451a
								
							
						
					
					
						commit
						8c0738addf
					
				@ -69,7 +69,7 @@ namespace FrontendWebApi.ApiControllers
 | 
			
		||||
                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" ? input.endTime + "-01-01"
 | 
			
		||||
                                : input.tableType == "year" ? (Int32.Parse(input.endTime) + 1).ToString() + "-01-01"
 | 
			
		||||
                                : null;
 | 
			
		||||
                string sqlWhere = "";
 | 
			
		||||
                string sqlGroup = "";
 | 
			
		||||
@ -194,7 +194,7 @@ namespace FrontendWebApi.ApiControllers
 | 
			
		||||
                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" ? input.endTime + "-01-01"
 | 
			
		||||
                                : input.tableType == "year" ? (Int32.Parse(input.endTime) + 1).ToString() + "-01-01"
 | 
			
		||||
                                : null;
 | 
			
		||||
                string sqlWhere = "";
 | 
			
		||||
                string sqlGroup = "";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user