PatentYearPaymentMapper.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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.goafanti.common.dao.PatentYearPaymentMapper">
  4. <resultMap id="BaseResultMap" type="com.goafanti.common.model.PatentYearPayment">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Fri Aug 06 15:52:32 CST 2021.
  9. -->
  10. <id column="id" jdbcType="INTEGER" property="id" />
  11. <result column="type" jdbcType="INTEGER" property="type" />
  12. <result column="year" jdbcType="INTEGER" property="year" />
  13. <result column="patent_amount" jdbcType="DECIMAL" property="patentAmount" />
  14. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  15. <result column="reduction_amount" jdbcType="DECIMAL" property="reductionAmount" />
  16. </resultMap>
  17. <sql id="Base_Column_List">
  18. <!--
  19. WARNING - @mbg.generated
  20. This element is automatically generated by MyBatis Generator, do not modify.
  21. This element was generated on Fri Aug 06 15:52:32 CST 2021.
  22. -->
  23. id, `type`, `year`, patent_amount, create_time, reduction_amount
  24. </sql>
  25. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  26. <!--
  27. WARNING - @mbg.generated
  28. This element is automatically generated by MyBatis Generator, do not modify.
  29. This element was generated on Fri Aug 06 15:52:32 CST 2021.
  30. -->
  31. select
  32. <include refid="Base_Column_List" />
  33. from patent_year_payment
  34. where id = #{id,jdbcType=INTEGER}
  35. </select>
  36. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  37. <!--
  38. WARNING - @mbg.generated
  39. This element is automatically generated by MyBatis Generator, do not modify.
  40. This element was generated on Fri Aug 06 15:52:32 CST 2021.
  41. -->
  42. delete from patent_year_payment
  43. where id = #{id,jdbcType=INTEGER}
  44. </delete>
  45. <insert id="insert" parameterType="com.goafanti.common.model.PatentYearPayment">
  46. <!--
  47. WARNING - @mbg.generated
  48. This element is automatically generated by MyBatis Generator, do not modify.
  49. This element was generated on Fri Aug 06 15:52:32 CST 2021.
  50. -->
  51. insert into patent_year_payment (id, `type`, `year`,
  52. patent_amount, create_time, reduction_amount
  53. )
  54. values (#{id,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{year,jdbcType=INTEGER},
  55. #{patentAmount,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{reductionAmount,jdbcType=DECIMAL}
  56. )
  57. </insert>
  58. <insert id="insertSelective" parameterType="com.goafanti.common.model.PatentYearPayment">
  59. <!--
  60. WARNING - @mbg.generated
  61. This element is automatically generated by MyBatis Generator, do not modify.
  62. This element was generated on Fri Aug 06 15:52:32 CST 2021.
  63. -->
  64. insert into patent_year_payment
  65. <trim prefix="(" suffix=")" suffixOverrides=",">
  66. <if test="id != null">
  67. id,
  68. </if>
  69. <if test="type != null">
  70. `type`,
  71. </if>
  72. <if test="year != null">
  73. `year`,
  74. </if>
  75. <if test="patentAmount != null">
  76. patent_amount,
  77. </if>
  78. <if test="createTime != null">
  79. create_time,
  80. </if>
  81. <if test="reductionAmount != null">
  82. reduction_amount,
  83. </if>
  84. </trim>
  85. <trim prefix="values (" suffix=")" suffixOverrides=",">
  86. <if test="id != null">
  87. #{id,jdbcType=INTEGER},
  88. </if>
  89. <if test="type != null">
  90. #{type,jdbcType=INTEGER},
  91. </if>
  92. <if test="year != null">
  93. #{year,jdbcType=INTEGER},
  94. </if>
  95. <if test="patentAmount != null">
  96. #{patentAmount,jdbcType=DECIMAL},
  97. </if>
  98. <if test="createTime != null">
  99. #{createTime,jdbcType=TIMESTAMP},
  100. </if>
  101. <if test="reductionAmount != null">
  102. #{reductionAmount,jdbcType=DECIMAL},
  103. </if>
  104. </trim>
  105. </insert>
  106. <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PatentYearPayment">
  107. <!--
  108. WARNING - @mbg.generated
  109. This element is automatically generated by MyBatis Generator, do not modify.
  110. This element was generated on Fri Aug 06 15:52:32 CST 2021.
  111. -->
  112. update patent_year_payment
  113. <set>
  114. <if test="type != null">
  115. `type` = #{type,jdbcType=INTEGER},
  116. </if>
  117. <if test="year != null">
  118. `year` = #{year,jdbcType=INTEGER},
  119. </if>
  120. <if test="patentAmount != null">
  121. patent_amount = #{patentAmount,jdbcType=DECIMAL},
  122. </if>
  123. <if test="createTime != null">
  124. create_time = #{createTime,jdbcType=TIMESTAMP},
  125. </if>
  126. <if test="reductionAmount != null">
  127. reduction_amount = #{reductionAmount,jdbcType=DECIMAL},
  128. </if>
  129. </set>
  130. where id = #{id,jdbcType=INTEGER}
  131. </update>
  132. <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.PatentYearPayment">
  133. <!--
  134. WARNING - @mbg.generated
  135. This element is automatically generated by MyBatis Generator, do not modify.
  136. This element was generated on Fri Aug 06 15:52:32 CST 2021.
  137. -->
  138. update patent_year_payment
  139. set `type` = #{type,jdbcType=INTEGER},
  140. `year` = #{year,jdbcType=INTEGER},
  141. patent_amount = #{patentAmount,jdbcType=DECIMAL},
  142. create_time = #{createTime,jdbcType=TIMESTAMP},
  143. reduction_amount = #{reductionAmount,jdbcType=DECIMAL}
  144. where id = #{id,jdbcType=INTEGER}
  145. </update>
  146. <select id="selectAll" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  147. select
  148. <include refid="Base_Column_List" />
  149. from patent_year_payment
  150. where 1=1
  151. </select>
  152. </mapper>