12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?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.xdf.creative.module.mapper.SysOperationLogMapper">
-
-
- <!-- 通用查询结果列 -->
- <sql id="Base_Column_List">
- id, log_name, user_id, api, method, create_time, succeed, detail
- </sql>
-
- <sql id="Base_If_Condition">
- <where>
- <if test="param.id !=null and param.id!=''">
- and id=#{param.id}
- </if>
- <if test="param.logName !=null and param.logName!=''">
- and log_name=#{param.logName}
- </if>
- <if test="param.userId !=null and param.userId!=''">
- and user_id=#{param.userId}
- </if>
- <if test="param.api !=null and param.api!=''">
- and api=#{param.api}
- </if>
- <if test="param.method !=null and param.method!=''">
- and method=#{param.method}
- </if>
- <if test="param.createTime !=null and param.createTime!=''">
- and create_time=#{param.createTime}
- </if>
- <if test="param.succeed !=null and param.succeed!=''">
- and succeed=#{param.succeed}
- </if>
- <if test="param.detail !=null and param.detail!=''">
- and detail=#{param.detail}
- </if>
- </where>
- </sql>
-
-
- <!--根据ID查询-->
- <select id="getSysOperationLogById" resultType="com.xdf.creative.base.vo.creative.SysOperationLogQueryVo">
- select
- <include refid="Base_Column_List"/>
- from sys_operation_log where id = #{id}
- </select>
-
- <!--分页查询-->
- <select id="getSysOperationLogPageList"
- resultType="com.xdf.creative.base.vo.creative.SysOperationLogQueryVo"
- parameterType="com.xdf.creative.base.params.creative.SysOperationLogQueryParam">
- select
- <include refid="Base_Column_List"/>
- from sys_operation_log
- <include refid="Base_If_Condition"/>
- </select>
-
- </mapper>
|