Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

65 wiersze
2.8 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.WxCardDailyLogMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxCardDailyLog">
  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="card_password_id" jdbcType="BIGINT" property="cardPasswordId"/>
  9. <result column="ip" jdbcType="VARCHAR" property="ip"/>
  10. <result column="price" jdbcType="INTEGER" property="price"/>
  11. <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
  12. <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
  13. <result column="operator_type" jdbcType="INTEGER" property="operatorType"/>
  14. <result column="operator_id" jdbcType="BIGINT" property="operatorId"/>
  15. <result column="operator_user" jdbcType="VARCHAR" property="operatorUser"/>
  16. <result column="remark" jdbcType="VARCHAR" property="remark"/>
  17. </resultMap>
  18. <sql id="allColumns">
  19. `id`,`tenant_id`,`parent_tenant_id`,`card_password_id`,`ip`,`create_date`,`update_date`,
  20. `price`,`operator_type`,`operator_id`,`operator_user`, `remark`
  21. </sql>
  22. <sql id="dynamicWhereConditions">
  23. where 1 = 1
  24. <if test=" null != id ">
  25. and `id` = #{id}
  26. </if>
  27. <if test=" null != tenantId and '' != tenantId">
  28. and `tenant_id` = #{tenantId}
  29. </if>
  30. <if test=" null != parentTenantId and '' != parentTenantId">
  31. and `parent_tenant_id` = #{parentTenantId}
  32. </if>
  33. <if test=" null != cardPasswordId ">
  34. and `card_password_id` = #{cardPasswordId}
  35. </if>
  36. <if test=" null != operatorType ">
  37. and `operator_type` = #{operatorType}
  38. </if>
  39. <if test=" null != operatorId ">
  40. and `operator_id` = #{operatorId}
  41. </if>
  42. <if test=" null != operatorUser and '' != operatorUser">
  43. and `operator_user` like concat('%', #{operatorUser},'%')
  44. </if>
  45. <if test=" null != ids ">
  46. and id in
  47. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  48. #{idItem}
  49. </foreach>
  50. </if>
  51. <if test=" null != sortColumns">order by ${sortColumns}</if>
  52. </sql>
  53. <select id="findList" parameterType="com.iformall.domain.po.WxCardDailyLog" resultMap="BaseResultMap">
  54. select
  55. <include refid="allColumns"/>
  56. from wx_card_set_price
  57. <include refid="dynamicWhereConditions"/>
  58. </select>
  59. </mapper>