TbMouldMapper.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  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.TbMouldMapper">
  4. <resultMap id="BaseResultMap" type="com.js.kbt.model.TbMould">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  9. -->
  10. <id column="id" jdbcType="INTEGER" property="id" />
  11. <result column="model_no" jdbcType="VARCHAR" property="modelNo" />
  12. <result column="model_name" jdbcType="VARCHAR" property="modelName" />
  13. <result column="water_gap" jdbcType="DECIMAL" property="waterGap" />
  14. <result column="tonnage" jdbcType="DECIMAL" property="tonnage" />
  15. <result column="oc_cycle" jdbcType="DECIMAL" property="ocCycle" />
  16. <result column="daily_output" jdbcType="DECIMAL" property="dailyOutput" />
  17. <result column="company_id" jdbcType="INTEGER" property="companyId" />
  18. <result column="current_version_id" jdbcType="INTEGER" property="currentVersionId" />
  19. <result column="state" jdbcType="VARCHAR" property="state" />
  20. <result column="is_delete" jdbcType="INTEGER" property="isDelete" />
  21. <result column="creator_id" jdbcType="INTEGER" property="creatorId" />
  22. <result column="project_id" jdbcType="INTEGER" property="projectId" />
  23. <result column="rfid" jdbcType="VARCHAR" property="rfid" />
  24. <result column="setting_life" jdbcType="INTEGER" property="settingLife" />
  25. <result column="area" jdbcType="VARCHAR" property="area" />
  26. <result column="produce_company_name" jdbcType="VARCHAR" property="produceCompanyName" />
  27. <result column="initial_modulus" jdbcType="INTEGER" property="initialModulus" />
  28. <result column="equipment_id" jdbcType="INTEGER" property="equipmentId" />
  29. <result column="belong_project_grade" jdbcType="VARCHAR" property="belongProjectGrade" />
  30. <result column="produce_company_id" jdbcType="INTEGER" property="produceCompanyId" />
  31. <result column="run_times" jdbcType="INTEGER" property="runTimes" />
  32. <result column="is_maintain" jdbcType="INTEGER" property="isMaintain" />
  33. <result column="maintain_count" jdbcType="VARCHAR" property="maintainCount" />
  34. <result column="holes" jdbcType="VARCHAR" property="holes" />
  35. <result column="pre_update_id" jdbcType="INTEGER" property="preUpdateId" />
  36. <result column="history_run_times" jdbcType="INTEGER" property="historyRunTimes" />
  37. <result column="last_rec_time" jdbcType="TIMESTAMP" property="lastRecTime" />
  38. </resultMap>
  39. <sql id="Example_Where_Clause">
  40. <!--
  41. WARNING - @mbg.generated
  42. This element is automatically generated by MyBatis Generator, do not modify.
  43. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  44. -->
  45. <where>
  46. <foreach collection="oredCriteria" item="criteria" separator="or">
  47. <if test="criteria.valid">
  48. <trim prefix="(" prefixOverrides="and" suffix=")">
  49. <foreach collection="criteria.criteria" item="criterion">
  50. <choose>
  51. <when test="criterion.noValue">
  52. and ${criterion.condition}
  53. </when>
  54. <when test="criterion.singleValue">
  55. and ${criterion.condition} #{criterion.value}
  56. </when>
  57. <when test="criterion.betweenValue">
  58. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  59. </when>
  60. <when test="criterion.listValue">
  61. and ${criterion.condition}
  62. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  63. #{listItem}
  64. </foreach>
  65. </when>
  66. </choose>
  67. </foreach>
  68. </trim>
  69. </if>
  70. </foreach>
  71. </where>
  72. </sql>
  73. <sql id="Update_By_Example_Where_Clause">
  74. <!--
  75. WARNING - @mbg.generated
  76. This element is automatically generated by MyBatis Generator, do not modify.
  77. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  78. -->
  79. <where>
  80. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  81. <if test="criteria.valid">
  82. <trim prefix="(" prefixOverrides="and" suffix=")">
  83. <foreach collection="criteria.criteria" item="criterion">
  84. <choose>
  85. <when test="criterion.noValue">
  86. and ${criterion.condition}
  87. </when>
  88. <when test="criterion.singleValue">
  89. and ${criterion.condition} #{criterion.value}
  90. </when>
  91. <when test="criterion.betweenValue">
  92. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  93. </when>
  94. <when test="criterion.listValue">
  95. and ${criterion.condition}
  96. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  97. #{listItem}
  98. </foreach>
  99. </when>
  100. </choose>
  101. </foreach>
  102. </trim>
  103. </if>
  104. </foreach>
  105. </where>
  106. </sql>
  107. <sql id="Base_Column_List">
  108. <!--
  109. WARNING - @mbg.generated
  110. This element is automatically generated by MyBatis Generator, do not modify.
  111. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  112. -->
  113. id, model_no, model_name, water_gap, tonnage, oc_cycle, daily_output, company_id,
  114. current_version_id, state, is_delete, creator_id, project_id, rfid, setting_life,
  115. area, produce_company_name, initial_modulus, equipment_id, belong_project_grade,
  116. produce_company_id, run_times, is_maintain, maintain_count, holes, pre_update_id,
  117. history_run_times, last_rec_time
  118. </sql>
  119. <select id="selectByExample" parameterType="com.js.kbt.model.TbMouldExample" resultMap="BaseResultMap">
  120. <!--
  121. WARNING - @mbg.generated
  122. This element is automatically generated by MyBatis Generator, do not modify.
  123. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  124. -->
  125. select
  126. <if test="distinct">
  127. distinct
  128. </if>
  129. <include refid="Base_Column_List" />
  130. from tb_mould
  131. <if test="_parameter != null">
  132. <include refid="Example_Where_Clause" />
  133. </if>
  134. <if test="orderByClause != null">
  135. order by ${orderByClause}
  136. </if>
  137. </select>
  138. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  139. <!--
  140. WARNING - @mbg.generated
  141. This element is automatically generated by MyBatis Generator, do not modify.
  142. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  143. -->
  144. select
  145. <include refid="Base_Column_List" />
  146. from tb_mould
  147. where id = #{id,jdbcType=INTEGER}
  148. </select>
  149. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  150. <!--
  151. WARNING - @mbg.generated
  152. This element is automatically generated by MyBatis Generator, do not modify.
  153. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  154. -->
  155. delete from tb_mould
  156. where id = #{id,jdbcType=INTEGER}
  157. </delete>
  158. <delete id="deleteByExample" parameterType="com.js.kbt.model.TbMouldExample">
  159. <!--
  160. WARNING - @mbg.generated
  161. This element is automatically generated by MyBatis Generator, do not modify.
  162. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  163. -->
  164. delete from tb_mould
  165. <if test="_parameter != null">
  166. <include refid="Example_Where_Clause" />
  167. </if>
  168. </delete>
  169. <insert id="insert" parameterType="com.js.kbt.model.TbMould">
  170. <!--
  171. WARNING - @mbg.generated
  172. This element is automatically generated by MyBatis Generator, do not modify.
  173. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  174. -->
  175. <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
  176. SELECT LAST_INSERT_ID()
  177. </selectKey>
  178. insert into tb_mould (model_no, model_name, water_gap,
  179. tonnage, oc_cycle, daily_output,
  180. company_id, current_version_id, state,
  181. is_delete, creator_id, project_id,
  182. rfid, setting_life, area,
  183. produce_company_name, initial_modulus, equipment_id,
  184. belong_project_grade, produce_company_id, run_times,
  185. is_maintain, maintain_count, holes,
  186. pre_update_id, history_run_times, last_rec_time
  187. )
  188. values (#{modelNo,jdbcType=VARCHAR}, #{modelName,jdbcType=VARCHAR}, #{waterGap,jdbcType=DECIMAL},
  189. #{tonnage,jdbcType=DECIMAL}, #{ocCycle,jdbcType=DECIMAL}, #{dailyOutput,jdbcType=DECIMAL},
  190. #{companyId,jdbcType=INTEGER}, #{currentVersionId,jdbcType=INTEGER}, #{state,jdbcType=VARCHAR},
  191. #{isDelete,jdbcType=INTEGER}, #{creatorId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER},
  192. #{rfid,jdbcType=VARCHAR}, #{settingLife,jdbcType=INTEGER}, #{area,jdbcType=VARCHAR},
  193. #{produceCompanyName,jdbcType=VARCHAR}, #{initialModulus,jdbcType=INTEGER}, #{equipmentId,jdbcType=INTEGER},
  194. #{belongProjectGrade,jdbcType=VARCHAR}, #{produceCompanyId,jdbcType=INTEGER}, #{runTimes,jdbcType=INTEGER},
  195. #{isMaintain,jdbcType=INTEGER}, #{maintainCount,jdbcType=VARCHAR}, #{holes,jdbcType=VARCHAR},
  196. #{preUpdateId,jdbcType=INTEGER}, #{historyRunTimes,jdbcType=INTEGER}, #{lastRecTime,jdbcType=TIMESTAMP}
  197. )
  198. </insert>
  199. <insert id="insertSelective" parameterType="com.js.kbt.model.TbMould">
  200. <!--
  201. WARNING - @mbg.generated
  202. This element is automatically generated by MyBatis Generator, do not modify.
  203. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  204. -->
  205. <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
  206. SELECT LAST_INSERT_ID()
  207. </selectKey>
  208. insert into tb_mould
  209. <trim prefix="(" suffix=")" suffixOverrides=",">
  210. <if test="modelNo != null">
  211. model_no,
  212. </if>
  213. <if test="modelName != null">
  214. model_name,
  215. </if>
  216. <if test="waterGap != null">
  217. water_gap,
  218. </if>
  219. <if test="tonnage != null">
  220. tonnage,
  221. </if>
  222. <if test="ocCycle != null">
  223. oc_cycle,
  224. </if>
  225. <if test="dailyOutput != null">
  226. daily_output,
  227. </if>
  228. <if test="companyId != null">
  229. company_id,
  230. </if>
  231. <if test="currentVersionId != null">
  232. current_version_id,
  233. </if>
  234. <if test="state != null">
  235. state,
  236. </if>
  237. <if test="isDelete != null">
  238. is_delete,
  239. </if>
  240. <if test="creatorId != null">
  241. creator_id,
  242. </if>
  243. <if test="projectId != null">
  244. project_id,
  245. </if>
  246. <if test="rfid != null">
  247. rfid,
  248. </if>
  249. <if test="settingLife != null">
  250. setting_life,
  251. </if>
  252. <if test="area != null">
  253. area,
  254. </if>
  255. <if test="produceCompanyName != null">
  256. produce_company_name,
  257. </if>
  258. <if test="initialModulus != null">
  259. initial_modulus,
  260. </if>
  261. <if test="equipmentId != null">
  262. equipment_id,
  263. </if>
  264. <if test="belongProjectGrade != null">
  265. belong_project_grade,
  266. </if>
  267. <if test="produceCompanyId != null">
  268. produce_company_id,
  269. </if>
  270. <if test="runTimes != null">
  271. run_times,
  272. </if>
  273. <if test="isMaintain != null">
  274. is_maintain,
  275. </if>
  276. <if test="maintainCount != null">
  277. maintain_count,
  278. </if>
  279. <if test="holes != null">
  280. holes,
  281. </if>
  282. <if test="preUpdateId != null">
  283. pre_update_id,
  284. </if>
  285. <if test="historyRunTimes != null">
  286. history_run_times,
  287. </if>
  288. <if test="lastRecTime != null">
  289. last_rec_time,
  290. </if>
  291. </trim>
  292. <trim prefix="values (" suffix=")" suffixOverrides=",">
  293. <if test="modelNo != null">
  294. #{modelNo,jdbcType=VARCHAR},
  295. </if>
  296. <if test="modelName != null">
  297. #{modelName,jdbcType=VARCHAR},
  298. </if>
  299. <if test="waterGap != null">
  300. #{waterGap,jdbcType=DECIMAL},
  301. </if>
  302. <if test="tonnage != null">
  303. #{tonnage,jdbcType=DECIMAL},
  304. </if>
  305. <if test="ocCycle != null">
  306. #{ocCycle,jdbcType=DECIMAL},
  307. </if>
  308. <if test="dailyOutput != null">
  309. #{dailyOutput,jdbcType=DECIMAL},
  310. </if>
  311. <if test="companyId != null">
  312. #{companyId,jdbcType=INTEGER},
  313. </if>
  314. <if test="currentVersionId != null">
  315. #{currentVersionId,jdbcType=INTEGER},
  316. </if>
  317. <if test="state != null">
  318. #{state,jdbcType=VARCHAR},
  319. </if>
  320. <if test="isDelete != null">
  321. #{isDelete,jdbcType=INTEGER},
  322. </if>
  323. <if test="creatorId != null">
  324. #{creatorId,jdbcType=INTEGER},
  325. </if>
  326. <if test="projectId != null">
  327. #{projectId,jdbcType=INTEGER},
  328. </if>
  329. <if test="rfid != null">
  330. #{rfid,jdbcType=VARCHAR},
  331. </if>
  332. <if test="settingLife != null">
  333. #{settingLife,jdbcType=INTEGER},
  334. </if>
  335. <if test="area != null">
  336. #{area,jdbcType=VARCHAR},
  337. </if>
  338. <if test="produceCompanyName != null">
  339. #{produceCompanyName,jdbcType=VARCHAR},
  340. </if>
  341. <if test="initialModulus != null">
  342. #{initialModulus,jdbcType=INTEGER},
  343. </if>
  344. <if test="equipmentId != null">
  345. #{equipmentId,jdbcType=INTEGER},
  346. </if>
  347. <if test="belongProjectGrade != null">
  348. #{belongProjectGrade,jdbcType=VARCHAR},
  349. </if>
  350. <if test="produceCompanyId != null">
  351. #{produceCompanyId,jdbcType=INTEGER},
  352. </if>
  353. <if test="runTimes != null">
  354. #{runTimes,jdbcType=INTEGER},
  355. </if>
  356. <if test="isMaintain != null">
  357. #{isMaintain,jdbcType=INTEGER},
  358. </if>
  359. <if test="maintainCount != null">
  360. #{maintainCount,jdbcType=VARCHAR},
  361. </if>
  362. <if test="holes != null">
  363. #{holes,jdbcType=VARCHAR},
  364. </if>
  365. <if test="preUpdateId != null">
  366. #{preUpdateId,jdbcType=INTEGER},
  367. </if>
  368. <if test="historyRunTimes != null">
  369. #{historyRunTimes,jdbcType=INTEGER},
  370. </if>
  371. <if test="lastRecTime != null">
  372. #{lastRecTime,jdbcType=TIMESTAMP},
  373. </if>
  374. </trim>
  375. </insert>
  376. <select id="countByExample" parameterType="com.js.kbt.model.TbMouldExample" resultType="java.lang.Long">
  377. <!--
  378. WARNING - @mbg.generated
  379. This element is automatically generated by MyBatis Generator, do not modify.
  380. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  381. -->
  382. select count(*) from tb_mould
  383. <if test="_parameter != null">
  384. <include refid="Example_Where_Clause" />
  385. </if>
  386. </select>
  387. <update id="updateByExampleSelective" parameterType="map">
  388. <!--
  389. WARNING - @mbg.generated
  390. This element is automatically generated by MyBatis Generator, do not modify.
  391. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  392. -->
  393. update tb_mould
  394. <set>
  395. <if test="record.id != null">
  396. id = #{record.id,jdbcType=INTEGER},
  397. </if>
  398. <if test="record.modelNo != null">
  399. model_no = #{record.modelNo,jdbcType=VARCHAR},
  400. </if>
  401. <if test="record.modelName != null">
  402. model_name = #{record.modelName,jdbcType=VARCHAR},
  403. </if>
  404. <if test="record.waterGap != null">
  405. water_gap = #{record.waterGap,jdbcType=DECIMAL},
  406. </if>
  407. <if test="record.tonnage != null">
  408. tonnage = #{record.tonnage,jdbcType=DECIMAL},
  409. </if>
  410. <if test="record.ocCycle != null">
  411. oc_cycle = #{record.ocCycle,jdbcType=DECIMAL},
  412. </if>
  413. <if test="record.dailyOutput != null">
  414. daily_output = #{record.dailyOutput,jdbcType=DECIMAL},
  415. </if>
  416. <if test="record.companyId != null">
  417. company_id = #{record.companyId,jdbcType=INTEGER},
  418. </if>
  419. <if test="record.currentVersionId != null">
  420. current_version_id = #{record.currentVersionId,jdbcType=INTEGER},
  421. </if>
  422. <if test="record.state != null">
  423. state = #{record.state,jdbcType=VARCHAR},
  424. </if>
  425. <if test="record.isDelete != null">
  426. is_delete = #{record.isDelete,jdbcType=INTEGER},
  427. </if>
  428. <if test="record.creatorId != null">
  429. creator_id = #{record.creatorId,jdbcType=INTEGER},
  430. </if>
  431. <if test="record.projectId != null">
  432. project_id = #{record.projectId,jdbcType=INTEGER},
  433. </if>
  434. <if test="record.rfid != null">
  435. rfid = #{record.rfid,jdbcType=VARCHAR},
  436. </if>
  437. <if test="record.settingLife != null">
  438. setting_life = #{record.settingLife,jdbcType=INTEGER},
  439. </if>
  440. <if test="record.area != null">
  441. area = #{record.area,jdbcType=VARCHAR},
  442. </if>
  443. <if test="record.produceCompanyName != null">
  444. produce_company_name = #{record.produceCompanyName,jdbcType=VARCHAR},
  445. </if>
  446. <if test="record.initialModulus != null">
  447. initial_modulus = #{record.initialModulus,jdbcType=INTEGER},
  448. </if>
  449. <if test="record.equipmentId != null">
  450. equipment_id = #{record.equipmentId,jdbcType=INTEGER},
  451. </if>
  452. <if test="record.belongProjectGrade != null">
  453. belong_project_grade = #{record.belongProjectGrade,jdbcType=VARCHAR},
  454. </if>
  455. <if test="record.produceCompanyId != null">
  456. produce_company_id = #{record.produceCompanyId,jdbcType=INTEGER},
  457. </if>
  458. <if test="record.runTimes != null">
  459. run_times = #{record.runTimes,jdbcType=INTEGER},
  460. </if>
  461. <if test="record.isMaintain != null">
  462. is_maintain = #{record.isMaintain,jdbcType=INTEGER},
  463. </if>
  464. <if test="record.maintainCount != null">
  465. maintain_count = #{record.maintainCount,jdbcType=VARCHAR},
  466. </if>
  467. <if test="record.holes != null">
  468. holes = #{record.holes,jdbcType=VARCHAR},
  469. </if>
  470. <if test="record.preUpdateId != null">
  471. pre_update_id = #{record.preUpdateId,jdbcType=INTEGER},
  472. </if>
  473. <if test="record.historyRunTimes != null">
  474. history_run_times = #{record.historyRunTimes,jdbcType=INTEGER},
  475. </if>
  476. <if test="record.lastRecTime != null">
  477. last_rec_time = #{record.lastRecTime,jdbcType=TIMESTAMP},
  478. </if>
  479. </set>
  480. <if test="_parameter != null">
  481. <include refid="Update_By_Example_Where_Clause" />
  482. </if>
  483. </update>
  484. <update id="updateByExample" parameterType="map">
  485. <!--
  486. WARNING - @mbg.generated
  487. This element is automatically generated by MyBatis Generator, do not modify.
  488. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  489. -->
  490. update tb_mould
  491. set id = #{record.id,jdbcType=INTEGER},
  492. model_no = #{record.modelNo,jdbcType=VARCHAR},
  493. model_name = #{record.modelName,jdbcType=VARCHAR},
  494. water_gap = #{record.waterGap,jdbcType=DECIMAL},
  495. tonnage = #{record.tonnage,jdbcType=DECIMAL},
  496. oc_cycle = #{record.ocCycle,jdbcType=DECIMAL},
  497. daily_output = #{record.dailyOutput,jdbcType=DECIMAL},
  498. company_id = #{record.companyId,jdbcType=INTEGER},
  499. current_version_id = #{record.currentVersionId,jdbcType=INTEGER},
  500. state = #{record.state,jdbcType=VARCHAR},
  501. is_delete = #{record.isDelete,jdbcType=INTEGER},
  502. creator_id = #{record.creatorId,jdbcType=INTEGER},
  503. project_id = #{record.projectId,jdbcType=INTEGER},
  504. rfid = #{record.rfid,jdbcType=VARCHAR},
  505. setting_life = #{record.settingLife,jdbcType=INTEGER},
  506. area = #{record.area,jdbcType=VARCHAR},
  507. produce_company_name = #{record.produceCompanyName,jdbcType=VARCHAR},
  508. initial_modulus = #{record.initialModulus,jdbcType=INTEGER},
  509. equipment_id = #{record.equipmentId,jdbcType=INTEGER},
  510. belong_project_grade = #{record.belongProjectGrade,jdbcType=VARCHAR},
  511. produce_company_id = #{record.produceCompanyId,jdbcType=INTEGER},
  512. run_times = #{record.runTimes,jdbcType=INTEGER},
  513. is_maintain = #{record.isMaintain,jdbcType=INTEGER},
  514. maintain_count = #{record.maintainCount,jdbcType=VARCHAR},
  515. holes = #{record.holes,jdbcType=VARCHAR},
  516. pre_update_id = #{record.preUpdateId,jdbcType=INTEGER},
  517. history_run_times = #{record.historyRunTimes,jdbcType=INTEGER},
  518. last_rec_time = #{record.lastRecTime,jdbcType=TIMESTAMP}
  519. <if test="_parameter != null">
  520. <include refid="Update_By_Example_Where_Clause" />
  521. </if>
  522. </update>
  523. <update id="updateByPrimaryKeySelective" parameterType="com.js.kbt.model.TbMould">
  524. <!--
  525. WARNING - @mbg.generated
  526. This element is automatically generated by MyBatis Generator, do not modify.
  527. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  528. -->
  529. update tb_mould
  530. <set>
  531. <if test="modelNo != null">
  532. model_no = #{modelNo,jdbcType=VARCHAR},
  533. </if>
  534. <if test="modelName != null">
  535. model_name = #{modelName,jdbcType=VARCHAR},
  536. </if>
  537. <if test="waterGap != null">
  538. water_gap = #{waterGap,jdbcType=DECIMAL},
  539. </if>
  540. <if test="tonnage != null">
  541. tonnage = #{tonnage,jdbcType=DECIMAL},
  542. </if>
  543. <if test="ocCycle != null">
  544. oc_cycle = #{ocCycle,jdbcType=DECIMAL},
  545. </if>
  546. <if test="dailyOutput != null">
  547. daily_output = #{dailyOutput,jdbcType=DECIMAL},
  548. </if>
  549. <if test="companyId != null">
  550. company_id = #{companyId,jdbcType=INTEGER},
  551. </if>
  552. <if test="currentVersionId != null">
  553. current_version_id = #{currentVersionId,jdbcType=INTEGER},
  554. </if>
  555. <if test="state != null">
  556. state = #{state,jdbcType=VARCHAR},
  557. </if>
  558. <if test="isDelete != null">
  559. is_delete = #{isDelete,jdbcType=INTEGER},
  560. </if>
  561. <if test="creatorId != null">
  562. creator_id = #{creatorId,jdbcType=INTEGER},
  563. </if>
  564. <if test="projectId != null">
  565. project_id = #{projectId,jdbcType=INTEGER},
  566. </if>
  567. <if test="rfid != null">
  568. rfid = #{rfid,jdbcType=VARCHAR},
  569. </if>
  570. <if test="settingLife != null">
  571. setting_life = #{settingLife,jdbcType=INTEGER},
  572. </if>
  573. <if test="area != null">
  574. area = #{area,jdbcType=VARCHAR},
  575. </if>
  576. <if test="produceCompanyName != null">
  577. produce_company_name = #{produceCompanyName,jdbcType=VARCHAR},
  578. </if>
  579. <if test="initialModulus != null">
  580. initial_modulus = #{initialModulus,jdbcType=INTEGER},
  581. </if>
  582. <if test="equipmentId != null">
  583. equipment_id = #{equipmentId,jdbcType=INTEGER},
  584. </if>
  585. <if test="belongProjectGrade != null">
  586. belong_project_grade = #{belongProjectGrade,jdbcType=VARCHAR},
  587. </if>
  588. <if test="produceCompanyId != null">
  589. produce_company_id = #{produceCompanyId,jdbcType=INTEGER},
  590. </if>
  591. <if test="runTimes != null">
  592. run_times = #{runTimes,jdbcType=INTEGER},
  593. </if>
  594. <if test="isMaintain != null">
  595. is_maintain = #{isMaintain,jdbcType=INTEGER},
  596. </if>
  597. <if test="maintainCount != null">
  598. maintain_count = #{maintainCount,jdbcType=VARCHAR},
  599. </if>
  600. <if test="holes != null">
  601. holes = #{holes,jdbcType=VARCHAR},
  602. </if>
  603. <if test="preUpdateId != null">
  604. pre_update_id = #{preUpdateId,jdbcType=INTEGER},
  605. </if>
  606. <if test="historyRunTimes != null">
  607. history_run_times = #{historyRunTimes,jdbcType=INTEGER},
  608. </if>
  609. <if test="lastRecTime != null">
  610. last_rec_time = #{lastRecTime,jdbcType=TIMESTAMP},
  611. </if>
  612. </set>
  613. where id = #{id,jdbcType=INTEGER}
  614. </update>
  615. <update id="updateByPrimaryKey" parameterType="com.js.kbt.model.TbMould">
  616. <!--
  617. WARNING - @mbg.generated
  618. This element is automatically generated by MyBatis Generator, do not modify.
  619. This element was generated on Mon Oct 28 20:22:26 CST 2019.
  620. -->
  621. update tb_mould
  622. set model_no = #{modelNo,jdbcType=VARCHAR},
  623. model_name = #{modelName,jdbcType=VARCHAR},
  624. water_gap = #{waterGap,jdbcType=DECIMAL},
  625. tonnage = #{tonnage,jdbcType=DECIMAL},
  626. oc_cycle = #{ocCycle,jdbcType=DECIMAL},
  627. daily_output = #{dailyOutput,jdbcType=DECIMAL},
  628. company_id = #{companyId,jdbcType=INTEGER},
  629. current_version_id = #{currentVersionId,jdbcType=INTEGER},
  630. state = #{state,jdbcType=VARCHAR},
  631. is_delete = #{isDelete,jdbcType=INTEGER},
  632. creator_id = #{creatorId,jdbcType=INTEGER},
  633. project_id = #{projectId,jdbcType=INTEGER},
  634. rfid = #{rfid,jdbcType=VARCHAR},
  635. setting_life = #{settingLife,jdbcType=INTEGER},
  636. area = #{area,jdbcType=VARCHAR},
  637. produce_company_name = #{produceCompanyName,jdbcType=VARCHAR},
  638. initial_modulus = #{initialModulus,jdbcType=INTEGER},
  639. equipment_id = #{equipmentId,jdbcType=INTEGER},
  640. belong_project_grade = #{belongProjectGrade,jdbcType=VARCHAR},
  641. produce_company_id = #{produceCompanyId,jdbcType=INTEGER},
  642. run_times = #{runTimes,jdbcType=INTEGER},
  643. is_maintain = #{isMaintain,jdbcType=INTEGER},
  644. maintain_count = #{maintainCount,jdbcType=VARCHAR},
  645. holes = #{holes,jdbcType=VARCHAR},
  646. pre_update_id = #{preUpdateId,jdbcType=INTEGER},
  647. history_run_times = #{historyRunTimes,jdbcType=INTEGER},
  648. last_rec_time = #{lastRecTime,jdbcType=TIMESTAMP}
  649. where id = #{id,jdbcType=INTEGER}
  650. </update>
  651. </mapper>