yubo
2026-04-11 4e55bd9cee8e44f7a7a0d9185d8323fc7be9193d
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/controller/EmpBaseInfoController.java
@@ -284,6 +284,12 @@
    @PostMapping("addInEmp")
    @PreAuthorize("hasAuthority('empBaseinfo:add')")
    public FebsResponse addInEmpBaseInfo(@Valid EmpBaseInfo empBaseinfo) throws FebsException {
        if(this.empBaseInfoService.verifyEmpNumb(empBaseinfo)){
            throw new FebsException("已存在此员工编号:" + empBaseinfo.getEmpNumb());
        }
        if(this.empBaseInfoService.verifyCertificateNumb(empBaseinfo)){
            throw new FebsException("已存在此身份证号:" + empBaseinfo.getCertificateNumb());
        }
        try {
            return new FebsResponse().data(empBaseInfoService.addInEmpBaseInfo(empBaseinfo));
        } catch (Exception e) {