@RequestMapping(value = "/updateServiceTicket", produces = "text/plain;charset=utf-8") @ResponseBody public String updateServiceTicket(HttpServletRequest request, HxServiceTicket serviceTicket) { SysUser sysUser = (SysUser) request.getSession().getAttribute(Constrants.USER_INFO); serviceTicket.setAlterManS(sysUser.getUserAccount()); serviceTicket.setAlterOrganizationS(sysUser.getCompanyId()); serviceTicket.setAlterTimeS(new Date()); try { serviceTicketCreateService.updateServiceTicket(serviceTicket); return "{\"flag\" : \"success\"}"; } catch (Exception e) { e.printStackTrace(); return "{\"flag\" : \"failure\"}"; } }
@RequestMapping(value = "/serviceTicketSend", produces = "text/plain;charset=utf-8") @ResponseBody public String serviceTicketSend(HxServiceTicket serviceTicket) { // 发送 serviceTicket.setServiceStatus("02"); try { serviceTicketCreateService.updateServiceTicket(serviceTicket); return "{\"flag\" : \"success\"}"; } catch (Exception e) { e.printStackTrace(); return "{\"flag\" : \"failure\"}"; } }