后台服务
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

WxWeappExtSetMapper.xml 2.4 KiB

2 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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="store_app" jdbcType="TINYINT" property="storeApp"/>
  12. <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
  13. <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
  14. </resultMap>
  15. <sql id="allColumns">
  16. `id`,`app_id`,`type`,`ext_json`,`release_json`,`car_support`,`store_app`,`create_date`,`update_date`
  17. </sql>
  18. <sql id="dynamicWhereConditions">
  19. where 1 = 1
  20. <if test=" null != id ">
  21. and `id` = #{id}
  22. </if>
  23. <if test=" null != appId ">
  24. and `app_id` = #{appId}
  25. </if>
  26. <if test=" null != type ">
  27. and `type` = #{type}
  28. </if>
  29. <if test=" null != carSupport ">
  30. and `car_support` = #{carSupport}
  31. </if>
  32. <if test=" null != createDate ">
  33. and `create_date` = #{createDate}
  34. </if>
  35. <if test=" null != updateDate ">
  36. and `update_date` = #{updateDate}
  37. </if>
  38. <if test=" null != ids ">
  39. and id in
  40. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  41. #{idItem}
  42. </foreach>
  43. </if>
  44. <if test=" null != sortColumns">order by ${sortColumns}</if>
  45. </sql>
  46. <select id="findList" parameterType="com.iformall.domain.po.WxWeappExtSet" resultMap="BaseResultMap">
  47. select
  48. <include refid="allColumns"/>
  49. from wx_weapp_ext_set
  50. <include refid="dynamicWhereConditions"/>
  51. </select>
  52. <select id="getByAppId" resultMap="BaseResultMap">
  53. select
  54. <include refid="allColumns"/>
  55. from wx_weapp_ext_set where app_id = #{appid}
  56. </select>
  57. </mapper>