FixMapper.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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.FixMapper">
  4. <resultMap id="BaseResultMap" type="com.js.kbt.model.Fix">
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  9. -->
  10. <id column="id" jdbcType="INTEGER" property="id" />
  11. <result column="msg" jdbcType="VARCHAR" property="msg" />
  12. <result column="pic" jdbcType="VARCHAR" property="pic" />
  13. <result column="is_deal" jdbcType="INTEGER" property="isDeal" />
  14. <result column="identity" jdbcType="VARCHAR" property="identity" />
  15. </resultMap>
  16. <sql id="Example_Where_Clause">
  17. <!--
  18. WARNING - @mbggenerated
  19. This element is automatically generated by MyBatis Generator, do not modify.
  20. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  21. -->
  22. <where>
  23. <foreach collection="oredCriteria" item="criteria" separator="or">
  24. <if test="criteria.valid">
  25. <trim prefix="(" prefixOverrides="and" suffix=")">
  26. <foreach collection="criteria.criteria" item="criterion">
  27. <choose>
  28. <when test="criterion.noValue">
  29. and ${criterion.condition}
  30. </when>
  31. <when test="criterion.singleValue">
  32. and ${criterion.condition} #{criterion.value}
  33. </when>
  34. <when test="criterion.betweenValue">
  35. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  36. </when>
  37. <when test="criterion.listValue">
  38. and ${criterion.condition}
  39. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  40. #{listItem}
  41. </foreach>
  42. </when>
  43. </choose>
  44. </foreach>
  45. </trim>
  46. </if>
  47. </foreach>
  48. </where>
  49. </sql>
  50. <sql id="Update_By_Example_Where_Clause">
  51. <!--
  52. WARNING - @mbggenerated
  53. This element is automatically generated by MyBatis Generator, do not modify.
  54. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  55. -->
  56. <where>
  57. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  58. <if test="criteria.valid">
  59. <trim prefix="(" prefixOverrides="and" suffix=")">
  60. <foreach collection="criteria.criteria" item="criterion">
  61. <choose>
  62. <when test="criterion.noValue">
  63. and ${criterion.condition}
  64. </when>
  65. <when test="criterion.singleValue">
  66. and ${criterion.condition} #{criterion.value}
  67. </when>
  68. <when test="criterion.betweenValue">
  69. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  70. </when>
  71. <when test="criterion.listValue">
  72. and ${criterion.condition}
  73. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  74. #{listItem}
  75. </foreach>
  76. </when>
  77. </choose>
  78. </foreach>
  79. </trim>
  80. </if>
  81. </foreach>
  82. </where>
  83. </sql>
  84. <sql id="Base_Column_List">
  85. <!--
  86. WARNING - @mbggenerated
  87. This element is automatically generated by MyBatis Generator, do not modify.
  88. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  89. -->
  90. id, msg, pic, is_deal, identity
  91. </sql>
  92. <select id="selectByExample" parameterType="com.js.kbt.model.FixExample" resultMap="BaseResultMap">
  93. <!--
  94. WARNING - @mbggenerated
  95. This element is automatically generated by MyBatis Generator, do not modify.
  96. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  97. -->
  98. select
  99. <if test="distinct">
  100. distinct
  101. </if>
  102. <include refid="Base_Column_List" />
  103. from fix
  104. <if test="_parameter != null">
  105. <include refid="Example_Where_Clause" />
  106. </if>
  107. <if test="orderByClause != null">
  108. order by ${orderByClause}
  109. </if>
  110. </select>
  111. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  112. <!--
  113. WARNING - @mbggenerated
  114. This element is automatically generated by MyBatis Generator, do not modify.
  115. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  116. -->
  117. select
  118. <include refid="Base_Column_List" />
  119. from fix
  120. where id = #{id,jdbcType=INTEGER}
  121. </select>
  122. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  123. <!--
  124. WARNING - @mbggenerated
  125. This element is automatically generated by MyBatis Generator, do not modify.
  126. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  127. -->
  128. delete from fix
  129. where id = #{id,jdbcType=INTEGER}
  130. </delete>
  131. <delete id="deleteByExample" parameterType="com.js.kbt.model.FixExample">
  132. <!--
  133. WARNING - @mbggenerated
  134. This element is automatically generated by MyBatis Generator, do not modify.
  135. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  136. -->
  137. delete from fix
  138. <if test="_parameter != null">
  139. <include refid="Example_Where_Clause" />
  140. </if>
  141. </delete>
  142. <insert id="insert" parameterType="com.js.kbt.model.Fix">
  143. <!--
  144. WARNING - @mbggenerated
  145. This element is automatically generated by MyBatis Generator, do not modify.
  146. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  147. -->
  148. insert into fix (id, msg, pic,
  149. is_deal, identity)
  150. values (#{id,jdbcType=INTEGER}, #{msg,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR},
  151. #{isDeal,jdbcType=INTEGER}, #{identity,jdbcType=VARCHAR})
  152. </insert>
  153. <insert id="insertSelective" parameterType="com.js.kbt.model.Fix">
  154. <!--
  155. WARNING - @mbggenerated
  156. This element is automatically generated by MyBatis Generator, do not modify.
  157. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  158. -->
  159. insert into fix
  160. <trim prefix="(" suffix=")" suffixOverrides=",">
  161. <if test="id != null">
  162. id,
  163. </if>
  164. <if test="msg != null">
  165. msg,
  166. </if>
  167. <if test="pic != null">
  168. pic,
  169. </if>
  170. <if test="isDeal != null">
  171. is_deal,
  172. </if>
  173. <if test="identity != null">
  174. identity,
  175. </if>
  176. </trim>
  177. <trim prefix="values (" suffix=")" suffixOverrides=",">
  178. <if test="id != null">
  179. #{id,jdbcType=INTEGER},
  180. </if>
  181. <if test="msg != null">
  182. #{msg,jdbcType=VARCHAR},
  183. </if>
  184. <if test="pic != null">
  185. #{pic,jdbcType=VARCHAR},
  186. </if>
  187. <if test="isDeal != null">
  188. #{isDeal,jdbcType=INTEGER},
  189. </if>
  190. <if test="identity != null">
  191. #{identity,jdbcType=VARCHAR},
  192. </if>
  193. </trim>
  194. </insert>
  195. <select id="countByExample" parameterType="com.js.kbt.model.FixExample" resultType="java.lang.Integer">
  196. <!--
  197. WARNING - @mbggenerated
  198. This element is automatically generated by MyBatis Generator, do not modify.
  199. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  200. -->
  201. select count(*) from fix
  202. <if test="_parameter != null">
  203. <include refid="Example_Where_Clause" />
  204. </if>
  205. </select>
  206. <update id="updateByExampleSelective" parameterType="map">
  207. <!--
  208. WARNING - @mbggenerated
  209. This element is automatically generated by MyBatis Generator, do not modify.
  210. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  211. -->
  212. update fix
  213. <set>
  214. <if test="record.id != null">
  215. id = #{record.id,jdbcType=INTEGER},
  216. </if>
  217. <if test="record.msg != null">
  218. msg = #{record.msg,jdbcType=VARCHAR},
  219. </if>
  220. <if test="record.pic != null">
  221. pic = #{record.pic,jdbcType=VARCHAR},
  222. </if>
  223. <if test="record.isDeal != null">
  224. is_deal = #{record.isDeal,jdbcType=INTEGER},
  225. </if>
  226. <if test="record.identity != null">
  227. identity = #{record.identity,jdbcType=VARCHAR},
  228. </if>
  229. </set>
  230. <if test="_parameter != null">
  231. <include refid="Update_By_Example_Where_Clause" />
  232. </if>
  233. </update>
  234. <update id="updateByExample" parameterType="map">
  235. <!--
  236. WARNING - @mbggenerated
  237. This element is automatically generated by MyBatis Generator, do not modify.
  238. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  239. -->
  240. update fix
  241. set id = #{record.id,jdbcType=INTEGER},
  242. msg = #{record.msg,jdbcType=VARCHAR},
  243. pic = #{record.pic,jdbcType=VARCHAR},
  244. is_deal = #{record.isDeal,jdbcType=INTEGER},
  245. identity = #{record.identity,jdbcType=VARCHAR}
  246. <if test="_parameter != null">
  247. <include refid="Update_By_Example_Where_Clause" />
  248. </if>
  249. </update>
  250. <update id="updateByPrimaryKeySelective" parameterType="com.js.kbt.model.Fix">
  251. <!--
  252. WARNING - @mbggenerated
  253. This element is automatically generated by MyBatis Generator, do not modify.
  254. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  255. -->
  256. update fix
  257. <set>
  258. <if test="msg != null">
  259. msg = #{msg,jdbcType=VARCHAR},
  260. </if>
  261. <if test="pic != null">
  262. pic = #{pic,jdbcType=VARCHAR},
  263. </if>
  264. <if test="isDeal != null">
  265. is_deal = #{isDeal,jdbcType=INTEGER},
  266. </if>
  267. <if test="identity != null">
  268. identity = #{identity,jdbcType=VARCHAR},
  269. </if>
  270. </set>
  271. where id = #{id,jdbcType=INTEGER}
  272. </update>
  273. <update id="updateByPrimaryKey" parameterType="com.js.kbt.model.Fix">
  274. <!--
  275. WARNING - @mbggenerated
  276. This element is automatically generated by MyBatis Generator, do not modify.
  277. This element was generated on Wed Nov 15 15:25:41 CST 2017.
  278. -->
  279. update fix
  280. set msg = #{msg,jdbcType=VARCHAR},
  281. pic = #{pic,jdbcType=VARCHAR},
  282. is_deal = #{isDeal,jdbcType=INTEGER},
  283. identity = #{identity,jdbcType=VARCHAR}
  284. where id = #{id,jdbcType=INTEGER}
  285. </update>
  286. </mapper>