VpointUseMapper.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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.js.kbt.mapper.VpointUseMapper" >
  4. <resultMap id="BaseResultMap" type="com.js.kbt.model.VpointUse" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  9. -->
  10. <result column="rq" property="rq" jdbcType="VARCHAR" />
  11. <result column="identity" property="identity" jdbcType="VARCHAR" />
  12. <result column="sl" property="sl" jdbcType="DECIMAL" />
  13. </resultMap>
  14. <sql id="Example_Where_Clause" >
  15. <!--
  16. WARNING - @mbggenerated
  17. This element is automatically generated by MyBatis Generator, do not modify.
  18. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  19. -->
  20. <where >
  21. <foreach collection="oredCriteria" item="criteria" separator="or" >
  22. <if test="criteria.valid" >
  23. <trim prefix="(" suffix=")" prefixOverrides="and" >
  24. <foreach collection="criteria.criteria" item="criterion" >
  25. <choose >
  26. <when test="criterion.noValue" >
  27. and ${criterion.condition}
  28. </when>
  29. <when test="criterion.singleValue" >
  30. and ${criterion.condition} #{criterion.value}
  31. </when>
  32. <when test="criterion.betweenValue" >
  33. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  34. </when>
  35. <when test="criterion.listValue" >
  36. and ${criterion.condition}
  37. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  38. #{listItem}
  39. </foreach>
  40. </when>
  41. </choose>
  42. </foreach>
  43. </trim>
  44. </if>
  45. </foreach>
  46. </where>
  47. </sql>
  48. <sql id="Update_By_Example_Where_Clause" >
  49. <!--
  50. WARNING - @mbggenerated
  51. This element is automatically generated by MyBatis Generator, do not modify.
  52. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  53. -->
  54. <where >
  55. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  56. <if test="criteria.valid" >
  57. <trim prefix="(" suffix=")" prefixOverrides="and" >
  58. <foreach collection="criteria.criteria" item="criterion" >
  59. <choose >
  60. <when test="criterion.noValue" >
  61. and ${criterion.condition}
  62. </when>
  63. <when test="criterion.singleValue" >
  64. and ${criterion.condition} #{criterion.value}
  65. </when>
  66. <when test="criterion.betweenValue" >
  67. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  68. </when>
  69. <when test="criterion.listValue" >
  70. and ${criterion.condition}
  71. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  72. #{listItem}
  73. </foreach>
  74. </when>
  75. </choose>
  76. </foreach>
  77. </trim>
  78. </if>
  79. </foreach>
  80. </where>
  81. </sql>
  82. <sql id="Base_Column_List" >
  83. <!--
  84. WARNING - @mbggenerated
  85. This element is automatically generated by MyBatis Generator, do not modify.
  86. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  87. -->
  88. rq, identity, sl
  89. </sql>
  90. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.js.kbt.model.VpointUseExample" >
  91. <!--
  92. WARNING - @mbggenerated
  93. This element is automatically generated by MyBatis Generator, do not modify.
  94. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  95. -->
  96. select
  97. <if test="distinct" >
  98. distinct
  99. </if>
  100. <include refid="Base_Column_List" />
  101. from vpoint_use
  102. <if test="_parameter != null" >
  103. <include refid="Example_Where_Clause" />
  104. </if>
  105. <if test="orderByClause != null" >
  106. order by ${orderByClause}
  107. </if>
  108. </select>
  109. <delete id="deleteByExample" parameterType="com.js.kbt.model.VpointUseExample" >
  110. <!--
  111. WARNING - @mbggenerated
  112. This element is automatically generated by MyBatis Generator, do not modify.
  113. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  114. -->
  115. delete from vpoint_use
  116. <if test="_parameter != null" >
  117. <include refid="Example_Where_Clause" />
  118. </if>
  119. </delete>
  120. <insert id="insert" parameterType="com.js.kbt.model.VpointUse" >
  121. <!--
  122. WARNING - @mbggenerated
  123. This element is automatically generated by MyBatis Generator, do not modify.
  124. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  125. -->
  126. insert into vpoint_use (rq, identity, sl
  127. )
  128. values (#{rq,jdbcType=VARCHAR}, #{identity,jdbcType=VARCHAR}, #{sl,jdbcType=DECIMAL}
  129. )
  130. </insert>
  131. <insert id="insertSelective" parameterType="com.js.kbt.model.VpointUse" >
  132. <!--
  133. WARNING - @mbggenerated
  134. This element is automatically generated by MyBatis Generator, do not modify.
  135. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  136. -->
  137. insert into vpoint_use
  138. <trim prefix="(" suffix=")" suffixOverrides="," >
  139. <if test="rq != null" >
  140. rq,
  141. </if>
  142. <if test="identity != null" >
  143. identity,
  144. </if>
  145. <if test="sl != null" >
  146. sl,
  147. </if>
  148. </trim>
  149. <trim prefix="values (" suffix=")" suffixOverrides="," >
  150. <if test="rq != null" >
  151. #{rq,jdbcType=VARCHAR},
  152. </if>
  153. <if test="identity != null" >
  154. #{identity,jdbcType=VARCHAR},
  155. </if>
  156. <if test="sl != null" >
  157. #{sl,jdbcType=DECIMAL},
  158. </if>
  159. </trim>
  160. </insert>
  161. <select id="countByExample" parameterType="com.js.kbt.model.VpointUseExample" resultType="java.lang.Integer" >
  162. <!--
  163. WARNING - @mbggenerated
  164. This element is automatically generated by MyBatis Generator, do not modify.
  165. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  166. -->
  167. select count(*) from vpoint_use
  168. <if test="_parameter != null" >
  169. <include refid="Example_Where_Clause" />
  170. </if>
  171. </select>
  172. <update id="updateByExampleSelective" parameterType="map" >
  173. <!--
  174. WARNING - @mbggenerated
  175. This element is automatically generated by MyBatis Generator, do not modify.
  176. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  177. -->
  178. update vpoint_use
  179. <set >
  180. <if test="record.rq != null" >
  181. rq = #{record.rq,jdbcType=VARCHAR},
  182. </if>
  183. <if test="record.identity != null" >
  184. identity = #{record.identity,jdbcType=VARCHAR},
  185. </if>
  186. <if test="record.sl != null" >
  187. sl = #{record.sl,jdbcType=DECIMAL},
  188. </if>
  189. </set>
  190. <if test="_parameter != null" >
  191. <include refid="Update_By_Example_Where_Clause" />
  192. </if>
  193. </update>
  194. <update id="updateByExample" parameterType="map" >
  195. <!--
  196. WARNING - @mbggenerated
  197. This element is automatically generated by MyBatis Generator, do not modify.
  198. This element was generated on Fri Nov 10 15:38:46 CST 2017.
  199. -->
  200. update vpoint_use
  201. set rq = #{record.rq,jdbcType=VARCHAR},
  202. identity = #{record.identity,jdbcType=VARCHAR},
  203. sl = #{record.sl,jdbcType=DECIMAL}
  204. <if test="_parameter != null" >
  205. <include refid="Update_By_Example_Where_Clause" />
  206. </if>
  207. </update>
  208. </mapper>