VuserMapper.xml 7.0 KB

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