DailyRecordAerationNewFileMapper.xml 37 KB

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