陈昶聿
6 小时以前 8b19f0614bd79a7bb6d524ef3245723febfb40dd
【丽水】角色管理修改处理
已修改3个文件
14 ■■■■■ 文件已修改
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
@@ -39,7 +39,7 @@
     */
    public SysDept selectDeptById(Long deptId);
    public SysDept selectDeptByCode(@Param("orgid") String orgid, @Param("campusid") String campusid,@Param("deptCode") String deptCode);
    public SysDept selectDeptByCode(@Param("orgid") String orgid, @Param("deptCode") String deptCode);
    /**
     * 根据ID查询所有子部门
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
@@ -564,7 +564,7 @@
//        }
        if (!CollectionUtils.isEmpty(user.getDeptCodes())) {
            for (String deptCode : user.getDeptCodes()) {
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), user.getCampusid(), deptCode);
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), deptCode);
                if (ObjectUtils.isEmpty(sysDept)) {
                    continue;
                }
@@ -590,7 +590,7 @@
        }
        if (!CollectionUtils.isEmpty(user.getWardCodes())) {
            for (String wardCode : user.getWardCodes()) {
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), user.getCampusid(), wardCode);
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), wardCode);
                if (ObjectUtils.isEmpty(sysDept)) {
                    continue;
                }
@@ -673,7 +673,7 @@
//        }
        if (!CollectionUtils.isEmpty(user.getDeptCodes())) {
            for (String deptCode : user.getDeptCodes()) {
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), user.getCampusid(), deptCode);
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), deptCode);
                if (ObjectUtils.isEmpty(sysDept)) {
                    continue;
                }
@@ -699,7 +699,7 @@
        }
        if (!CollectionUtils.isEmpty(user.getWardCodes())) {
            for (String wardCode : user.getWardCodes()) {
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), user.getCampusid(), wardCode);
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), wardCode);
                if (ObjectUtils.isEmpty(sysDept)) {
                    continue;
                }
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -143,9 +143,7 @@
        <if test="orgid != null and orgid != ''">
            and d.orgid = #{orgid}
        </if>
        <if test="campusid != null and campusid != ''">
            and d.campusid = #{campusid}
        </if>
        limit 1
    </select>
    <select id="checkDeptExistUser" parameterType="Long" resultType="int">