| | |
| | | } catch (Exception e) { |
| | | String message = "修改EmpAccessory失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | throw new FebsException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | |
| | | |
| | | @PostMapping("autoInstall") |
| | | public void autoInstall( String fileids) throws FebsException { |
| | | try { |
| | | this.empAccessoryService.autoInstall(fileids); |
| | | } catch (Exception e) { |
| | | String message = "插入文件失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | |
| | | @GetMapping("image/{accessoryid}") |
| | | public void getImage(@PathVariable String accessoryid, HttpServletResponse response) throws FebsException { |
| | | try { |
| | | this.empAccessoryService.getImage(accessoryid,response); |
| | | } catch (Exception e) { |
| | | String message = "获取员工图片异常"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | } |