智慧保安后台管理-外网项目备份
Administrator
2021-09-22 35a6e9cedc2f44bebc9e4ec81a429eddc8b631ea
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -150,8 +150,8 @@
        <if test="user.hold!=null and user.hold != ''">
            and hold = #{user.hold}
        </if> <if test="user.jurisdiction!=null and user.jurisdiction != ''">
        and jurisdiction = #{user.jurisdiction}
    </if>
            and jurisdiction = #{user.jurisdiction}
        </if>
        <if test="user.securitynumber!=null and user.securitynumber != ''">
            and securitynumber = #{user.securitynumber}
        </if>
@@ -489,4 +489,13 @@
    <select id="selectCountAccount" resultType="java.lang.Integer">
        select count(*) from blade_user where account = #{account}
    </select>
    <!--查询当前部门名称及父级部门名称-->
    <select id="getDeptName" resultType="java.lang.String">
        (select dept_name from blade_dept where id = #{deptId} and 1=1)
        union
        (
            select dept_name from blade_dept where id =  (select parent_id from blade_dept where id= #{deptId} and 1=1)
        )
    </select>
</mapper>