/** Add Circular */ @RequestMapping(value = "/update", method = RequestMethod.POST) @ResponseBody public CircularDTO updateCircular(@RequestBody CircularDTO circularDTO) { try { service.updateCircular(circularDTO); } catch (Exception e) { System.out.println(e.getMessage()); LOG.error("Error"); circularDTO.setErrorCode(e.getMessage()); } return circularDTO; }
@RequestMapping(value = "/searchBatch", method = RequestMethod.POST) @ResponseBody public CircularsBatchDTO getCircularDetails(@RequestBody CircularBatchSearchDTO searchDTO) { CircularsBatchDTO dto = null; try { // System.out.println("here .. "); // System.out.println(searchDTO.getStartDate()); dto = service.getCircularBatchDetails(searchDTO); } catch (Exception e) { LOG.error("Error"); System.out.println(e.getMessage()); } return dto; }