智慧保安后台管理-外网
Administrator
2022-06-10 b403ba0d0c43bd02456e6f830d7aec06f0b6885b
src/main/java/org/springblade/modules/log/mapper/HandlerLogMapper.xml
@@ -8,11 +8,14 @@
        left join blade_user bu on bu.id = shl.user_id
        left join blade_dept bd on shl.dept_id = bd.id
        where 1=1
        <if test="handlerLog.deptName!=null and handlerLog.deptName!''">
            bd.dept_name like concat('%',#{handlerLog.deptName},'%')
        <if test="handlerLog.deptName!=null and handlerLog.deptName!=''">
           and bd.dept_name like concat('%',#{handlerLog.deptName},'%')
        </if>
        <if test="handlerLog.deptId!=null and handlerLog.deptId!''">
            shl.dept_id = #{handlerLog.deptId}
        <if test="handlerLog.deptId!=null and handlerLog.deptId!=''">
           and shl.dept_id = #{handlerLog.deptId}
        </if>
        <if test="handlerLog.type!=null">
           and  shl.type = #{handlerLog.type}
        </if>
        order by shl.id desc
    </select>