智慧保安后台管理-外网
Administrator
2022-06-16 8b375fe00a241b3a769b82fe3dac8d1c9dce8a02
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>