后台服务
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.

WxWeappBasicSetMapper.xml 2.1 KiB

2 anos atrás
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.WxWeappBasicSetMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxWeappBasicSet">
  5. <id column="id" jdbcType="INTEGER" property="id"/>
  6. <result column="type" jdbcType="INTEGER" property="type"/>
  7. <result column="deploy" jdbcType="INTEGER" property="deploy"/>
  8. <result column="domain_url" jdbcType="VARCHAR" property="domainUrl"/>
  9. <result column="version" jdbcType="VARCHAR" property="version"/>
  10. <result column="template_info" jdbcType="VARCHAR" property="templateInfo"/>
  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`,`type`,`domain_url`,`version`,`template_info`,`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 != type ">
  23. and `type` = #{type}
  24. </if>
  25. <if test=" null != deploy ">
  26. and `deploy` = #{deploy}
  27. </if>
  28. <if test=" null != createDate ">
  29. and `create_date` = #{createDate}
  30. </if>
  31. <if test=" null != updateDate ">
  32. and `update_date` = #{updateDate}
  33. </if>
  34. <if test=" null != ids ">
  35. and id in
  36. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  37. #{idItem}
  38. </foreach>
  39. </if>
  40. <if test=" null != sortColumns">order by ${sortColumns}</if>
  41. </sql>
  42. <select id="findList" parameterType="com.iformall.domain.po.WxWeappBasicSet" resultMap="BaseResultMap">
  43. select
  44. <include refid="allColumns"/>
  45. from wx_weapp_basic_set
  46. <include refid="dynamicWhereConditions"/>
  47. </select>
  48. </mapper>