DailyRecordInnerNewFileMapper.xml 42 KB

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