后台服务
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

74 lignes
2.1 KiB

  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.iformall.mapper.WxAdminLogMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxAdminLog">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId"/>
  8. <result column="url" jdbcType="VARCHAR" property="url" />
  9. <result column="action_date" jdbcType="VARCHAR" property="actionDate" />
  10. <result column="type" jdbcType="INTEGER" property="type" />
  11. <result column="count" jdbcType="INTEGER" property="count" />
  12. </resultMap>
  13. <sql id="allColumns">
  14. `id`,`tenant_id`,`parent_tenant_id`,`url`,`action_date`,`type`,`count`
  15. </sql>
  16. <sql id="dynamicWhereConditions">
  17. where 1 = 1
  18. <if test=" null != id ">
  19. and `id` = #{id}
  20. </if>
  21. <if test=" null != tenantId and '' != tenantId">
  22. and `tenant_id` = #{tenantId}
  23. </if>
  24. <if test=" null != parentTenantId and '' != parentTenantId">
  25. and `parent_tenant_id` = #{parentTenantId}
  26. </if>
  27. <if test=" null != url ">
  28. and `url` like concat('%', #{url},'%')
  29. </if>
  30. <if test=" null != actionDate ">
  31. and `action_date` like concat('%', #{actionDate},'%')
  32. </if>
  33. <if test=" null != type ">
  34. and `type` = #{type}
  35. </if>
  36. <if test=" null != count ">
  37. and `count` = #{count}
  38. </if>
  39. <if test=" null != ids ">
  40. and id in
  41. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  42. #{idItem}
  43. </foreach>
  44. </if>
  45. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  46. </sql>
  47. <select id="findList" parameterType="com.iformall.domain.po.WxAdminLog" resultMap="BaseResultMap">
  48. select
  49. <include refid="allColumns"/>
  50. from wx_admin_log
  51. <include refid="dynamicWhereConditions" />
  52. </select>
  53. </mapper>