| 1234567891011121314151617181920212223242526272829303132 |
- <?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="com.template.mapper.WelcomeLogMapper">
- <resultMap type="com.template.model.vo.LogVo" id="LogPageMap">
- <result property="id" column="id"/>
- <result property="createTime" column="create_time"/>
- <result property="userName" column="user_name"/>
- <result property="accountNum" column="account_num"/>
- <result property="operMode" column="oper_mode"/>
- <result property="otype" column="otype"/>
- <result property="operation" column="operation"/>
- <result property="ip" column="ip"/>
- <result property="olevel" column="olevel"/>
- </resultMap>
- <select id="queryLogPages" resultType="com.template.model.vo.LogVo" resultMap="LogPageMap">
- SELECT id,create_time,account_num,user_name,oper_mode,otype,operation,ip,olevel FROM `welcome_log`
- where deleted = 0
- <if test="userName != null and userName != ''">
- and user_name like '%' #{userName} '%'
- </if>
- <if test="operMode != null and operMode != ''">
- and oper_mode like '%' #{operMode} '%'
- </if>
- <if test="olevelId != null and olevelId != 0">
- and olevel_id = #{olevelId}
- </if>
- <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
- and create_time BETWEEN #{startTime} AND #{endTime}
- </if>
- order by create_time desc
- </select>
- </mapper>
|