Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

57 righe
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.WxWeappExtSetMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxWeappExtSet">
  5. <id column="id" jdbcType="INTEGER" property="id"/>
  6. <result column="app_id" jdbcType="VARCHAR" property="appId"/>
  7. <result column="type" jdbcType="INTEGER" property="type"/>
  8. <result column="ext_json" jdbcType="VARCHAR" property="extJson"/>
  9. <result column="release_json" jdbcType="VARCHAR" property="releaseJson"/>
  10. <result column="car_support" jdbcType="TINYINT" property="carSupport"/>
  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`,`app_id`,`type`,`ext_json`,`release_json`,`car_support`,`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 != appId ">
  23. and `app_id` = #{appId}
  24. </if>
  25. <if test=" null != type ">
  26. and `type` = #{type}
  27. </if>
  28. <if test=" null != carSupport ">
  29. and `car_support` = #{carSupport}
  30. </if>
  31. <if test=" null != createDate ">
  32. and `create_date` = #{createDate}
  33. </if>
  34. <if test=" null != updateDate ">
  35. and `update_date` = #{updateDate}
  36. </if>
  37. <if test=" null != ids ">
  38. and id in
  39. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  40. #{idItem}
  41. </foreach>
  42. </if>
  43. <if test=" null != sortColumns">order by ${sortColumns}</if>
  44. </sql>
  45. <select id="findList" parameterType="com.iformall.domain.po.WxWeappExtSet" resultMap="BaseResultMap">
  46. select
  47. <include refid="allColumns"/>
  48. from wx_weapp_ext_set
  49. <include refid="dynamicWhereConditions"/>
  50. </select>
  51. </mapper>