DailyRecordGlandNewFileMapper.xml 27 KB

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