yz_08
2021-02-24 78378b0b89cd550489e4187931055001dd0e745d
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/controller/EmpBaseInfoController.java
@@ -98,7 +98,7 @@
        Map<String, Object> dataTable = FebsUtil.getDataTable(this.empBaseInfoService.findEmpBaseInfos(request, empBaseinfo));
        return new FebsResponse().data(dataTable);
    }
    @ApiOperation(value = "智搜人员基本信息翻页列表")
    @GetMapping("zslist")
    @PreAuthorize("hasAuthority('empBaseinfo:list')")
@@ -115,7 +115,6 @@
           throw new FebsException("已存在此员工编号");
       }
        try {
            //EmpBaseInfo tempInfo = this.empBaseInfoService.
            this.empBaseInfoService.createEmpBaseInfo(empBaseinfo);
        } catch (Exception e) {
            String message = "新增员工基本信息失败";
@@ -177,7 +176,7 @@
            throw new FebsException(message);
        }
    }
    @ApiOperation(value = "导出员工")
   @RequestMapping(value = "export",method= RequestMethod.POST)
    @ControllerEndpoint(operation = "导出用户数据", exceptionMessage = "导出Excel失败")
@@ -210,7 +209,7 @@
            empOccupationalService.importEmpOccupational(listObject.get(10));
            empLaborTroubleService.importEmpLaborTrouble(listObject.get(11));
            empBadRecordService.importEmpBadRecord(listObject.get(12));
            empRemarkinfoService.importEmpBadRecord(listObject.get(13));
            empRemarkinfoService.importEmpRemarkInfo(listObject.get(13));
         }
      } catch (Exception e) {
         log.error("导入员工", e);
@@ -239,4 +238,16 @@
            throw new FebsException(message);
        }
    }
    @GetMapping("image/{empId}")
    public void getImage(@PathVariable String empId, HttpServletResponse response) throws FebsException {
        try {
            this.empBaseInfoService.getImage(empId,response);
        } catch (Exception e) {
            String message = "获取员工图片异常";
            log.error(message, e);
            throw new FebsException(message);
        }
    }
}