MouldHodingMapper.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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.MouldHodingMapper">
  4. <resultMap id="BaseResultMap" type="com.js.kbt.model.MouldHoding">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  9. -->
  10. <id column="id" jdbcType="INTEGER" property="id" />
  11. <result column="enable" jdbcType="INTEGER" property="enable" />
  12. <result column="uploadcycle_work" jdbcType="INTEGER" property="uploadcycleWork" />
  13. <result column="uploadcycle_free" jdbcType="INTEGER" property="uploadcycleFree" />
  14. <result column="lowpowerlimit" jdbcType="VARCHAR" property="lowpowerlimit" />
  15. <result column="hotalarmlimit" jdbcType="INTEGER" property="hotalarmlimit" />
  16. <result column="retain" jdbcType="INTEGER" property="retain" />
  17. <result column="time_count" jdbcType="INTEGER" property="timeCount" />
  18. <result column="indate" jdbcType="TIMESTAMP" property="indate" />
  19. </resultMap>
  20. <sql id="Example_Where_Clause">
  21. <!--
  22. WARNING - @mbg.generated
  23. This element is automatically generated by MyBatis Generator, do not modify.
  24. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  25. -->
  26. <where>
  27. <foreach collection="oredCriteria" item="criteria" separator="or">
  28. <if test="criteria.valid">
  29. <trim prefix="(" prefixOverrides="and" suffix=")">
  30. <foreach collection="criteria.criteria" item="criterion">
  31. <choose>
  32. <when test="criterion.noValue">
  33. and ${criterion.condition}
  34. </when>
  35. <when test="criterion.singleValue">
  36. and ${criterion.condition} #{criterion.value}
  37. </when>
  38. <when test="criterion.betweenValue">
  39. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  40. </when>
  41. <when test="criterion.listValue">
  42. and ${criterion.condition}
  43. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  44. #{listItem}
  45. </foreach>
  46. </when>
  47. </choose>
  48. </foreach>
  49. </trim>
  50. </if>
  51. </foreach>
  52. </where>
  53. </sql>
  54. <sql id="Update_By_Example_Where_Clause">
  55. <!--
  56. WARNING - @mbg.generated
  57. This element is automatically generated by MyBatis Generator, do not modify.
  58. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  59. -->
  60. <where>
  61. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  62. <if test="criteria.valid">
  63. <trim prefix="(" prefixOverrides="and" suffix=")">
  64. <foreach collection="criteria.criteria" item="criterion">
  65. <choose>
  66. <when test="criterion.noValue">
  67. and ${criterion.condition}
  68. </when>
  69. <when test="criterion.singleValue">
  70. and ${criterion.condition} #{criterion.value}
  71. </when>
  72. <when test="criterion.betweenValue">
  73. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  74. </when>
  75. <when test="criterion.listValue">
  76. and ${criterion.condition}
  77. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  78. #{listItem}
  79. </foreach>
  80. </when>
  81. </choose>
  82. </foreach>
  83. </trim>
  84. </if>
  85. </foreach>
  86. </where>
  87. </sql>
  88. <sql id="Base_Column_List">
  89. <!--
  90. WARNING - @mbg.generated
  91. This element is automatically generated by MyBatis Generator, do not modify.
  92. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  93. -->
  94. id, enable, uploadcycle_work, uploadcycle_free, lowpowerlimit, hotalarmlimit, retain,
  95. time_count, indate
  96. </sql>
  97. <select id="selectByExample" parameterType="com.js.kbt.model.MouldHodingExample" resultMap="BaseResultMap">
  98. <!--
  99. WARNING - @mbg.generated
  100. This element is automatically generated by MyBatis Generator, do not modify.
  101. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  102. -->
  103. select
  104. <if test="distinct">
  105. distinct
  106. </if>
  107. <include refid="Base_Column_List" />
  108. from mould_hoding
  109. <if test="_parameter != null">
  110. <include refid="Example_Where_Clause" />
  111. </if>
  112. <if test="orderByClause != null">
  113. order by ${orderByClause}
  114. </if>
  115. </select>
  116. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  117. <!--
  118. WARNING - @mbg.generated
  119. This element is automatically generated by MyBatis Generator, do not modify.
  120. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  121. -->
  122. select
  123. <include refid="Base_Column_List" />
  124. from mould_hoding
  125. where id = #{id,jdbcType=INTEGER}
  126. </select>
  127. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  128. <!--
  129. WARNING - @mbg.generated
  130. This element is automatically generated by MyBatis Generator, do not modify.
  131. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  132. -->
  133. delete from mould_hoding
  134. where id = #{id,jdbcType=INTEGER}
  135. </delete>
  136. <delete id="deleteByExample" parameterType="com.js.kbt.model.MouldHodingExample">
  137. <!--
  138. WARNING - @mbg.generated
  139. This element is automatically generated by MyBatis Generator, do not modify.
  140. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  141. -->
  142. delete from mould_hoding
  143. <if test="_parameter != null">
  144. <include refid="Example_Where_Clause" />
  145. </if>
  146. </delete>
  147. <insert id="insert" parameterType="com.js.kbt.model.MouldHoding">
  148. <!--
  149. WARNING - @mbg.generated
  150. This element is automatically generated by MyBatis Generator, do not modify.
  151. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  152. -->
  153. <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
  154. SELECT LAST_INSERT_ID()
  155. </selectKey>
  156. insert into mould_hoding (enable, uploadcycle_work, uploadcycle_free,
  157. lowpowerlimit, hotalarmlimit, retain,
  158. time_count, indate)
  159. values (#{enable,jdbcType=INTEGER}, #{uploadcycleWork,jdbcType=INTEGER}, #{uploadcycleFree,jdbcType=INTEGER},
  160. #{lowpowerlimit,jdbcType=VARCHAR}, #{hotalarmlimit,jdbcType=INTEGER}, #{retain,jdbcType=INTEGER},
  161. #{timeCount,jdbcType=INTEGER}, #{indate,jdbcType=TIMESTAMP})
  162. </insert>
  163. <insert id="insertSelective" parameterType="com.js.kbt.model.MouldHoding">
  164. <!--
  165. WARNING - @mbg.generated
  166. This element is automatically generated by MyBatis Generator, do not modify.
  167. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  168. -->
  169. <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
  170. SELECT LAST_INSERT_ID()
  171. </selectKey>
  172. insert into mould_hoding
  173. <trim prefix="(" suffix=")" suffixOverrides=",">
  174. <if test="enable != null">
  175. enable,
  176. </if>
  177. <if test="uploadcycleWork != null">
  178. uploadcycle_work,
  179. </if>
  180. <if test="uploadcycleFree != null">
  181. uploadcycle_free,
  182. </if>
  183. <if test="lowpowerlimit != null">
  184. lowpowerlimit,
  185. </if>
  186. <if test="hotalarmlimit != null">
  187. hotalarmlimit,
  188. </if>
  189. <if test="retain != null">
  190. retain,
  191. </if>
  192. <if test="timeCount != null">
  193. time_count,
  194. </if>
  195. <if test="indate != null">
  196. indate,
  197. </if>
  198. </trim>
  199. <trim prefix="values (" suffix=")" suffixOverrides=",">
  200. <if test="enable != null">
  201. #{enable,jdbcType=INTEGER},
  202. </if>
  203. <if test="uploadcycleWork != null">
  204. #{uploadcycleWork,jdbcType=INTEGER},
  205. </if>
  206. <if test="uploadcycleFree != null">
  207. #{uploadcycleFree,jdbcType=INTEGER},
  208. </if>
  209. <if test="lowpowerlimit != null">
  210. #{lowpowerlimit,jdbcType=VARCHAR},
  211. </if>
  212. <if test="hotalarmlimit != null">
  213. #{hotalarmlimit,jdbcType=INTEGER},
  214. </if>
  215. <if test="retain != null">
  216. #{retain,jdbcType=INTEGER},
  217. </if>
  218. <if test="timeCount != null">
  219. #{timeCount,jdbcType=INTEGER},
  220. </if>
  221. <if test="indate != null">
  222. #{indate,jdbcType=TIMESTAMP},
  223. </if>
  224. </trim>
  225. </insert>
  226. <select id="countByExample" parameterType="com.js.kbt.model.MouldHodingExample" resultType="java.lang.Long">
  227. <!--
  228. WARNING - @mbg.generated
  229. This element is automatically generated by MyBatis Generator, do not modify.
  230. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  231. -->
  232. select count(*) from mould_hoding
  233. <if test="_parameter != null">
  234. <include refid="Example_Where_Clause" />
  235. </if>
  236. </select>
  237. <update id="updateByExampleSelective" parameterType="map">
  238. <!--
  239. WARNING - @mbg.generated
  240. This element is automatically generated by MyBatis Generator, do not modify.
  241. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  242. -->
  243. update mould_hoding
  244. <set>
  245. <if test="record.id != null">
  246. id = #{record.id,jdbcType=INTEGER},
  247. </if>
  248. <if test="record.enable != null">
  249. enable = #{record.enable,jdbcType=INTEGER},
  250. </if>
  251. <if test="record.uploadcycleWork != null">
  252. uploadcycle_work = #{record.uploadcycleWork,jdbcType=INTEGER},
  253. </if>
  254. <if test="record.uploadcycleFree != null">
  255. uploadcycle_free = #{record.uploadcycleFree,jdbcType=INTEGER},
  256. </if>
  257. <if test="record.lowpowerlimit != null">
  258. lowpowerlimit = #{record.lowpowerlimit,jdbcType=VARCHAR},
  259. </if>
  260. <if test="record.hotalarmlimit != null">
  261. hotalarmlimit = #{record.hotalarmlimit,jdbcType=INTEGER},
  262. </if>
  263. <if test="record.retain != null">
  264. retain = #{record.retain,jdbcType=INTEGER},
  265. </if>
  266. <if test="record.timeCount != null">
  267. time_count = #{record.timeCount,jdbcType=INTEGER},
  268. </if>
  269. <if test="record.indate != null">
  270. indate = #{record.indate,jdbcType=TIMESTAMP},
  271. </if>
  272. </set>
  273. <if test="_parameter != null">
  274. <include refid="Update_By_Example_Where_Clause" />
  275. </if>
  276. </update>
  277. <update id="updateByExample" parameterType="map">
  278. <!--
  279. WARNING - @mbg.generated
  280. This element is automatically generated by MyBatis Generator, do not modify.
  281. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  282. -->
  283. update mould_hoding
  284. set id = #{record.id,jdbcType=INTEGER},
  285. enable = #{record.enable,jdbcType=INTEGER},
  286. uploadcycle_work = #{record.uploadcycleWork,jdbcType=INTEGER},
  287. uploadcycle_free = #{record.uploadcycleFree,jdbcType=INTEGER},
  288. lowpowerlimit = #{record.lowpowerlimit,jdbcType=VARCHAR},
  289. hotalarmlimit = #{record.hotalarmlimit,jdbcType=INTEGER},
  290. retain = #{record.retain,jdbcType=INTEGER},
  291. time_count = #{record.timeCount,jdbcType=INTEGER},
  292. indate = #{record.indate,jdbcType=TIMESTAMP}
  293. <if test="_parameter != null">
  294. <include refid="Update_By_Example_Where_Clause" />
  295. </if>
  296. </update>
  297. <update id="updateByPrimaryKeySelective" parameterType="com.js.kbt.model.MouldHoding">
  298. <!--
  299. WARNING - @mbg.generated
  300. This element is automatically generated by MyBatis Generator, do not modify.
  301. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  302. -->
  303. update mould_hoding
  304. <set>
  305. <if test="enable != null">
  306. enable = #{enable,jdbcType=INTEGER},
  307. </if>
  308. <if test="uploadcycleWork != null">
  309. uploadcycle_work = #{uploadcycleWork,jdbcType=INTEGER},
  310. </if>
  311. <if test="uploadcycleFree != null">
  312. uploadcycle_free = #{uploadcycleFree,jdbcType=INTEGER},
  313. </if>
  314. <if test="lowpowerlimit != null">
  315. lowpowerlimit = #{lowpowerlimit,jdbcType=VARCHAR},
  316. </if>
  317. <if test="hotalarmlimit != null">
  318. hotalarmlimit = #{hotalarmlimit,jdbcType=INTEGER},
  319. </if>
  320. <if test="retain != null">
  321. retain = #{retain,jdbcType=INTEGER},
  322. </if>
  323. <if test="timeCount != null">
  324. time_count = #{timeCount,jdbcType=INTEGER},
  325. </if>
  326. <if test="indate != null">
  327. indate = #{indate,jdbcType=TIMESTAMP},
  328. </if>
  329. </set>
  330. where id = #{id,jdbcType=INTEGER}
  331. </update>
  332. <update id="updateByPrimaryKey" parameterType="com.js.kbt.model.MouldHoding">
  333. <!--
  334. WARNING - @mbg.generated
  335. This element is automatically generated by MyBatis Generator, do not modify.
  336. This element was generated on Tue Oct 08 17:17:36 CST 2019.
  337. -->
  338. update mould_hoding
  339. set enable = #{enable,jdbcType=INTEGER},
  340. uploadcycle_work = #{uploadcycleWork,jdbcType=INTEGER},
  341. uploadcycle_free = #{uploadcycleFree,jdbcType=INTEGER},
  342. lowpowerlimit = #{lowpowerlimit,jdbcType=VARCHAR},
  343. hotalarmlimit = #{hotalarmlimit,jdbcType=INTEGER},
  344. retain = #{retain,jdbcType=INTEGER},
  345. time_count = #{timeCount,jdbcType=INTEGER},
  346. indate = #{indate,jdbcType=TIMESTAMP}
  347. where id = #{id,jdbcType=INTEGER}
  348. </update>
  349. </mapper>