后台服务
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

51 rinda
1.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.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="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId" />
  8. <result column="unit_price" jdbcType="VARCHAR" property="unitPrice"/>
  9. <result column="build_day" jdbcType="INTEGER" property="buildDay"/>
  10. <result column="receive_day" jdbcType="INTEGER" property="receiveDay"/>
  11. <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
  12. <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
  13. </resultMap>
  14. <sql id="allColumns">
  15. `id`,`tenant_id`,`parent_tenant_id`,`unit_price`,`build_day`,`receive_day`,`create_date`,`update_date`
  16. </sql>
  17. <sql id="dynamicWhereConditions">
  18. where 1 = 1
  19. <if test=" null != id ">
  20. and `id` = #{id}
  21. </if>
  22. <if test=" null != tenantId and '' != tenantId">
  23. and `tenant_id` = #{tenantId}
  24. </if>
  25. <if test=" null != parentTenantId and '' != parentTenantId">
  26. and `parent_tenant_id` = #{parentTenantId}
  27. </if>
  28. <if test=" null != ids ">
  29. and id in
  30. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  31. #{idItem}
  32. </foreach>
  33. </if>
  34. <if test=" null != sortColumns">order by ${sortColumns}</if>
  35. </sql>
  36. <select id="findList" parameterType="com.iformall.domain.po.KwBox" resultMap="BaseResultMap">
  37. select
  38. <include refid="allColumns"/>
  39. from wx_power_bill_auto_config
  40. <include refid="dynamicWhereConditions"/>
  41. </select>
  42. </mapper>