东方网 文促会 后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SysOperationLogMapper.xml 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.xdf.creative.module.mapper.SysOperationLogMapper">
  4. <!-- 通用查询结果列 -->
  5. <sql id="Base_Column_List">
  6. id, log_name, user_id, api, method, create_time, succeed, detail
  7. </sql>
  8. <sql id="Base_If_Condition">
  9. <where>
  10. <if test="param.id !=null and param.id!=''">
  11. and id=#{param.id}
  12. </if>
  13. <if test="param.logName !=null and param.logName!=''">
  14. and log_name=#{param.logName}
  15. </if>
  16. <if test="param.userId !=null and param.userId!=''">
  17. and user_id=#{param.userId}
  18. </if>
  19. <if test="param.api !=null and param.api!=''">
  20. and api=#{param.api}
  21. </if>
  22. <if test="param.method !=null and param.method!=''">
  23. and method=#{param.method}
  24. </if>
  25. <if test="param.createTime !=null and param.createTime!=''">
  26. and create_time=#{param.createTime}
  27. </if>
  28. <if test="param.succeed !=null and param.succeed!=''">
  29. and succeed=#{param.succeed}
  30. </if>
  31. <if test="param.detail !=null and param.detail!=''">
  32. and detail=#{param.detail}
  33. </if>
  34. </where>
  35. </sql>
  36. <!--根据ID查询-->
  37. <select id="getSysOperationLogById" resultType="com.xdf.creative.base.vo.creative.SysOperationLogQueryVo">
  38. select
  39. <include refid="Base_Column_List"/>
  40. from sys_operation_log where id = #{id}
  41. </select>
  42. <!--分页查询-->
  43. <select id="getSysOperationLogPageList"
  44. resultType="com.xdf.creative.base.vo.creative.SysOperationLogQueryVo"
  45. parameterType="com.xdf.creative.base.params.creative.SysOperationLogQueryParam">
  46. select
  47. <include refid="Base_Column_List"/>
  48. from sys_operation_log
  49. <include refid="Base_If_Condition"/>
  50. </select>
  51. </mapper>