DailyRecordGlandNewMapper.xml 27 KB

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