DailyRecordAmmoniaNewFileMapper.xml 41 KB

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