Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

72 wiersze
2.7 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.WxWeappCodeStatusMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxWeappCodeStatus">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="app_id" jdbcType="VARCHAR" property="appId" />
  7. <result column="type" jdbcType="INTEGER" property="type" />
  8. <result column="user_version" jdbcType="VARCHAR" property="userVersion" />
  9. <result column="code_status" jdbcType="INTEGER" property="codeStatus" />
  10. <result column="code_time" jdbcType="TIMESTAMP" property="codeTime" />
  11. <result column="audit_status" jdbcType="INTEGER" property="auditStatus" />
  12. <result column="audit_time" jdbcType="TIMESTAMP" property="auditTime" />
  13. <result column="release_status" jdbcType="INTEGER" property="releaseStatus" />
  14. <result column="release_time" jdbcType="TIMESTAMP" property="releaseTime" />
  15. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  16. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  17. </resultMap>
  18. <sql id="allColumns">
  19. `id`,`app_id`,`type`,`user_version`,`code_status`,`code_time`,`audit_status`,`audit_time`,`release_status`,`release_time`,`create_time`,`update_time`
  20. </sql>
  21. <sql id="dynamicWhereConditions">
  22. where 1 = 1
  23. <if test=" null != id ">
  24. and `id` = #{id}
  25. </if>
  26. <if test=" null != appId ">
  27. and `app_id` = #{appId}
  28. </if>
  29. <if test=" null != type ">
  30. and `type` = #{type}
  31. </if>
  32. <if test=" null != userVersion ">
  33. and `user_version` = #{userVersion}
  34. </if>
  35. <if test=" null != codeStatus ">
  36. and `code_status` = #{codeStatus}
  37. </if>
  38. <if test=" null != auditStatus ">
  39. and `audit_status` = #{auditStatus}
  40. </if>
  41. <if test=" null != releaseStatus ">
  42. and `release_status` = #{releaseStatus}
  43. </if>
  44. <if test=" null != createTime ">
  45. and `create_time` = #{createTime}
  46. </if>
  47. <if test=" null != updateTime ">
  48. and `update_time` = #{updateTime}
  49. </if>
  50. <if test=" null != ids ">
  51. and id in
  52. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  53. #{idItem}
  54. </foreach>
  55. </if>
  56. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  57. </sql>
  58. <select id="findList" parameterType="com.iformall.domain.po.WxWeappCodeStatus" resultMap="BaseResultMap">
  59. select <include refid="allColumns" /> from wx_weapp_code_status
  60. <include refid="dynamicWhereConditions" />
  61. </select>
  62. </mapper>