CSR Ticket management
Finally, we will talk about CSR Ticket management in this section. CSR may not have controls like admin; however, in most cases, they have an option to match admin in Ticket management application. In the following section, we will talk about all CSR authorized CRUD operations on a ticket.
CSR updates a ticket
In this section, we will talk about updating a ticket by CSR with new content, severity, and status in Ticket management:
@ResponseBody @CSRTokenRequired @RequestMapping(value = "/by/csr", method = RequestMethod.PUT) public <T> T updateTicketByCSR ( @RequestParam("ticketid") final Integer ticketid, @RequestParam(value="content") String content, @RequestParam(value="severity") Integer severity, @RequestParam(value="status") Integer status, HttpServletRequest request ) { ticketSevice.updateTicket(ticketid, content, severity, status); return Util.getSuccessResult(); }
In the preceding code...