Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

47 Zeilen
1.6 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.WxPowerBillAutoConfigMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxPowerBillAutoConfig">
  5. <id column="id" jdbcType="BIGINT" property="id"/>
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
  7. <result column="unit_price" jdbcType="VARCHAR" property="unitPrice"/>
  8. <result column="build_day" jdbcType="INTEGER" property="buildDay"/>
  9. <result column="receive_day" jdbcType="INTEGER" property="receiveDay"/>
  10. <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
  11. <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
  12. </resultMap>
  13. <sql id="allColumns">
  14. `id`,`tenant_id`,`unit_price`,`build_day`,`receive_day`,`create_date`,`update_date`
  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 ">
  22. and `tenant_id` = #{tenantId}
  23. </if>
  24. <if test=" null != ids ">
  25. and id in
  26. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  27. #{idItem}
  28. </foreach>
  29. </if>
  30. <if test=" null != sortColumns">order by ${sortColumns}</if>
  31. </sql>
  32. <select id="findList" parameterType="com.iformall.domain.po.KwBox" resultMap="BaseResultMap">
  33. select
  34. <include refid="allColumns"/>
  35. from wx_power_bill_auto_config
  36. <include refid="dynamicWhereConditions"/>
  37. </select>
  38. </mapper>