智慧保安后台管理-外网
Administrator
2022-01-07 b6c999b2bb066b9147be00b9cdf41b2638e5a70d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.loginrecord.mapper.LoginRecordMapper">
 
    <!--登录记录自定义分页信息-->
    <select id="selectSecurityPaperPage" resultType="org.springblade.modules.loginrecord.vo.LoginRecordVo">
        select
            slr.*,
            bd.dept_name deptName
        from
            sys_login_record slr
        left join blade_dept bd on bd.id = slr.dept_id
        <if test="loginRecord.deptName!=null and loginRecord.deptName!=''">
            bd.dept_name like concat('%',#{loginRecord.deptName},'%')
        </if>
        <if test="loginRecord.createBy!=null and loginRecord.createBy!=''">
            slr.create_by like concat('%',#{loginRecord.createBy},'%')
        </if>
        order by slr.id desc
    </select>
 
</mapper>