DailyRecordAerationNewMapper.xml 37 KB

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