| Line 35... |
Line 35... |
| 35 |
final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(LocalDateTime.now(), request.getRequestURL().toString(), HttpStatus.OK.toString(), HttpStatus.OK, ResponseStatus.SUCCESS, addressRepository.selectAll());
|
35 |
final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(LocalDateTime.now(), request.getRequestURL().toString(), HttpStatus.OK.toString(), HttpStatus.OK, ResponseStatus.SUCCESS, addressRepository.selectAll());
|
| 36 |
return new ResponseEntity<>(profitMandiResponse,HttpStatus.OK);
|
36 |
return new ResponseEntity<>(profitMandiResponse,HttpStatus.OK);
|
| 37 |
}
|
37 |
}
|
| 38 |
|
38 |
|
| 39 |
@RequestMapping(value = ProfitMandiConstants.URL_ADDRESS_ID, method=RequestMethod.GET)
|
39 |
@RequestMapping(value = ProfitMandiConstants.URL_ADDRESS_ID, method=RequestMethod.GET)
|
| 40 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") long id){
|
40 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
|
| 41 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
41 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
| 42 |
try {
|
42 |
try {
|
| 43 |
final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(LocalDateTime.now(), request.getRequestURL().toString(), HttpStatus.OK.toString(), HttpStatus.OK, ResponseStatus.SUCCESS, addressRepository.selectById(id));
|
43 |
final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(LocalDateTime.now(), request.getRequestURL().toString(), HttpStatus.OK.toString(), HttpStatus.OK, ResponseStatus.SUCCESS, addressRepository.selectById(id));
|
| 44 |
return new ResponseEntity<>(profitMandiResponse,HttpStatus.OK);
|
44 |
return new ResponseEntity<>(profitMandiResponse,HttpStatus.OK);
|
| 45 |
}catch (ProfitMandiBusinessException pmbe) {
|
45 |
}catch (ProfitMandiBusinessException pmbe) {
|