zjh
2024-02-28 fcc5d56c4fa7b269d96b8ef66a527fa6a7c90450
ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysDeptController.java
@@ -1070,7 +1070,7 @@
        String format = DateUtil.format(patbirth, "yyyy.MM.dd");
        List<Map<String, Object>> tjYxjcList = testMapper.getTjYxjcList(patname,sex,patage+patagename,format);
        List<Map<String, Object>> tjYxjcList = testMapper.getTjYxjcList(patname,sex,null);
        return AjaxResult.success(tjYxjcList);
    }
@@ -1237,6 +1237,10 @@
        return toAjax(deptService.insertDept(dept));
    }
    @Resource
    private IDictHospService dictHospService;
    /**
     * 修改科室部门
     */
@@ -1255,6 +1259,16 @@
            return error("该部门包含未停用的子部门!");
        }
        dept.setUpdateBy(getUsername());
        //查询院区名字赋值
        if (dept.getHospId()!=null){
            final DictHosp byId = dictHospService.getById(dept.getHospId());
            if (byId!=null){
                dept.setHospName(byId.getHospAreaName());
            }
        }
        return toAjax(deptService.updateDept(dept));
    }