У меня запущен веб-сервис с угловой передней части. У меня есть дата: с и дата: по критериям поиска.
это мой сервис угловой:
downloadEmailAttachmentsByNumber(from: any, to: any) {
return
this.httpClient.get('/shared/Modal/getAttachmentsByNumber?
from=' + from + '&to=' + to);
}
мой веб-сервис с весны:
@RequestMapping(value = "/getAttachmentsByNumber", method = RequestMethod.GET)
public ResponseEntity<List<Integer>> getAttachmentsByNumber(
@RequestParam(value = "from", required = false) Long from,
@RequestParam(value = "to", required = false) Long to) {
Timestamp fromDate = null;
Timestamp toDate = null;
if (from != null) {
fromDate = new Timestamp(from);
toDate = new Timestamp(to);
}
List<Integer> attachmentsList= this.downloadAttachmentService.getAttachmentsByNumber(fromDate,
toDate);
return new ResponseEntity<>(attachmentsList, HttpStatus.OK);
}
Моя проблема, когда я изменяю критерии поиска с и на, веб-служба все еще находится в режиме выполнения со старыми и новыми критериями поиска:
Это изображение показывает, что: ![enter image description here](https://i.stack.imgur.com/IsIax.png)
как решить это? спасибо за продвижение.