DailyRecordInnerNewMapper.xml 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  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.DailyRecordInnerNewMapper" >
  4. <resultMap id="BaseResultMap" type="cn.ourwill.module.house.entity.new_entity.DailyRecordInnerNew" >
  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="fan_type" property="fanType" jdbcType="VARCHAR" />
  13. <result column="aeration_type" property="aerationType" jdbcType="VARCHAR" />
  14. <result column="fan_style" property="fanStyle" jdbcType="VARCHAR" />
  15. <result column="fan_power" property="fanPower" jdbcType="VARCHAR" />
  16. <result column="temperature_end" property="temperatureEnd" jdbcType="VARCHAR" />
  17. <result column="fan_num" property="fanNum" jdbcType="VARCHAR" />
  18. <result column="food_width" property="foodWidth" jdbcType="VARCHAR" />
  19. <result column="temperature_start" property="temperatureStart" jdbcType="VARCHAR" />
  20. <result column="fan_total" property="fanTotal" jdbcType="VARCHAR" />
  21. <result column="fan_unit" property="fanUnit" jdbcType="VARCHAR" />
  22. <result column="fan_start" property="fanStart" jdbcType="VARCHAR" />
  23. <result column="fan_end" property="fanEnd" jdbcType="VARCHAR" />
  24. <result column="fan_time_total" property="fanTimeTotal" jdbcType="VARCHAR" />
  25. <result column="air_temperature_max" property="airTemperatureMax" jdbcType="VARCHAR" />
  26. <result column="air_temperature_min" property="airTemperatureMin" jdbcType="VARCHAR" />
  27. <result column="air_temperature_avg" property="airTemperatureAvg" jdbcType="VARCHAR" />
  28. <result column="air_humidity_max" property="airHumidityMax" jdbcType="VARCHAR" />
  29. <result column="air_humidity_min" property="airHumidityMin" jdbcType="VARCHAR" />
  30. <result column="air_humidity_avg" property="airHumidityAvg" jdbcType="VARCHAR" />
  31. <result column="temperature_front_max" property="temperatureFrontMax" jdbcType="VARCHAR" />
  32. <result column="temperature_front_min" property="temperatureFrontMin" jdbcType="VARCHAR" />
  33. <result column="temperature_front_avg" property="temperatureFrontAvg" jdbcType="VARCHAR" />
  34. <result column="temperature_after_max" property="temperatureAfterMax" jdbcType="VARCHAR" />
  35. <result column="temperature_after_min" property="temperatureAfterMin" jdbcType="VARCHAR" />
  36. <result column="temperature_after_avg" property="temperatureAfterAvg" jdbcType="VARCHAR" />
  37. <result column="water_front_max" property="waterFrontMax" jdbcType="VARCHAR" />
  38. <result column="water_front_min" property="waterFrontMin" jdbcType="VARCHAR" />
  39. <result column="water_front_avg" property="waterFrontAvg" jdbcType="VARCHAR" />
  40. <result column="water_after_max" property="waterAfterMax" jdbcType="VARCHAR" />
  41. <result column="water_after_min" property="waterAfterMin" jdbcType="VARCHAR" />
  42. <result column="water_after_avg" property="waterAfterAvg" jdbcType="VARCHAR" />
  43. <result column="temperature_width" property="temperatureWidth" jdbcType="VARCHAR" />
  44. <result column="water_width" property="waterWidth" jdbcType="VARCHAR" />
  45. <result column="total_elect" property="totalElect" jdbcType="VARCHAR" />
  46. <result column="elect_unit" property="electUnit" jdbcType="VARCHAR" />
  47. <result column="aeration_bug" property="aerationBug" jdbcType="VARCHAR" />
  48. <result column="work_user" property="workUser" jdbcType="VARCHAR" />
  49. <result column="approve_user" property="approveUser" jdbcType="VARCHAR" />
  50. <result column="remark" property="remark" jdbcType="VARCHAR" />
  51. <result column="fan_run" property="fanRun" jdbcType="VARCHAR" />
  52. <result column="house_humidity_max" property="houseHumidityMax" jdbcType="VARCHAR" />
  53. <result column="house_humidity_min" property="houseHumidityMin" jdbcType="VARCHAR" />
  54. <result column="house_humidity_avg" property="houseHumidityAvg" jdbcType="VARCHAR" />
  55. <result column="fan_run_max" property="fanRunMax" jdbcType="VARCHAR" />
  56. <result column="fan_run__min" property="fanRunMin" jdbcType="VARCHAR" />
  57. <result column="uuid" property="uuid" jdbcType="VARCHAR" />
  58. <result column="c_id" property="cId" jdbcType="INTEGER" />
  59. <result column="c_time" property="cTime" jdbcType="TIMESTAMP" />
  60. <result column="u_id" property="uId" jdbcType="INTEGER" />
  61. <result column="u_time" property="uTime" jdbcType="TIMESTAMP" />
  62. <result column="fan_run_avg" property="fanRunAvg" jdbcType="VARCHAR" />
  63. </resultMap>
  64. <sql id="Example_Where_Clause" >
  65. <where >
  66. <foreach collection="oredCriteria" item="criteria" separator="or" >
  67. <if test="criteria.valid" >
  68. <trim prefix="(" suffix=")" prefixOverrides="and" >
  69. <foreach collection="criteria.criteria" item="criterion" >
  70. <choose >
  71. <when test="criterion.noValue" >
  72. and ${criterion.condition}
  73. </when>
  74. <when test="criterion.singleValue" >
  75. and ${criterion.condition} #{criterion.value}
  76. </when>
  77. <when test="criterion.betweenValue" >
  78. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  79. </when>
  80. <when test="criterion.listValue" >
  81. and ${criterion.condition}
  82. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  83. #{listItem}
  84. </foreach>
  85. </when>
  86. </choose>
  87. </foreach>
  88. </trim>
  89. </if>
  90. </foreach>
  91. </where>
  92. </sql>
  93. <sql id="Update_By_Example_Where_Clause" >
  94. <where >
  95. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  96. <if test="criteria.valid" >
  97. <trim prefix="(" suffix=")" prefixOverrides="and" >
  98. <foreach collection="criteria.criteria" item="criterion" >
  99. <choose >
  100. <when test="criterion.noValue" >
  101. and ${criterion.condition}
  102. </when>
  103. <when test="criterion.singleValue" >
  104. and ${criterion.condition} #{criterion.value}
  105. </when>
  106. <when test="criterion.betweenValue" >
  107. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  108. </when>
  109. <when test="criterion.listValue" >
  110. and ${criterion.condition}
  111. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  112. #{listItem}
  113. </foreach>
  114. </when>
  115. </choose>
  116. </foreach>
  117. </trim>
  118. </if>
  119. </foreach>
  120. </where>
  121. </sql>
  122. <sql id="Base_Column_List" >
  123. id, house_id, grain_id, type, number, house_type, keep_warm, fan_type, aeration_type,
  124. fan_style, fan_power, temperature_end, fan_num, food_width, temperature_start, fan_total,
  125. fan_unit, fan_start, fan_end, fan_time_total, air_temperature_max, air_temperature_min,
  126. air_temperature_avg, air_humidity_max, air_humidity_min, air_humidity_avg, temperature_front_max,
  127. temperature_front_min, temperature_front_avg, temperature_after_max, temperature_after_min,
  128. temperature_after_avg, water_front_max, water_front_min, water_front_avg, water_after_max,
  129. water_after_min, water_after_avg, temperature_width, water_width, total_elect, elect_unit,
  130. aeration_bug, work_user, approve_user, remark, fan_run, house_humidity_max, house_humidity_min,
  131. house_humidity_avg, fan_run_max, fan_run__min, c_id, c_time, u_id, u_time, fan_run_avg
  132. </sql>
  133. <select id="selectByExample" resultMap="BaseResultMap" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordInnerNewExample" >
  134. select
  135. <if test="distinct" >
  136. distinct
  137. </if>
  138. <include refid="Base_Column_List" />
  139. from daily_record_inner_new
  140. <if test="_parameter != null" >
  141. <include refid="Example_Where_Clause" />
  142. </if>
  143. <if test="orderByClause != null" >
  144. order by ${orderByClause}
  145. </if>
  146. </select>
  147. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  148. select
  149. <include refid="Base_Column_List" />
  150. from daily_record_inner_new
  151. where id = #{id,jdbcType=INTEGER}
  152. </select>
  153. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  154. delete from daily_record_inner_new
  155. where id = #{id,jdbcType=INTEGER}
  156. </delete>
  157. <delete id="deleteByExample" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordInnerNewExample" >
  158. delete from daily_record_inner_new
  159. <if test="_parameter != null" >
  160. <include refid="Example_Where_Clause" />
  161. </if>
  162. </delete>
  163. <insert id="insert" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordInnerNew" >
  164. insert into daily_record_inner_new (id, house_id, grain_id,
  165. type, number, house_type,
  166. keep_warm, fan_type, aeration_type,
  167. fan_style, fan_power, temperature_end,
  168. fan_num, food_width, temperature_start,
  169. fan_total, fan_unit, fan_start,
  170. fan_end, fan_time_total, air_temperature_max,
  171. air_temperature_min, air_temperature_avg, air_humidity_max,
  172. air_humidity_min, air_humidity_avg, temperature_front_max,
  173. temperature_front_min, temperature_front_avg,
  174. temperature_after_max, temperature_after_min,
  175. temperature_after_avg, water_front_max, water_front_min,
  176. water_front_avg, water_after_max, water_after_min,
  177. water_after_avg, temperature_width, water_width,
  178. total_elect, elect_unit, aeration_bug,
  179. work_user, approve_user, remark,
  180. fan_run, house_humidity_max, house_humidity_min,
  181. house_humidity_avg, fan_run_max, fan_run__min,
  182. c_id, c_time, u_id,
  183. u_time, fan_run_avg)
  184. values (#{id,jdbcType=INTEGER}, #{houseId,jdbcType=INTEGER}, #{grainId,jdbcType=INTEGER},
  185. #{type,jdbcType=VARCHAR}, #{number,jdbcType=INTEGER}, #{houseType,jdbcType=VARCHAR},
  186. #{keepWarm,jdbcType=VARCHAR}, #{fanType,jdbcType=VARCHAR}, #{aerationType,jdbcType=VARCHAR},
  187. #{fanStyle,jdbcType=VARCHAR}, #{fanPower,jdbcType=VARCHAR}, #{temperatureEnd,jdbcType=VARCHAR},
  188. #{fanNum,jdbcType=VARCHAR}, #{foodWidth,jdbcType=VARCHAR}, #{temperatureStart,jdbcType=VARCHAR},
  189. #{fanTotal,jdbcType=VARCHAR}, #{fanUnit,jdbcType=VARCHAR}, #{fanStart,jdbcType=VARCHAR},
  190. #{fanEnd,jdbcType=VARCHAR}, #{fanTimeTotal,jdbcType=VARCHAR}, #{airTemperatureMax,jdbcType=VARCHAR},
  191. #{airTemperatureMin,jdbcType=VARCHAR}, #{airTemperatureAvg,jdbcType=VARCHAR}, #{airHumidityMax,jdbcType=VARCHAR},
  192. #{airHumidityMin,jdbcType=VARCHAR}, #{airHumidityAvg,jdbcType=VARCHAR}, #{temperatureFrontMax,jdbcType=VARCHAR},
  193. #{temperatureFrontMin,jdbcType=VARCHAR}, #{temperatureFrontAvg,jdbcType=VARCHAR},
  194. #{temperatureAfterMax,jdbcType=VARCHAR}, #{temperatureAfterMin,jdbcType=VARCHAR},
  195. #{temperatureAfterAvg,jdbcType=VARCHAR}, #{waterFrontMax,jdbcType=VARCHAR}, #{waterFrontMin,jdbcType=VARCHAR},
  196. #{waterFrontAvg,jdbcType=VARCHAR}, #{waterAfterMax,jdbcType=VARCHAR}, #{waterAfterMin,jdbcType=VARCHAR},
  197. #{waterAfterAvg,jdbcType=VARCHAR}, #{temperatureWidth,jdbcType=VARCHAR}, #{waterWidth,jdbcType=VARCHAR},
  198. #{totalElect,jdbcType=VARCHAR}, #{electUnit,jdbcType=VARCHAR}, #{aerationBug,jdbcType=VARCHAR},
  199. #{workUser,jdbcType=VARCHAR}, #{approveUser,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
  200. #{fanRun,jdbcType=VARCHAR}, #{houseHumidityMax,jdbcType=VARCHAR}, #{houseHumidityMin,jdbcType=VARCHAR},
  201. #{houseHumidityAvg,jdbcType=VARCHAR}, #{fanRunMax,jdbcType=VARCHAR}, #{fanRunMin,jdbcType=VARCHAR},
  202. #{cId,jdbcType=INTEGER}, #{cTime,jdbcType=TIMESTAMP}, #{uId,jdbcType=INTEGER},
  203. #{uTime,jdbcType=TIMESTAMP}, #{fanRunAvg,jdbcType=VARCHAR})
  204. </insert>
  205. <insert id="insertSelective" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordInnerNew" >
  206. insert into daily_record_inner_new
  207. <trim prefix="(" suffix=")" suffixOverrides="," >
  208. <if test="id != null" >
  209. id,
  210. </if>
  211. <if test="houseId != null" >
  212. house_id,
  213. </if>
  214. <if test="grainId != null" >
  215. grain_id,
  216. </if>
  217. <if test="type != null" >
  218. type,
  219. </if>
  220. <if test="number != null" >
  221. number,
  222. </if>
  223. <if test="houseType != null" >
  224. house_type,
  225. </if>
  226. <if test="keepWarm != null" >
  227. keep_warm,
  228. </if>
  229. <if test="fanType != null" >
  230. fan_type,
  231. </if>
  232. <if test="aerationType != null" >
  233. aeration_type,
  234. </if>
  235. <if test="fanStyle != null" >
  236. fan_style,
  237. </if>
  238. <if test="fanPower != null" >
  239. fan_power,
  240. </if>
  241. <if test="temperatureEnd != null" >
  242. temperature_end,
  243. </if>
  244. <if test="fanNum != null" >
  245. fan_num,
  246. </if>
  247. <if test="foodWidth != null" >
  248. food_width,
  249. </if>
  250. <if test="temperatureStart != null" >
  251. temperature_start,
  252. </if>
  253. <if test="fanTotal != null" >
  254. fan_total,
  255. </if>
  256. <if test="fanUnit != null" >
  257. fan_unit,
  258. </if>
  259. <if test="fanStart != null" >
  260. fan_start,
  261. </if>
  262. <if test="fanEnd != null" >
  263. fan_end,
  264. </if>
  265. <if test="fanTimeTotal != null" >
  266. fan_time_total,
  267. </if>
  268. <if test="airTemperatureMax != null" >
  269. air_temperature_max,
  270. </if>
  271. <if test="airTemperatureMin != null" >
  272. air_temperature_min,
  273. </if>
  274. <if test="airTemperatureAvg != null" >
  275. air_temperature_avg,
  276. </if>
  277. <if test="airHumidityMax != null" >
  278. air_humidity_max,
  279. </if>
  280. <if test="airHumidityMin != null" >
  281. air_humidity_min,
  282. </if>
  283. <if test="airHumidityAvg != null" >
  284. air_humidity_avg,
  285. </if>
  286. <if test="temperatureFrontMax != null" >
  287. temperature_front_max,
  288. </if>
  289. <if test="temperatureFrontMin != null" >
  290. temperature_front_min,
  291. </if>
  292. <if test="temperatureFrontAvg != null" >
  293. temperature_front_avg,
  294. </if>
  295. <if test="temperatureAfterMax != null" >
  296. temperature_after_max,
  297. </if>
  298. <if test="temperatureAfterMin != null" >
  299. temperature_after_min,
  300. </if>
  301. <if test="temperatureAfterAvg != null" >
  302. temperature_after_avg,
  303. </if>
  304. <if test="waterFrontMax != null" >
  305. water_front_max,
  306. </if>
  307. <if test="waterFrontMin != null" >
  308. water_front_min,
  309. </if>
  310. <if test="waterFrontAvg != null" >
  311. water_front_avg,
  312. </if>
  313. <if test="waterAfterMax != null" >
  314. water_after_max,
  315. </if>
  316. <if test="waterAfterMin != null" >
  317. water_after_min,
  318. </if>
  319. <if test="waterAfterAvg != null" >
  320. water_after_avg,
  321. </if>
  322. <if test="temperatureWidth != null" >
  323. temperature_width,
  324. </if>
  325. <if test="waterWidth != null" >
  326. water_width,
  327. </if>
  328. <if test="totalElect != null" >
  329. total_elect,
  330. </if>
  331. <if test="electUnit != null" >
  332. elect_unit,
  333. </if>
  334. <if test="aerationBug != null" >
  335. aeration_bug,
  336. </if>
  337. <if test="workUser != null" >
  338. work_user,
  339. </if>
  340. <if test="approveUser != null" >
  341. approve_user,
  342. </if>
  343. <if test="remark != null" >
  344. remark,
  345. </if>
  346. <if test="fanRun != null" >
  347. fan_run,
  348. </if>
  349. <if test="houseHumidityMax != null" >
  350. house_humidity_max,
  351. </if>
  352. <if test="houseHumidityMin != null" >
  353. house_humidity_min,
  354. </if>
  355. <if test="houseHumidityAvg != null" >
  356. house_humidity_avg,
  357. </if>
  358. <if test="fanRunMax != null" >
  359. fan_run_max,
  360. </if>
  361. <if test="fanRunMin != null" >
  362. fan_run__min,
  363. </if>
  364. <if test="cId != null" >
  365. c_id,
  366. </if>
  367. <if test="cTime != null" >
  368. c_time,
  369. </if>
  370. <if test="uId != null" >
  371. u_id,
  372. </if>
  373. <if test="uTime != null" >
  374. u_time,
  375. </if>
  376. <if test="fanRunAvg != null" >
  377. fan_run_avg,
  378. </if>
  379. </trim>
  380. <trim prefix="values (" suffix=")" suffixOverrides="," >
  381. <if test="id != null" >
  382. #{id,jdbcType=INTEGER},
  383. </if>
  384. <if test="houseId != null" >
  385. #{houseId,jdbcType=INTEGER},
  386. </if>
  387. <if test="grainId != null" >
  388. #{grainId,jdbcType=INTEGER},
  389. </if>
  390. <if test="type != null" >
  391. #{type,jdbcType=VARCHAR},
  392. </if>
  393. <if test="number != null" >
  394. #{number,jdbcType=INTEGER},
  395. </if>
  396. <if test="houseType != null" >
  397. #{houseType,jdbcType=VARCHAR},
  398. </if>
  399. <if test="keepWarm != null" >
  400. #{keepWarm,jdbcType=VARCHAR},
  401. </if>
  402. <if test="fanType != null" >
  403. #{fanType,jdbcType=VARCHAR},
  404. </if>
  405. <if test="aerationType != null" >
  406. #{aerationType,jdbcType=VARCHAR},
  407. </if>
  408. <if test="fanStyle != null" >
  409. #{fanStyle,jdbcType=VARCHAR},
  410. </if>
  411. <if test="fanPower != null" >
  412. #{fanPower,jdbcType=VARCHAR},
  413. </if>
  414. <if test="temperatureEnd != null" >
  415. #{temperatureEnd,jdbcType=VARCHAR},
  416. </if>
  417. <if test="fanNum != null" >
  418. #{fanNum,jdbcType=VARCHAR},
  419. </if>
  420. <if test="foodWidth != null" >
  421. #{foodWidth,jdbcType=VARCHAR},
  422. </if>
  423. <if test="temperatureStart != null" >
  424. #{temperatureStart,jdbcType=VARCHAR},
  425. </if>
  426. <if test="fanTotal != null" >
  427. #{fanTotal,jdbcType=VARCHAR},
  428. </if>
  429. <if test="fanUnit != null" >
  430. #{fanUnit,jdbcType=VARCHAR},
  431. </if>
  432. <if test="fanStart != null" >
  433. #{fanStart,jdbcType=VARCHAR},
  434. </if>
  435. <if test="fanEnd != null" >
  436. #{fanEnd,jdbcType=VARCHAR},
  437. </if>
  438. <if test="fanTimeTotal != null" >
  439. #{fanTimeTotal,jdbcType=VARCHAR},
  440. </if>
  441. <if test="airTemperatureMax != null" >
  442. #{airTemperatureMax,jdbcType=VARCHAR},
  443. </if>
  444. <if test="airTemperatureMin != null" >
  445. #{airTemperatureMin,jdbcType=VARCHAR},
  446. </if>
  447. <if test="airTemperatureAvg != null" >
  448. #{airTemperatureAvg,jdbcType=VARCHAR},
  449. </if>
  450. <if test="airHumidityMax != null" >
  451. #{airHumidityMax,jdbcType=VARCHAR},
  452. </if>
  453. <if test="airHumidityMin != null" >
  454. #{airHumidityMin,jdbcType=VARCHAR},
  455. </if>
  456. <if test="airHumidityAvg != null" >
  457. #{airHumidityAvg,jdbcType=VARCHAR},
  458. </if>
  459. <if test="temperatureFrontMax != null" >
  460. #{temperatureFrontMax,jdbcType=VARCHAR},
  461. </if>
  462. <if test="temperatureFrontMin != null" >
  463. #{temperatureFrontMin,jdbcType=VARCHAR},
  464. </if>
  465. <if test="temperatureFrontAvg != null" >
  466. #{temperatureFrontAvg,jdbcType=VARCHAR},
  467. </if>
  468. <if test="temperatureAfterMax != null" >
  469. #{temperatureAfterMax,jdbcType=VARCHAR},
  470. </if>
  471. <if test="temperatureAfterMin != null" >
  472. #{temperatureAfterMin,jdbcType=VARCHAR},
  473. </if>
  474. <if test="temperatureAfterAvg != null" >
  475. #{temperatureAfterAvg,jdbcType=VARCHAR},
  476. </if>
  477. <if test="waterFrontMax != null" >
  478. #{waterFrontMax,jdbcType=VARCHAR},
  479. </if>
  480. <if test="waterFrontMin != null" >
  481. #{waterFrontMin,jdbcType=VARCHAR},
  482. </if>
  483. <if test="waterFrontAvg != null" >
  484. #{waterFrontAvg,jdbcType=VARCHAR},
  485. </if>
  486. <if test="waterAfterMax != null" >
  487. #{waterAfterMax,jdbcType=VARCHAR},
  488. </if>
  489. <if test="waterAfterMin != null" >
  490. #{waterAfterMin,jdbcType=VARCHAR},
  491. </if>
  492. <if test="waterAfterAvg != null" >
  493. #{waterAfterAvg,jdbcType=VARCHAR},
  494. </if>
  495. <if test="temperatureWidth != null" >
  496. #{temperatureWidth,jdbcType=VARCHAR},
  497. </if>
  498. <if test="waterWidth != null" >
  499. #{waterWidth,jdbcType=VARCHAR},
  500. </if>
  501. <if test="totalElect != null" >
  502. #{totalElect,jdbcType=VARCHAR},
  503. </if>
  504. <if test="electUnit != null" >
  505. #{electUnit,jdbcType=VARCHAR},
  506. </if>
  507. <if test="aerationBug != null" >
  508. #{aerationBug,jdbcType=VARCHAR},
  509. </if>
  510. <if test="workUser != null" >
  511. #{workUser,jdbcType=VARCHAR},
  512. </if>
  513. <if test="approveUser != null" >
  514. #{approveUser,jdbcType=VARCHAR},
  515. </if>
  516. <if test="remark != null" >
  517. #{remark,jdbcType=VARCHAR},
  518. </if>
  519. <if test="fanRun != null" >
  520. #{fanRun,jdbcType=VARCHAR},
  521. </if>
  522. <if test="houseHumidityMax != null" >
  523. #{houseHumidityMax,jdbcType=VARCHAR},
  524. </if>
  525. <if test="houseHumidityMin != null" >
  526. #{houseHumidityMin,jdbcType=VARCHAR},
  527. </if>
  528. <if test="houseHumidityAvg != null" >
  529. #{houseHumidityAvg,jdbcType=VARCHAR},
  530. </if>
  531. <if test="fanRunMax != null" >
  532. #{fanRunMax,jdbcType=VARCHAR},
  533. </if>
  534. <if test="fanRunMin != null" >
  535. #{fanRunMin,jdbcType=VARCHAR},
  536. </if>
  537. <if test="cId != null" >
  538. #{cId,jdbcType=INTEGER},
  539. </if>
  540. <if test="cTime != null" >
  541. #{cTime,jdbcType=TIMESTAMP},
  542. </if>
  543. <if test="uId != null" >
  544. #{uId,jdbcType=INTEGER},
  545. </if>
  546. <if test="uTime != null" >
  547. #{uTime,jdbcType=TIMESTAMP},
  548. </if>
  549. <if test="fanRunAvg != null" >
  550. #{fanRunAvg,jdbcType=VARCHAR},
  551. </if>
  552. </trim>
  553. </insert>
  554. <select id="countByExample" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordInnerNewExample" resultType="java.lang.Integer" >
  555. select count(*) from daily_record_inner_new
  556. <if test="_parameter != null" >
  557. <include refid="Example_Where_Clause" />
  558. </if>
  559. </select>
  560. <update id="updateByExampleSelective" parameterType="map" >
  561. update daily_record_inner_new
  562. <set >
  563. <if test="record.id != null" >
  564. id = #{record.id,jdbcType=INTEGER},
  565. </if>
  566. <if test="record.houseId != null" >
  567. house_id = #{record.houseId,jdbcType=INTEGER},
  568. </if>
  569. <if test="record.grainId != null" >
  570. grain_id = #{record.grainId,jdbcType=INTEGER},
  571. </if>
  572. <if test="record.type != null" >
  573. type = #{record.type,jdbcType=VARCHAR},
  574. </if>
  575. <if test="record.number != null" >
  576. number = #{record.number,jdbcType=INTEGER},
  577. </if>
  578. <if test="record.houseType != null" >
  579. house_type = #{record.houseType,jdbcType=VARCHAR},
  580. </if>
  581. <if test="record.keepWarm != null" >
  582. keep_warm = #{record.keepWarm,jdbcType=VARCHAR},
  583. </if>
  584. <if test="record.fanType != null" >
  585. fan_type = #{record.fanType,jdbcType=VARCHAR},
  586. </if>
  587. <if test="record.aerationType != null" >
  588. aeration_type = #{record.aerationType,jdbcType=VARCHAR},
  589. </if>
  590. <if test="record.fanStyle != null" >
  591. fan_style = #{record.fanStyle,jdbcType=VARCHAR},
  592. </if>
  593. <if test="record.fanPower != null" >
  594. fan_power = #{record.fanPower,jdbcType=VARCHAR},
  595. </if>
  596. <if test="record.temperatureEnd != null" >
  597. temperature_end = #{record.temperatureEnd,jdbcType=VARCHAR},
  598. </if>
  599. <if test="record.fanNum != null" >
  600. fan_num = #{record.fanNum,jdbcType=VARCHAR},
  601. </if>
  602. <if test="record.foodWidth != null" >
  603. food_width = #{record.foodWidth,jdbcType=VARCHAR},
  604. </if>
  605. <if test="record.temperatureStart != null" >
  606. temperature_start = #{record.temperatureStart,jdbcType=VARCHAR},
  607. </if>
  608. <if test="record.fanTotal != null" >
  609. fan_total = #{record.fanTotal,jdbcType=VARCHAR},
  610. </if>
  611. <if test="record.fanUnit != null" >
  612. fan_unit = #{record.fanUnit,jdbcType=VARCHAR},
  613. </if>
  614. <if test="record.fanStart != null" >
  615. fan_start = #{record.fanStart,jdbcType=VARCHAR},
  616. </if>
  617. <if test="record.fanEnd != null" >
  618. fan_end = #{record.fanEnd,jdbcType=VARCHAR},
  619. </if>
  620. <if test="record.fanTimeTotal != null" >
  621. fan_time_total = #{record.fanTimeTotal,jdbcType=VARCHAR},
  622. </if>
  623. <if test="record.airTemperatureMax != null" >
  624. air_temperature_max = #{record.airTemperatureMax,jdbcType=VARCHAR},
  625. </if>
  626. <if test="record.airTemperatureMin != null" >
  627. air_temperature_min = #{record.airTemperatureMin,jdbcType=VARCHAR},
  628. </if>
  629. <if test="record.airTemperatureAvg != null" >
  630. air_temperature_avg = #{record.airTemperatureAvg,jdbcType=VARCHAR},
  631. </if>
  632. <if test="record.airHumidityMax != null" >
  633. air_humidity_max = #{record.airHumidityMax,jdbcType=VARCHAR},
  634. </if>
  635. <if test="record.airHumidityMin != null" >
  636. air_humidity_min = #{record.airHumidityMin,jdbcType=VARCHAR},
  637. </if>
  638. <if test="record.airHumidityAvg != null" >
  639. air_humidity_avg = #{record.airHumidityAvg,jdbcType=VARCHAR},
  640. </if>
  641. <if test="record.temperatureFrontMax != null" >
  642. temperature_front_max = #{record.temperatureFrontMax,jdbcType=VARCHAR},
  643. </if>
  644. <if test="record.temperatureFrontMin != null" >
  645. temperature_front_min = #{record.temperatureFrontMin,jdbcType=VARCHAR},
  646. </if>
  647. <if test="record.temperatureFrontAvg != null" >
  648. temperature_front_avg = #{record.temperatureFrontAvg,jdbcType=VARCHAR},
  649. </if>
  650. <if test="record.temperatureAfterMax != null" >
  651. temperature_after_max = #{record.temperatureAfterMax,jdbcType=VARCHAR},
  652. </if>
  653. <if test="record.temperatureAfterMin != null" >
  654. temperature_after_min = #{record.temperatureAfterMin,jdbcType=VARCHAR},
  655. </if>
  656. <if test="record.temperatureAfterAvg != null" >
  657. temperature_after_avg = #{record.temperatureAfterAvg,jdbcType=VARCHAR},
  658. </if>
  659. <if test="record.waterFrontMax != null" >
  660. water_front_max = #{record.waterFrontMax,jdbcType=VARCHAR},
  661. </if>
  662. <if test="record.waterFrontMin != null" >
  663. water_front_min = #{record.waterFrontMin,jdbcType=VARCHAR},
  664. </if>
  665. <if test="record.waterFrontAvg != null" >
  666. water_front_avg = #{record.waterFrontAvg,jdbcType=VARCHAR},
  667. </if>
  668. <if test="record.waterAfterMax != null" >
  669. water_after_max = #{record.waterAfterMax,jdbcType=VARCHAR},
  670. </if>
  671. <if test="record.waterAfterMin != null" >
  672. water_after_min = #{record.waterAfterMin,jdbcType=VARCHAR},
  673. </if>
  674. <if test="record.waterAfterAvg != null" >
  675. water_after_avg = #{record.waterAfterAvg,jdbcType=VARCHAR},
  676. </if>
  677. <if test="record.temperatureWidth != null" >
  678. temperature_width = #{record.temperatureWidth,jdbcType=VARCHAR},
  679. </if>
  680. <if test="record.waterWidth != null" >
  681. water_width = #{record.waterWidth,jdbcType=VARCHAR},
  682. </if>
  683. <if test="record.totalElect != null" >
  684. total_elect = #{record.totalElect,jdbcType=VARCHAR},
  685. </if>
  686. <if test="record.electUnit != null" >
  687. elect_unit = #{record.electUnit,jdbcType=VARCHAR},
  688. </if>
  689. <if test="record.aerationBug != null" >
  690. aeration_bug = #{record.aerationBug,jdbcType=VARCHAR},
  691. </if>
  692. <if test="record.workUser != null" >
  693. work_user = #{record.workUser,jdbcType=VARCHAR},
  694. </if>
  695. <if test="record.approveUser != null" >
  696. approve_user = #{record.approveUser,jdbcType=VARCHAR},
  697. </if>
  698. <if test="record.remark != null" >
  699. remark = #{record.remark,jdbcType=VARCHAR},
  700. </if>
  701. <if test="record.fanRun != null" >
  702. fan_run = #{record.fanRun,jdbcType=VARCHAR},
  703. </if>
  704. <if test="record.houseHumidityMax != null" >
  705. house_humidity_max = #{record.houseHumidityMax,jdbcType=VARCHAR},
  706. </if>
  707. <if test="record.houseHumidityMin != null" >
  708. house_humidity_min = #{record.houseHumidityMin,jdbcType=VARCHAR},
  709. </if>
  710. <if test="record.houseHumidityAvg != null" >
  711. house_humidity_avg = #{record.houseHumidityAvg,jdbcType=VARCHAR},
  712. </if>
  713. <if test="record.fanRunMax != null" >
  714. fan_run_max = #{record.fanRunMax,jdbcType=VARCHAR},
  715. </if>
  716. <if test="record.fanRunMin != null" >
  717. fan_run__min = #{record.fanRunMin,jdbcType=VARCHAR},
  718. </if>
  719. <if test="record.cId != null" >
  720. c_id = #{record.cId,jdbcType=INTEGER},
  721. </if>
  722. <if test="record.cTime != null" >
  723. c_time = #{record.cTime,jdbcType=TIMESTAMP},
  724. </if>
  725. <if test="record.uId != null" >
  726. u_id = #{record.uId,jdbcType=INTEGER},
  727. </if>
  728. <if test="record.uTime != null" >
  729. u_time = #{record.uTime,jdbcType=TIMESTAMP},
  730. </if>
  731. <if test="record.fanRunAvg != null" >
  732. fan_run_avg = #{record.fanRunAvg,jdbcType=VARCHAR},
  733. </if>
  734. </set>
  735. <if test="_parameter != null" >
  736. <include refid="Update_By_Example_Where_Clause" />
  737. </if>
  738. </update>
  739. <update id="updateByExample" parameterType="map" >
  740. update daily_record_inner_new
  741. set id = #{record.id,jdbcType=INTEGER},
  742. house_id = #{record.houseId,jdbcType=INTEGER},
  743. grain_id = #{record.grainId,jdbcType=INTEGER},
  744. type = #{record.type,jdbcType=VARCHAR},
  745. number = #{record.number,jdbcType=INTEGER},
  746. house_type = #{record.houseType,jdbcType=VARCHAR},
  747. keep_warm = #{record.keepWarm,jdbcType=VARCHAR},
  748. fan_type = #{record.fanType,jdbcType=VARCHAR},
  749. aeration_type = #{record.aerationType,jdbcType=VARCHAR},
  750. fan_style = #{record.fanStyle,jdbcType=VARCHAR},
  751. fan_power = #{record.fanPower,jdbcType=VARCHAR},
  752. temperature_end = #{record.temperatureEnd,jdbcType=VARCHAR},
  753. fan_num = #{record.fanNum,jdbcType=VARCHAR},
  754. food_width = #{record.foodWidth,jdbcType=VARCHAR},
  755. temperature_start = #{record.temperatureStart,jdbcType=VARCHAR},
  756. fan_total = #{record.fanTotal,jdbcType=VARCHAR},
  757. fan_unit = #{record.fanUnit,jdbcType=VARCHAR},
  758. fan_start = #{record.fanStart,jdbcType=VARCHAR},
  759. fan_end = #{record.fanEnd,jdbcType=VARCHAR},
  760. fan_time_total = #{record.fanTimeTotal,jdbcType=VARCHAR},
  761. air_temperature_max = #{record.airTemperatureMax,jdbcType=VARCHAR},
  762. air_temperature_min = #{record.airTemperatureMin,jdbcType=VARCHAR},
  763. air_temperature_avg = #{record.airTemperatureAvg,jdbcType=VARCHAR},
  764. air_humidity_max = #{record.airHumidityMax,jdbcType=VARCHAR},
  765. air_humidity_min = #{record.airHumidityMin,jdbcType=VARCHAR},
  766. air_humidity_avg = #{record.airHumidityAvg,jdbcType=VARCHAR},
  767. temperature_front_max = #{record.temperatureFrontMax,jdbcType=VARCHAR},
  768. temperature_front_min = #{record.temperatureFrontMin,jdbcType=VARCHAR},
  769. temperature_front_avg = #{record.temperatureFrontAvg,jdbcType=VARCHAR},
  770. temperature_after_max = #{record.temperatureAfterMax,jdbcType=VARCHAR},
  771. temperature_after_min = #{record.temperatureAfterMin,jdbcType=VARCHAR},
  772. temperature_after_avg = #{record.temperatureAfterAvg,jdbcType=VARCHAR},
  773. water_front_max = #{record.waterFrontMax,jdbcType=VARCHAR},
  774. water_front_min = #{record.waterFrontMin,jdbcType=VARCHAR},
  775. water_front_avg = #{record.waterFrontAvg,jdbcType=VARCHAR},
  776. water_after_max = #{record.waterAfterMax,jdbcType=VARCHAR},
  777. water_after_min = #{record.waterAfterMin,jdbcType=VARCHAR},
  778. water_after_avg = #{record.waterAfterAvg,jdbcType=VARCHAR},
  779. temperature_width = #{record.temperatureWidth,jdbcType=VARCHAR},
  780. water_width = #{record.waterWidth,jdbcType=VARCHAR},
  781. total_elect = #{record.totalElect,jdbcType=VARCHAR},
  782. elect_unit = #{record.electUnit,jdbcType=VARCHAR},
  783. aeration_bug = #{record.aerationBug,jdbcType=VARCHAR},
  784. work_user = #{record.workUser,jdbcType=VARCHAR},
  785. approve_user = #{record.approveUser,jdbcType=VARCHAR},
  786. remark = #{record.remark,jdbcType=VARCHAR},
  787. fan_run = #{record.fanRun,jdbcType=VARCHAR},
  788. house_humidity_max = #{record.houseHumidityMax,jdbcType=VARCHAR},
  789. house_humidity_min = #{record.houseHumidityMin,jdbcType=VARCHAR},
  790. house_humidity_avg = #{record.houseHumidityAvg,jdbcType=VARCHAR},
  791. fan_run_max = #{record.fanRunMax,jdbcType=VARCHAR},
  792. fan_run__min = #{record.fanRunMin,jdbcType=VARCHAR},
  793. c_id = #{record.cId,jdbcType=INTEGER},
  794. c_time = #{record.cTime,jdbcType=TIMESTAMP},
  795. u_id = #{record.uId,jdbcType=INTEGER},
  796. u_time = #{record.uTime,jdbcType=TIMESTAMP},
  797. fan_run_avg = #{record.fanRunAvg,jdbcType=VARCHAR}
  798. <if test="_parameter != null" >
  799. <include refid="Update_By_Example_Where_Clause" />
  800. </if>
  801. </update>
  802. <update id="updateByPrimaryKeySelective" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordInnerNew" >
  803. update daily_record_inner_new
  804. <set >
  805. <if test="houseId != null" >
  806. house_id = #{houseId,jdbcType=INTEGER},
  807. </if>
  808. <if test="grainId != null" >
  809. grain_id = #{grainId,jdbcType=INTEGER},
  810. </if>
  811. <if test="type != null" >
  812. type = #{type,jdbcType=VARCHAR},
  813. </if>
  814. <if test="number != null" >
  815. number = #{number,jdbcType=INTEGER},
  816. </if>
  817. <if test="houseType != null" >
  818. house_type = #{houseType,jdbcType=VARCHAR},
  819. </if>
  820. <if test="keepWarm != null" >
  821. keep_warm = #{keepWarm,jdbcType=VARCHAR},
  822. </if>
  823. <if test="fanType != null" >
  824. fan_type = #{fanType,jdbcType=VARCHAR},
  825. </if>
  826. <if test="aerationType != null" >
  827. aeration_type = #{aerationType,jdbcType=VARCHAR},
  828. </if>
  829. <if test="fanStyle != null" >
  830. fan_style = #{fanStyle,jdbcType=VARCHAR},
  831. </if>
  832. <if test="fanPower != null" >
  833. fan_power = #{fanPower,jdbcType=VARCHAR},
  834. </if>
  835. <if test="temperatureEnd != null" >
  836. temperature_end = #{temperatureEnd,jdbcType=VARCHAR},
  837. </if>
  838. <if test="fanNum != null" >
  839. fan_num = #{fanNum,jdbcType=VARCHAR},
  840. </if>
  841. <if test="foodWidth != null" >
  842. food_width = #{foodWidth,jdbcType=VARCHAR},
  843. </if>
  844. <if test="temperatureStart != null" >
  845. temperature_start = #{temperatureStart,jdbcType=VARCHAR},
  846. </if>
  847. <if test="fanTotal != null" >
  848. fan_total = #{fanTotal,jdbcType=VARCHAR},
  849. </if>
  850. <if test="fanUnit != null" >
  851. fan_unit = #{fanUnit,jdbcType=VARCHAR},
  852. </if>
  853. <if test="fanStart != null" >
  854. fan_start = #{fanStart,jdbcType=VARCHAR},
  855. </if>
  856. <if test="fanEnd != null" >
  857. fan_end = #{fanEnd,jdbcType=VARCHAR},
  858. </if>
  859. <if test="fanTimeTotal != null" >
  860. fan_time_total = #{fanTimeTotal,jdbcType=VARCHAR},
  861. </if>
  862. <if test="airTemperatureMax != null" >
  863. air_temperature_max = #{airTemperatureMax,jdbcType=VARCHAR},
  864. </if>
  865. <if test="airTemperatureMin != null" >
  866. air_temperature_min = #{airTemperatureMin,jdbcType=VARCHAR},
  867. </if>
  868. <if test="airTemperatureAvg != null" >
  869. air_temperature_avg = #{airTemperatureAvg,jdbcType=VARCHAR},
  870. </if>
  871. <if test="airHumidityMax != null" >
  872. air_humidity_max = #{airHumidityMax,jdbcType=VARCHAR},
  873. </if>
  874. <if test="airHumidityMin != null" >
  875. air_humidity_min = #{airHumidityMin,jdbcType=VARCHAR},
  876. </if>
  877. <if test="airHumidityAvg != null" >
  878. air_humidity_avg = #{airHumidityAvg,jdbcType=VARCHAR},
  879. </if>
  880. <if test="temperatureFrontMax != null" >
  881. temperature_front_max = #{temperatureFrontMax,jdbcType=VARCHAR},
  882. </if>
  883. <if test="temperatureFrontMin != null" >
  884. temperature_front_min = #{temperatureFrontMin,jdbcType=VARCHAR},
  885. </if>
  886. <if test="temperatureFrontAvg != null" >
  887. temperature_front_avg = #{temperatureFrontAvg,jdbcType=VARCHAR},
  888. </if>
  889. <if test="temperatureAfterMax != null" >
  890. temperature_after_max = #{temperatureAfterMax,jdbcType=VARCHAR},
  891. </if>
  892. <if test="temperatureAfterMin != null" >
  893. temperature_after_min = #{temperatureAfterMin,jdbcType=VARCHAR},
  894. </if>
  895. <if test="temperatureAfterAvg != null" >
  896. temperature_after_avg = #{temperatureAfterAvg,jdbcType=VARCHAR},
  897. </if>
  898. <if test="waterFrontMax != null" >
  899. water_front_max = #{waterFrontMax,jdbcType=VARCHAR},
  900. </if>
  901. <if test="waterFrontMin != null" >
  902. water_front_min = #{waterFrontMin,jdbcType=VARCHAR},
  903. </if>
  904. <if test="waterFrontAvg != null" >
  905. water_front_avg = #{waterFrontAvg,jdbcType=VARCHAR},
  906. </if>
  907. <if test="waterAfterMax != null" >
  908. water_after_max = #{waterAfterMax,jdbcType=VARCHAR},
  909. </if>
  910. <if test="waterAfterMin != null" >
  911. water_after_min = #{waterAfterMin,jdbcType=VARCHAR},
  912. </if>
  913. <if test="waterAfterAvg != null" >
  914. water_after_avg = #{waterAfterAvg,jdbcType=VARCHAR},
  915. </if>
  916. <if test="temperatureWidth != null" >
  917. temperature_width = #{temperatureWidth,jdbcType=VARCHAR},
  918. </if>
  919. <if test="waterWidth != null" >
  920. water_width = #{waterWidth,jdbcType=VARCHAR},
  921. </if>
  922. <if test="totalElect != null" >
  923. total_elect = #{totalElect,jdbcType=VARCHAR},
  924. </if>
  925. <if test="electUnit != null" >
  926. elect_unit = #{electUnit,jdbcType=VARCHAR},
  927. </if>
  928. <if test="aerationBug != null" >
  929. aeration_bug = #{aerationBug,jdbcType=VARCHAR},
  930. </if>
  931. <if test="workUser != null" >
  932. work_user = #{workUser,jdbcType=VARCHAR},
  933. </if>
  934. <if test="approveUser != null" >
  935. approve_user = #{approveUser,jdbcType=VARCHAR},
  936. </if>
  937. <if test="remark != null" >
  938. remark = #{remark,jdbcType=VARCHAR},
  939. </if>
  940. <if test="fanRun != null" >
  941. fan_run = #{fanRun,jdbcType=VARCHAR},
  942. </if>
  943. <if test="houseHumidityMax != null" >
  944. house_humidity_max = #{houseHumidityMax,jdbcType=VARCHAR},
  945. </if>
  946. <if test="houseHumidityMin != null" >
  947. house_humidity_min = #{houseHumidityMin,jdbcType=VARCHAR},
  948. </if>
  949. <if test="houseHumidityAvg != null" >
  950. house_humidity_avg = #{houseHumidityAvg,jdbcType=VARCHAR},
  951. </if>
  952. <if test="fanRunMax != null" >
  953. fan_run_max = #{fanRunMax,jdbcType=VARCHAR},
  954. </if>
  955. <if test="fanRunMin != null" >
  956. fan_run__min = #{fanRunMin,jdbcType=VARCHAR},
  957. </if>
  958. <if test="cId != null" >
  959. c_id = #{cId,jdbcType=INTEGER},
  960. </if>
  961. <if test="cTime != null" >
  962. c_time = #{cTime,jdbcType=TIMESTAMP},
  963. </if>
  964. <if test="uId != null" >
  965. u_id = #{uId,jdbcType=INTEGER},
  966. </if>
  967. <if test="uTime != null" >
  968. u_time = #{uTime,jdbcType=TIMESTAMP},
  969. </if>
  970. <if test="fanRunAvg != null" >
  971. fan_run_avg = #{fanRunAvg,jdbcType=VARCHAR},
  972. </if>
  973. </set>
  974. where id = #{id,jdbcType=INTEGER}
  975. </update>
  976. <update id="updateByPrimaryKey" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordInnerNew" >
  977. update daily_record_inner_new
  978. set house_id = #{houseId,jdbcType=INTEGER},
  979. grain_id = #{grainId,jdbcType=INTEGER},
  980. type = #{type,jdbcType=VARCHAR},
  981. number = #{number,jdbcType=INTEGER},
  982. house_type = #{houseType,jdbcType=VARCHAR},
  983. keep_warm = #{keepWarm,jdbcType=VARCHAR},
  984. fan_type = #{fanType,jdbcType=VARCHAR},
  985. aeration_type = #{aerationType,jdbcType=VARCHAR},
  986. fan_style = #{fanStyle,jdbcType=VARCHAR},
  987. fan_power = #{fanPower,jdbcType=VARCHAR},
  988. temperature_end = #{temperatureEnd,jdbcType=VARCHAR},
  989. fan_num = #{fanNum,jdbcType=VARCHAR},
  990. food_width = #{foodWidth,jdbcType=VARCHAR},
  991. temperature_start = #{temperatureStart,jdbcType=VARCHAR},
  992. fan_total = #{fanTotal,jdbcType=VARCHAR},
  993. fan_unit = #{fanUnit,jdbcType=VARCHAR},
  994. fan_start = #{fanStart,jdbcType=VARCHAR},
  995. fan_end = #{fanEnd,jdbcType=VARCHAR},
  996. fan_time_total = #{fanTimeTotal,jdbcType=VARCHAR},
  997. air_temperature_max = #{airTemperatureMax,jdbcType=VARCHAR},
  998. air_temperature_min = #{airTemperatureMin,jdbcType=VARCHAR},
  999. air_temperature_avg = #{airTemperatureAvg,jdbcType=VARCHAR},
  1000. air_humidity_max = #{airHumidityMax,jdbcType=VARCHAR},
  1001. air_humidity_min = #{airHumidityMin,jdbcType=VARCHAR},
  1002. air_humidity_avg = #{airHumidityAvg,jdbcType=VARCHAR},
  1003. temperature_front_max = #{temperatureFrontMax,jdbcType=VARCHAR},
  1004. temperature_front_min = #{temperatureFrontMin,jdbcType=VARCHAR},
  1005. temperature_front_avg = #{temperatureFrontAvg,jdbcType=VARCHAR},
  1006. temperature_after_max = #{temperatureAfterMax,jdbcType=VARCHAR},
  1007. temperature_after_min = #{temperatureAfterMin,jdbcType=VARCHAR},
  1008. temperature_after_avg = #{temperatureAfterAvg,jdbcType=VARCHAR},
  1009. water_front_max = #{waterFrontMax,jdbcType=VARCHAR},
  1010. water_front_min = #{waterFrontMin,jdbcType=VARCHAR},
  1011. water_front_avg = #{waterFrontAvg,jdbcType=VARCHAR},
  1012. water_after_max = #{waterAfterMax,jdbcType=VARCHAR},
  1013. water_after_min = #{waterAfterMin,jdbcType=VARCHAR},
  1014. water_after_avg = #{waterAfterAvg,jdbcType=VARCHAR},
  1015. temperature_width = #{temperatureWidth,jdbcType=VARCHAR},
  1016. water_width = #{waterWidth,jdbcType=VARCHAR},
  1017. total_elect = #{totalElect,jdbcType=VARCHAR},
  1018. elect_unit = #{electUnit,jdbcType=VARCHAR},
  1019. aeration_bug = #{aerationBug,jdbcType=VARCHAR},
  1020. work_user = #{workUser,jdbcType=VARCHAR},
  1021. approve_user = #{approveUser,jdbcType=VARCHAR},
  1022. remark = #{remark,jdbcType=VARCHAR},
  1023. fan_run = #{fanRun,jdbcType=VARCHAR},
  1024. house_humidity_max = #{houseHumidityMax,jdbcType=VARCHAR},
  1025. house_humidity_min = #{houseHumidityMin,jdbcType=VARCHAR},
  1026. house_humidity_avg = #{houseHumidityAvg,jdbcType=VARCHAR},
  1027. fan_run_max = #{fanRunMax,jdbcType=VARCHAR},
  1028. fan_run__min = #{fanRunMin,jdbcType=VARCHAR},
  1029. c_id = #{cId,jdbcType=INTEGER},
  1030. c_time = #{cTime,jdbcType=TIMESTAMP},
  1031. u_id = #{uId,jdbcType=INTEGER},
  1032. u_time = #{uTime,jdbcType=TIMESTAMP},
  1033. fan_run_avg = #{fanRunAvg,jdbcType=VARCHAR}
  1034. where id = #{id,jdbcType=INTEGER}
  1035. </update>
  1036. </mapper>