luoyb
2021-05-12 49a2f509d6a114c062b966a5bab83f45980e808f
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/controller/EmpLaborTroubleController.java
@@ -51,7 +51,6 @@
    }
    @GetMapping("list")
    @PreAuthorize("hasAuthority('empLabortrouble:list')")
    public FebsResponse empLabortroubleList(QueryRequest request, EmpLaborTrouble empLabortrouble) {
        Map<String, Object> dataTable = FebsUtil.getDataTable(this.empLabortroubleService.findEmpLabortroubles(request, empLabortrouble));
        return new FebsResponse().data(dataTable);
@@ -73,7 +72,7 @@
            this.empLabortroubleService.createEmpLabortrouble(empLabortrouble);
        } catch (Exception e) {
            String message = "新增员工劳资案件失败";
            if (!StrUtil.equals(e.getMessage(), MyConstant.MESSAGE)){
            if (StrUtil.equals(e.getMessage(), MyConstant.MESSAGE)){
                message = e.getMessage();
            }
            log.error(message, e);
@@ -94,7 +93,6 @@
    }
    @DeleteMapping("{ids}")
    @PreAuthorize("hasAuthority('empLabortrouble:delete')")
    public void logicDeleteEmpLabortrouble(@PathVariable("ids") String ids) throws FebsException {
        try {
            this.empLabortroubleService.logicDelEmpLabortrouble(ids);
@@ -112,7 +110,7 @@
            this.empLabortroubleService.updateEmpLabortrouble(empLabortrouble);
        } catch (Exception e) {
            String message = "修改员工劳资案件失败";
            if (!StrUtil.equals(e.getMessage(), MyConstant.MESSAGE)){
            if (StrUtil.equals(e.getMessage(), MyConstant.MESSAGE)){
                message = e.getMessage();
            }
            log.error(message, e);