Home > Back-end > In Java Web layer by id and query data problem in the past a period of time?
In Java Web layer by id and query data problem in the past a period of time?
Time:09-30
When my GetMapping configured to @ GetMapping ("/baseline/{id} "), the browser enter localhost/SSM/baseline/32 returns the id=32 data is normal,
But I want to query data over a long period under the id=32 GetMapping how configuration, such as query id=32 2020-04-01 00:00:00 to 2020-04-01 surf data GetMapping how to configure!
//browser input query historical data @ GetMapping ("/baseline/{id}/{startDateTime} {endDateTime} ") @ ResponseBody Public List FindHistoryData (@ PathVariable (" id "), an Integer id, @ PathVariable (" startDateTime ") Date startDateTime, @ PathVariable (" endDateTime ") Date endDateTime ) { System. The out. Println (" site id: "+ id); List Data=https://bbs.csdn.net/topics/service.findByStation1 (id, startDateTime, endDateTime); The Collections. Reverse (data); return data; }
I not such a configuration,, every brother please give advice or comments??
CodePudding user response:
https://www.liangzl.com/get-article-detail-128536.html Try this one