DailyRecordTaskDao.xml 88 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527
  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.dao.daily.DailyRecordTaskDao">
  4. <resultMap type="cn.ourwill.module.house.entity.daily.DailyRecordTask" id="baseMap">
  5. <result column="id" property="id"/>
  6. <result column="type" property="type"/>
  7. <result column="sub_type" property="subType"/>
  8. <result column="uuid" property="uuid"/>
  9. <result column="house_id" property="houseId"/>
  10. <result column="volume" property="volume"/>
  11. <result column="wind_reason" property="windReason"/>
  12. <result column="height" property="height"/>
  13. <result column="task_start_time" property="taskStartTime"/>
  14. <result column="task_end_time" property="taskEndTime"/>
  15. <result column="keeper" property="keeper"/>
  16. <result column="wind_total" property="windTotal"/>
  17. <result column="unite_wind" property="uniteWind"/>
  18. <result column="blower_model" property="blowerModel"/>
  19. <result column="blower_power" property="blowerPower"/>
  20. <result column="blower_type" property="blowerType"/>
  21. <result column="blower_type_unit" property="blowerTypeUnit"/>
  22. <result column="blower_total_forces" property="blowerTotalForces"/>
  23. <result column="wind_type" property="windType"/>
  24. <result column="blower_number" property="blowerNumber"/>
  25. <result column="task_time" property="taskTime"/>
  26. <result column="temp_high" property="tempHigh"/>
  27. <result column="temp_low" property="tempLow"/>
  28. <result column="temp_average" property="tempAverage"/>
  29. <result column="humidity_high" property="humidityHigh"/>
  30. <result column="humidity_low" property="humidityLow"/>
  31. <result column="humidity_average" property="humidityAverage"/>
  32. <result column="temp_before_high" property="tempBeforeHigh"/>
  33. <result column="temp_after_high" property="tempAfterHigh"/>
  34. <result column="temp_before_low" property="tempBeforeLow"/>
  35. <result column="temp_after_low" property="tempAfterLow"/>
  36. <result column="temp_before_average" property="tempBeforeAverage"/>
  37. <result column="temp_end_average" property="tempEndAverage"/>
  38. <result column="water_before_high" property="waterBeforeHigh"/>
  39. <result column="water_before_low" property="waterBeforeLow"/>
  40. <result column="water_before_average" property="waterBeforeAverage"/>
  41. <result column="water_after_high" property="waterAfterHigh"/>
  42. <result column="water_after_low" property="waterAfterLow"/>
  43. <result column="water_after_average" property="waterAfterAverage"/>
  44. <result column="temp_grads" property="tempGrads"/>
  45. <result column="water_grads" property="waterGrads"/>
  46. <result column="total_power" property="totalPower"/>
  47. <result column="weather" property="weather"/>
  48. <result column="air_temp" property="airTemp"/>
  49. <result column="drug_time" property="drugTime"/>
  50. <result column="house_temp" property="houseTemp"/>
  51. <result column="averate_temp" property="averateTemp"/>
  52. <result column="number" property="number"/>
  53. <result column="house_food_capacity" property="houseFoodCapacity"/>
  54. <result column="drug_purity" property="drugPurity"/>
  55. <result column="house_space_capacity" property="houseSpaceCapacity"/>
  56. <result column="house_sum_capacity" property="houseSumCapacity"/>
  57. <result column="sequence" property="sequence"/>
  58. <result column="material_capacity" property="materialCapacity"/>
  59. <result column="drug_name" property="drugName"/>
  60. <result column="drug_way" property="drugWay"/>
  61. <result column="drug_people_count" property="drugPeopleCount"/>
  62. <result column="unite_power" property="unitePower"/>
  63. <result column="is_fumigation" property="isFumigation"/>
  64. <result column="close_way" property="closeWay"/>
  65. <result column="director" property="director"/>
  66. <result column="drug_capacity_count" property="drugCapacityCount"/>
  67. <result column="durg_count" property="durgCount"/>
  68. <result column="temp_before_fumigation" property="tempBeforeFumigation"/>
  69. <result column="temp_after_fumigation" property="tempAfterFumigation"/>
  70. <result column="pest_before_fumigation" property="pestBeforeFumigation"/>
  71. <result column="pest_after_fumigation" property="pestAfterFumigation"/>
  72. <result column="fumigation_kind" property="fumigationKind"/>
  73. <result column="water" property="water"/>
  74. <result column="close_time" property="closeTime"/>
  75. <result column="kill_ratio" property="killRatio"/>
  76. <result column="remain_ratio" property="remainRatio"/>
  77. <result column="is_bad_things" property="isBadThings"/>
  78. <result column="manager_user" property="managerUser"/>
  79. <result column="device_no" property="deviceNo"/>
  80. <result column="power" property="power"/>
  81. <result column="loop_time" property="loopTime"/>
  82. <result column="air_condition_state" property="airConditionState"/>
  83. <result column="problems" property="problems"/>
  84. <result column="improvement" property="improvement"/>
  85. <result column="temp_before_loop" property="tempBeforeLoop"/>
  86. <result column="temp_after_loop" property="tempAfterLoop"/>
  87. <result column="operator" property="operator"/>
  88. <result column="remark" property="remark"/>
  89. <result column="c_id" property="cId"/>
  90. <result column="u_id" property="uId"/>
  91. <result column="c_time" property="cTime"/>
  92. <result column="u_time" property="uTime"/>
  93. <result column="version" property="version"/>
  94. <result column="outside_temp" property="outsideTemp"/>
  95. <result column="circulation_power" property="circulationPower"/>
  96. <result column="circulation_time" property="circulationTime"/>
  97. <result column="circulation_number" property="circulationNumber"/>
  98. <result column="loop_time_start" property="loopTimeStart"/>
  99. <result column="loop_time_end" property="loopTimeEnd"/>
  100. <result column="avg_grain_temp" property="avgGrainTemp"/>
  101. <result column="grainstack_avg_temp" property="grainstackAvgTemp"/>
  102. <result column="air_tightness" property="airTightness"/>
  103. <result column="security_officer" property="securityOfficer"/>
  104. <result column="close_time_end" property="closeTimeEnd"/>
  105. <result column="aeration_start_time" property="aerationStartTime"/>
  106. <result column="aeration_end_time" property="aerationEndTime"/>
  107. <result column="aeration_mode" property="aerationMode"/>
  108. <result column="drug_food_count" property="drugFoodCount"/>
  109. </resultMap>
  110. <sql id="columns">
  111. id ,
  112. `type` ,
  113. sub_type ,
  114. uuid ,
  115. house_id ,
  116. volume ,
  117. wind_reason ,
  118. height ,
  119. task_start_time ,
  120. task_end_time ,
  121. keeper ,
  122. wind_total ,
  123. unite_wind ,
  124. blower_model ,
  125. blower_power ,
  126. blower_type ,
  127. blower_type_unit ,
  128. blower_total_forces ,
  129. wind_type ,
  130. blower_number ,
  131. task_time ,
  132. temp_high ,
  133. temp_low ,
  134. temp_average ,
  135. humidity_high ,
  136. humidity_low ,
  137. humidity_average ,
  138. temp_before_high ,
  139. temp_after_high ,
  140. temp_before_low ,
  141. temp_after_low ,
  142. temp_before_average ,
  143. temp_end_average ,
  144. water_before_high ,
  145. water_before_low ,
  146. water_before_average ,
  147. water_after_high ,
  148. water_after_low ,
  149. water_after_average ,
  150. temp_grads ,
  151. water_grads ,
  152. total_power ,
  153. weather ,
  154. air_temp ,
  155. drug_time ,
  156. house_temp ,
  157. averate_temp ,
  158. `number` ,
  159. house_food_capacity ,
  160. drug_purity ,
  161. house_space_capacity ,
  162. house_sum_capacity ,
  163. sequence ,
  164. material_capacity ,
  165. drug_name ,
  166. drug_way ,
  167. drug_people_count ,
  168. unite_power ,
  169. is_fumigation ,
  170. close_way ,
  171. director ,
  172. drug_capacity_count ,
  173. durg_count ,
  174. temp_before_fumigation ,
  175. temp_after_fumigation ,
  176. pest_before_fumigation ,
  177. pest_after_fumigation ,
  178. fumigation_kind ,
  179. water ,
  180. close_time ,
  181. kill_ratio ,
  182. remain_ratio ,
  183. is_bad_things ,
  184. manager_user ,
  185. device_no ,
  186. power ,
  187. loop_time ,
  188. air_condition_state ,
  189. problems ,
  190. improvement ,
  191. temp_before_loop ,
  192. temp_after_loop ,
  193. operator ,
  194. remark ,
  195. c_id ,
  196. u_id ,
  197. c_time ,
  198. u_time ,
  199. version ,
  200. outside_temp ,
  201. circulation_power ,
  202. circulation_time ,
  203. circulation_number ,
  204. loop_time_start ,
  205. loop_time_end ,
  206. avg_grain_temp ,
  207. grainstack_avg_temp ,
  208. air_tightness ,
  209. security_officer ,
  210. close_time_end ,
  211. aeration_start_time ,
  212. aeration_end_time ,
  213. aeration_mode,
  214. drug_food_count
  215. </sql>
  216. <sql id="joinCols">
  217. </sql>
  218. <select id="get" resultMap="baseMap">
  219. SELECT
  220. <include refid="columns"/>
  221. FROM daily_record_task a
  222. <include refid="joinCols"/>
  223. WHERE a.id = #{id}
  224. </select>
  225. <select id="getByUuid" resultMap="baseMap">
  226. SELECT
  227. <include refid="columns"/>
  228. FROM daily_record_task a
  229. <include refid="joinCols"/>
  230. WHERE a.uuid = #{uuid}
  231. </select>
  232. <select id="findList" resultMap="baseMap">
  233. SELECT
  234. <include refid="columns"/>
  235. FROM daily_record_task a
  236. <include refid="joinCols"/>
  237. <where>
  238. <if test="id !=null">
  239. and id = #{id}
  240. </if>
  241. <if test="searchStartDate !=null">
  242. and task_start_time <![CDATA[ >= ]]> #{searchStartDate}
  243. </if>
  244. <if test="searchEndDate !=null">
  245. and task_start_time &lt;= #{searchEndDate}
  246. </if>
  247. <if test="type !=null">
  248. and `type` = #{type}
  249. </if>
  250. <if test="subType !=null">
  251. and sub_type = #{subType}
  252. </if>
  253. <if test="uuid !=null">
  254. and uuid = #{uuid}
  255. </if>
  256. <if test="houseId !=null">
  257. and house_id = #{houseId}
  258. </if>
  259. <if test="volume !=null">
  260. and volume = #{volume}
  261. </if>
  262. <if test="windReason !=null">
  263. and wind_reason = #{windReason}
  264. </if>
  265. <if test="height !=null">
  266. and height = #{height}
  267. </if>
  268. <if test="taskStartTime !=null">
  269. and task_start_time = #{taskStartTime}
  270. </if>
  271. <if test="taskEndTime !=null">
  272. and task_end_time = #{taskEndTime}
  273. </if>
  274. <if test="keeper !=null">
  275. and keeper = #{keeper}
  276. </if>
  277. <if test="windTotal !=null">
  278. and wind_total = #{windTotal}
  279. </if>
  280. <if test="uniteWind !=null">
  281. and unite_wind = #{uniteWind}
  282. </if>
  283. <if test="blowerModel !=null">
  284. and blower_model = #{blowerModel}
  285. </if>
  286. <if test="blowerPower !=null">
  287. and blower_power = #{blowerPower}
  288. </if>
  289. <if test="blowerType !=null">
  290. and blower_type = #{blowerType}
  291. </if>
  292. <if test="blowerTypeUnit !=null">
  293. and blower_type_unit = #{blowerTypeUnit}
  294. </if>
  295. <if test="blowerTotalForces !=null">
  296. and blower_total_forces = #{blowerTotalForces}
  297. </if>
  298. <if test="windType !=null">
  299. and wind_type = #{windType}
  300. </if>
  301. <if test="blowerNumber !=null">
  302. and blower_number = #{blowerNumber}
  303. </if>
  304. <if test="taskTime !=null">
  305. and task_time = #{taskTime}
  306. </if>
  307. <if test="tempHigh !=null">
  308. and temp_high = #{tempHigh}
  309. </if>
  310. <if test="tempLow !=null">
  311. and temp_low = #{tempLow}
  312. </if>
  313. <if test="tempAverage !=null">
  314. and temp_average = #{tempAverage}
  315. </if>
  316. <if test="humidityHigh !=null">
  317. and humidity_high = #{humidityHigh}
  318. </if>
  319. <if test="humidityLow !=null">
  320. and humidity_low = #{humidityLow}
  321. </if>
  322. <if test="humidityAverage !=null">
  323. and humidity_average = #{humidityAverage}
  324. </if>
  325. <if test="tempBeforeHigh !=null">
  326. and temp_before_high = #{tempBeforeHigh}
  327. </if>
  328. <if test="tempAfterHigh !=null">
  329. and temp_after_high = #{tempAfterHigh}
  330. </if>
  331. <if test="tempBeforeLow !=null">
  332. and temp_before_low = #{tempBeforeLow}
  333. </if>
  334. <if test="tempAfterLow !=null">
  335. and temp_after_low = #{tempAfterLow}
  336. </if>
  337. <if test="tempBeforeAverage !=null">
  338. and temp_before_average = #{tempBeforeAverage}
  339. </if>
  340. <if test="tempEndAverage !=null">
  341. and temp_end_average = #{tempEndAverage}
  342. </if>
  343. <if test="waterBeforeHigh !=null">
  344. and water_before_high = #{waterBeforeHigh}
  345. </if>
  346. <if test="waterBeforeLow !=null">
  347. and water_before_low = #{waterBeforeLow}
  348. </if>
  349. <if test="waterBeforeAverage !=null">
  350. and water_before_average = #{waterBeforeAverage}
  351. </if>
  352. <if test="waterAfterHigh !=null">
  353. and water_after_high = #{waterAfterHigh}
  354. </if>
  355. <if test="waterAfterLow !=null">
  356. and water_after_low = #{waterAfterLow}
  357. </if>
  358. <if test="waterAfterAverage !=null">
  359. and water_after_average = #{waterAfterAverage}
  360. </if>
  361. <if test="tempGrads !=null">
  362. and temp_grads = #{tempGrads}
  363. </if>
  364. <if test="waterGrads !=null">
  365. and water_grads = #{waterGrads}
  366. </if>
  367. <if test="totalPower !=null">
  368. and total_power = #{totalPower}
  369. </if>
  370. <if test="weather !=null">
  371. and weather = #{weather}
  372. </if>
  373. <if test="airTemp !=null">
  374. and air_temp = #{airTemp}
  375. </if>
  376. <if test="drugTime !=null">
  377. and drug_time = #{drugTime}
  378. </if>
  379. <if test="houseTemp !=null">
  380. and house_temp = #{houseTemp}
  381. </if>
  382. <if test="averateTemp !=null">
  383. and averate_temp = #{averateTemp}
  384. </if>
  385. <if test="number !=null">
  386. and `number` = #{number}
  387. </if>
  388. <if test="houseFoodCapacity !=null">
  389. and house_food_capacity = #{houseFoodCapacity}
  390. </if>
  391. <if test="drugPurity !=null">
  392. and drug_purity = #{drugPurity}
  393. </if>
  394. <if test="houseSpaceCapacity !=null">
  395. and house_space_capacity = #{houseSpaceCapacity}
  396. </if>
  397. <if test="houseSumCapacity !=null">
  398. and house_sum_capacity = #{houseSumCapacity}
  399. </if>
  400. <if test="sequence !=null">
  401. and sequence = #{sequence}
  402. </if>
  403. <if test="materialCapacity !=null">
  404. and material_capacity = #{materialCapacity}
  405. </if>
  406. <if test="drugName !=null">
  407. and drug_name = #{drugName}
  408. </if>
  409. <if test="drugWay !=null">
  410. and drug_way = #{drugWay}
  411. </if>
  412. <if test="drugPeopleCount !=null">
  413. and drug_people_count = #{drugPeopleCount}
  414. </if>
  415. <if test="unitePower !=null">
  416. and unite_power = #{unitePower}
  417. </if>
  418. <if test="isFumigation !=null">
  419. and is_fumigation = #{isFumigation}
  420. </if>
  421. <if test="closeWay !=null">
  422. and close_way = #{closeWay}
  423. </if>
  424. <if test="director !=null">
  425. and director = #{director}
  426. </if>
  427. <if test="drugCapacityCount !=null">
  428. and drug_capacity_count = #{drugCapacityCount}
  429. </if>
  430. <if test="durgCount !=null">
  431. and durg_count = #{durgCount}
  432. </if>
  433. <if test="tempBeforeFumigation !=null">
  434. and temp_before_fumigation = #{tempBeforeFumigation}
  435. </if>
  436. <if test="tempAfterFumigation !=null">
  437. and temp_after_fumigation = #{tempAfterFumigation}
  438. </if>
  439. <if test="pestBeforeFumigation !=null">
  440. and pest_before_fumigation = #{pestBeforeFumigation}
  441. </if>
  442. <if test="pestAfterFumigation !=null">
  443. and pest_after_fumigation = #{pestAfterFumigation}
  444. </if>
  445. <if test="fumigationKind !=null">
  446. and fumigation_kind = #{fumigationKind}
  447. </if>
  448. <if test="water !=null">
  449. and water = #{water}
  450. </if>
  451. <if test="closeTime !=null">
  452. and close_time = #{closeTime}
  453. </if>
  454. <if test="killRatio !=null">
  455. and kill_ratio = #{killRatio}
  456. </if>
  457. <if test="remainRatio !=null">
  458. and remain_ratio = #{remainRatio}
  459. </if>
  460. <if test="isBadThings !=null">
  461. and is_bad_things = #{isBadThings}
  462. </if>
  463. <if test="managerUser !=null">
  464. and manager_user = #{managerUser}
  465. </if>
  466. <if test="deviceNo !=null">
  467. and device_no = #{deviceNo}
  468. </if>
  469. <if test="power !=null">
  470. and power = #{power}
  471. </if>
  472. <if test="loopTime !=null">
  473. and loop_time = #{loopTime}
  474. </if>
  475. <if test="airConditionState !=null">
  476. and air_condition_state = #{airConditionState}
  477. </if>
  478. <if test="problems !=null">
  479. and problems = #{problems}
  480. </if>
  481. <if test="improvement !=null">
  482. and improvement = #{improvement}
  483. </if>
  484. <if test="tempBeforeLoop !=null">
  485. and temp_before_loop = #{tempBeforeLoop}
  486. </if>
  487. <if test="tempAfterLoop !=null">
  488. and temp_after_loop = #{tempAfterLoop}
  489. </if>
  490. <if test="operator !=null">
  491. and operator = #{operator}
  492. </if>
  493. <if test="remark !=null">
  494. and remark = #{remark}
  495. </if>
  496. <if test="cId !=null">
  497. and c_id = #{cId}
  498. </if>
  499. <if test="uId !=null">
  500. and u_id = #{uId}
  501. </if>
  502. <if test="cTime !=null">
  503. and c_time = #{cTime}
  504. </if>
  505. <if test="uTime !=null">
  506. and u_time = #{uTime}
  507. </if>
  508. <if test="version !=null">
  509. and version = #{version}
  510. </if>
  511. <if test="outsideTemp !=null">
  512. and outside_temp = #{outsideTemp}
  513. </if>
  514. <if test="circulationPower !=null">
  515. and circulation_power = #{circulationPower}
  516. </if>
  517. <if test="circulationTime !=null">
  518. and circulation_time = #{circulationTime}
  519. </if>
  520. <if test="circulationNumber !=null">
  521. and circulation_number = #{circulationNumber}
  522. </if>
  523. <if test="loopTimeStart !=null">
  524. and loop_time_start = #{loopTimeStart}
  525. </if>
  526. <if test="loopTimeEnd !=null">
  527. and loop_time_end = #{loopTimeEnd}
  528. </if>
  529. <if test="avgGrainTemp !=null">
  530. and avg_grain_temp = #{avgGrainTemp}
  531. </if>
  532. <if test="grainstackAvgTemp !=null">
  533. and grainstack_avg_temp = #{grainstackAvgTemp}
  534. </if>
  535. <if test="airTightness !=null">
  536. and air_tightness = #{airTightness}
  537. </if>
  538. <if test="securityOfficer !=null">
  539. and security_officer = #{securityOfficer}
  540. </if>
  541. <if test="closeTimeEnd !=null">
  542. and close_time_end = #{closeTimeEnd}
  543. </if>
  544. <if test="aerationStartTime !=null">
  545. and aeration_start_time = #{aerationStartTime}
  546. </if>
  547. <if test="aerationEndTime !=null">
  548. and aeration_end_time = #{aerationEndTime}
  549. </if>
  550. <if test="aerationMode !=null">
  551. and aeration_mode = #{aerationMode}
  552. </if>
  553. </where>
  554. <choose>
  555. <when test="page !=null and page.orderBy != null and page.orderBy != ''">
  556. ORDER BY ${page.orderBy}
  557. </when>
  558. <otherwise>
  559. order by id desc
  560. </otherwise>
  561. </choose>
  562. </select>
  563. <select id="findAllList" resultMap="baseMap">
  564. SELECT
  565. <include refid="columns"/>
  566. FROM daily_record_task a
  567. <include refid="joinCols"/>
  568. <where>
  569. <if test="id !=null">
  570. and id = #{id}
  571. </if>
  572. <if test="searchStartDate !=null">
  573. and sol.task_start_time <![CDATA[ >= ]]> #{searchStartDate}
  574. </if>
  575. <if test="searchEndDate !=null">
  576. and sol.task_start_time &lt;= #{searchEndDate}
  577. </if>
  578. <if test="type !=null">
  579. and `type` = #{type}
  580. </if>
  581. <if test="subType !=null">
  582. and sub_type = #{subType}
  583. </if>
  584. <if test="uuid !=null">
  585. and uuid = #{uuid}
  586. </if>
  587. <if test="houseId !=null">
  588. and house_id = #{houseId}
  589. </if>
  590. <if test="volume !=null">
  591. and volume = #{volume}
  592. </if>
  593. <if test="windReason !=null">
  594. and wind_reason = #{windReason}
  595. </if>
  596. <if test="height !=null">
  597. and height = #{height}
  598. </if>
  599. <if test="taskStartTime !=null">
  600. and task_start_time = #{taskStartTime}
  601. </if>
  602. <if test="taskEndTime !=null">
  603. and task_end_time = #{taskEndTime}
  604. </if>
  605. <if test="keeper !=null">
  606. and keeper = #{keeper}
  607. </if>
  608. <if test="windTotal !=null">
  609. and wind_total = #{windTotal}
  610. </if>
  611. <if test="uniteWind !=null">
  612. and unite_wind = #{uniteWind}
  613. </if>
  614. <if test="blowerModel !=null">
  615. and blower_model = #{blowerModel}
  616. </if>
  617. <if test="blowerPower !=null">
  618. and blower_power = #{blowerPower}
  619. </if>
  620. <if test="blowerType !=null">
  621. and blower_type = #{blowerType}
  622. </if>
  623. <if test="blowerTypeUnite !=null">
  624. and blower_type_unit = #{blowerTypeUnit}
  625. </if>
  626. <if test="blowerTotalForces !=null">
  627. and blower_total_forces = #{blowerTotalForces}
  628. </if>
  629. <if test="windType !=null">
  630. and wind_type = #{windType}
  631. </if>
  632. <if test="blowerNumber !=null">
  633. and blower_number = #{blowerNumber}
  634. </if>
  635. <if test="taskTime !=null">
  636. and task_time = #{taskTime}
  637. </if>
  638. <if test="tempHigh !=null">
  639. and temp_high = #{tempHigh}
  640. </if>
  641. <if test="tempLow !=null">
  642. and temp_low = #{tempLow}
  643. </if>
  644. <if test="tempAverage !=null">
  645. and temp_average = #{tempAverage}
  646. </if>
  647. <if test="humidityHigh !=null">
  648. and humidity_high = #{humidityHigh}
  649. </if>
  650. <if test="humidityLow !=null">
  651. and humidity_low = #{humidityLow}
  652. </if>
  653. <if test="humidityAverage !=null">
  654. and humidity_average = #{humidityAverage}
  655. </if>
  656. <if test="tempBeforeHigh !=null">
  657. and temp_before_high = #{tempBeforeHigh}
  658. </if>
  659. <if test="tempAfterHigh !=null">
  660. and temp_after_high = #{tempAfterHigh}
  661. </if>
  662. <if test="tempBeforeLow !=null">
  663. and temp_before_low = #{tempBeforeLow}
  664. </if>
  665. <if test="tempAfterLow !=null">
  666. and temp_after_low = #{tempAfterLow}
  667. </if>
  668. <if test="tempBeforeAverage !=null">
  669. and temp_before_average = #{tempBeforeAverage}
  670. </if>
  671. <if test="tempEndAverage !=null">
  672. and temp_end_average = #{tempEndAverage}
  673. </if>
  674. <if test="waterBeforeHigh !=null">
  675. and water_before_high = #{waterBeforeHigh}
  676. </if>
  677. <if test="waterBeforeLow !=null">
  678. and water_before_low = #{waterBeforeLow}
  679. </if>
  680. <if test="waterBeforeAverage !=null">
  681. and water_before_average = #{waterBeforeAverage}
  682. </if>
  683. <if test="waterAfterHigh !=null">
  684. and water_after_high = #{waterAfterHigh}
  685. </if>
  686. <if test="waterAfterLow !=null">
  687. and water_after_low = #{waterAfterLow}
  688. </if>
  689. <if test="waterAfterAverage !=null">
  690. and water_after_average = #{waterAfterAverage}
  691. </if>
  692. <if test="tempGrads !=null">
  693. and temp_grads = #{tempGrads}
  694. </if>
  695. <if test="waterGrads !=null">
  696. and water_grads = #{waterGrads}
  697. </if>
  698. <if test="totalPower !=null">
  699. and total_power = #{totalPower}
  700. </if>
  701. <if test="weather !=null">
  702. and weather = #{weather}
  703. </if>
  704. <if test="airTemp !=null">
  705. and air_temp = #{airTemp}
  706. </if>
  707. <if test="drugTime !=null">
  708. and drug_time = #{drugTime}
  709. </if>
  710. <if test="houseTemp !=null">
  711. and house_temp = #{houseTemp}
  712. </if>
  713. <if test="averateTemp !=null">
  714. and averate_temp = #{averateTemp}
  715. </if>
  716. <if test="number !=null">
  717. and `number` = #{number}
  718. </if>
  719. <if test="houseFoodCapacity !=null">
  720. and house_food_capacity = #{houseFoodCapacity}
  721. </if>
  722. <if test="drugPurity !=null">
  723. and drug_purity = #{drugPurity}
  724. </if>
  725. <if test="houseSpaceCapacity !=null">
  726. and house_space_capacity = #{houseSpaceCapacity}
  727. </if>
  728. <if test="houseSumCapacity !=null">
  729. and house_sum_capacity = #{houseSumCapacity}
  730. </if>
  731. <if test="sequence !=null">
  732. and sequence = #{sequence}
  733. </if>
  734. <if test="materialCapacity !=null">
  735. and material_capacity = #{materialCapacity}
  736. </if>
  737. <if test="drugName !=null">
  738. and drug_name = #{drugName}
  739. </if>
  740. <if test="drugWay !=null">
  741. and drug_way = #{drugWay}
  742. </if>
  743. <if test="drugPeopleCount !=null">
  744. and drug_people_count = #{drugPeopleCount}
  745. </if>
  746. <if test="unitePower !=null">
  747. and unite_power = #{unitePower}
  748. </if>
  749. <if test="isFumigation !=null">
  750. and is_fumigation = #{isFumigation}
  751. </if>
  752. <if test="closeWay !=null">
  753. and close_way = #{closeWay}
  754. </if>
  755. <if test="director !=null">
  756. and director = #{director}
  757. </if>
  758. <if test="drugCapacityCount !=null">
  759. and drug_capacity_count = #{drugCapacityCount}
  760. </if>
  761. <if test="durgCount !=null">
  762. and durg_count = #{durgCount}
  763. </if>
  764. <if test="tempBeforeFumigation !=null">
  765. and temp_before_fumigation = #{tempBeforeFumigation}
  766. </if>
  767. <if test="tempAfterFumigation !=null">
  768. and temp_after_fumigation = #{tempAfterFumigation}
  769. </if>
  770. <if test="pestBeforeFumigation !=null">
  771. and pest_before_fumigation = #{pestBeforeFumigation}
  772. </if>
  773. <if test="pestAfterFumigation !=null">
  774. and pest_after_fumigation = #{pestAfterFumigation}
  775. </if>
  776. <if test="fumigationKind !=null">
  777. and fumigation_kind = #{fumigationKind}
  778. </if>
  779. <if test="water !=null">
  780. and water = #{water}
  781. </if>
  782. <if test="closeTime !=null">
  783. and close_time = #{closeTime}
  784. </if>
  785. <if test="killRatio !=null">
  786. and kill_ratio = #{killRatio}
  787. </if>
  788. <if test="remainRatio !=null">
  789. and remain_ratio = #{remainRatio}
  790. </if>
  791. <if test="isBadThings !=null">
  792. and is_bad_things = #{isBadThings}
  793. </if>
  794. <if test="managerUser !=null">
  795. and manager_user = #{managerUser}
  796. </if>
  797. <if test="deviceNo !=null">
  798. and device_no = #{deviceNo}
  799. </if>
  800. <if test="power !=null">
  801. and power = #{power}
  802. </if>
  803. <if test="loopTime !=null">
  804. and loop_time = #{loopTime}
  805. </if>
  806. <if test="airConditionState !=null">
  807. and air_condition_state = #{airConditionState}
  808. </if>
  809. <if test="problems !=null">
  810. and problems = #{problems}
  811. </if>
  812. <if test="improvement !=null">
  813. and improvement = #{improvement}
  814. </if>
  815. <if test="tempBeforeLoop !=null">
  816. and temp_before_loop = #{tempBeforeLoop}
  817. </if>
  818. <if test="tempAfterLoop !=null">
  819. and temp_after_loop = #{tempAfterLoop}
  820. </if>
  821. <if test="operator !=null">
  822. and operator = #{operator}
  823. </if>
  824. <if test="remark !=null">
  825. and remark = #{remark}
  826. </if>
  827. <if test="cId !=null">
  828. and c_id = #{cId}
  829. </if>
  830. <if test="uId !=null">
  831. and u_id = #{uId}
  832. </if>
  833. <if test="cTime !=null">
  834. and c_time = #{cTime}
  835. </if>
  836. <if test="uTime !=null">
  837. and u_time = #{uTime}
  838. </if>
  839. <if test="version !=null">
  840. and version = #{version}
  841. </if>
  842. <if test="outsideTemp !=null">
  843. and outside_temp = #{outsideTemp}
  844. </if>
  845. <if test="circulationPower !=null">
  846. and circulation_power = #{circulationPower}
  847. </if>
  848. <if test="circulationTime !=null">
  849. and circulation_time = #{circulationTime}
  850. </if>
  851. <if test="circulationNumber !=null">
  852. and circulation_number = #{circulationNumber}
  853. </if>
  854. <if test="loopTimeStart !=null">
  855. and loop_time_start = #{loopTimeStart}
  856. </if>
  857. <if test="loopTimeEnd !=null">
  858. and loop_time_end = #{loopTimeEnd}
  859. </if>
  860. <if test="avgGrainTemp !=null">
  861. and avg_grain_temp = #{avgGrainTemp}
  862. </if>
  863. <if test="grainstackAvgTemp !=null">
  864. and grainstack_avg_temp = #{grainstackAvgTemp}
  865. </if>
  866. <if test="airTightness !=null">
  867. and air_tightness = #{airTightness}
  868. </if>
  869. <if test="securityOfficer !=null">
  870. and security_officer = #{securityOfficer}
  871. </if>
  872. <if test="closeTimeEnd !=null">
  873. and close_time_end = #{closeTimeEnd}
  874. </if>
  875. <if test="aerationStartTime !=null">
  876. and aeration_start_time = #{aerationStartTime}
  877. </if>
  878. <if test="aerationEndTime !=null">
  879. and aeration_end_time = #{aerationEndTime}
  880. </if>
  881. <if test="aerationMode !=null">
  882. and aeration_mode = #{aerationMode}
  883. </if>
  884. </where>
  885. <choose>
  886. <when test="page !=null and page.orderBy != null and page.orderBy != ''">
  887. ORDER BY ${page.orderBy}
  888. </when>
  889. <otherwise>
  890. order by id desc
  891. </otherwise>
  892. </choose>
  893. </select>
  894. <insert id="insert" keyColumn="id" keyProperty="id" useGeneratedKeys="true"
  895. parameterType="cn.ourwill.module.house.entity.daily.DailyRecordTask">
  896. INSERT INTO daily_record_task
  897. <trim prefix="(" suffix=")" suffixOverrides=",">
  898. <if test=" id != null">
  899. id,
  900. </if>
  901. <if test=" type != null">
  902. `type`,
  903. </if>
  904. <if test=" subType != null">
  905. sub_type,
  906. </if>
  907. <if test=" uuid != null">
  908. uuid,
  909. </if>
  910. <if test=" houseId != null">
  911. house_id,
  912. </if>
  913. <if test=" volume != null">
  914. volume,
  915. </if>
  916. <if test=" windReason != null">
  917. wind_reason,
  918. </if>
  919. <if test=" height != null">
  920. height,
  921. </if>
  922. <if test=" taskStartTime != null">
  923. task_start_time,
  924. </if>
  925. <if test=" taskEndTime != null">
  926. task_end_time,
  927. </if>
  928. <if test=" keeper != null">
  929. keeper,
  930. </if>
  931. <if test=" windTotal != null">
  932. wind_total,
  933. </if>
  934. <if test=" uniteWind != null">
  935. unite_wind,
  936. </if>
  937. <if test=" blowerModel != null">
  938. blower_model,
  939. </if>
  940. <if test=" blowerPower != null">
  941. blower_power,
  942. </if>
  943. <if test=" blowerType != null">
  944. blower_type,
  945. </if>
  946. <if test=" blowerTypeUnit != null">
  947. blower_type_unit,
  948. </if>
  949. <if test=" blowerTotalForces != null">
  950. blower_total_forces,
  951. </if>
  952. <if test=" windType != null">
  953. wind_type,
  954. </if>
  955. <if test=" blowerNumber != null">
  956. blower_number,
  957. </if>
  958. <if test=" taskTime != null">
  959. task_time,
  960. </if>
  961. <if test=" tempHigh != null">
  962. temp_high,
  963. </if>
  964. <if test=" tempLow != null">
  965. temp_low,
  966. </if>
  967. <if test=" tempAverage != null">
  968. temp_average,
  969. </if>
  970. <if test=" humidityHigh != null">
  971. humidity_high,
  972. </if>
  973. <if test=" humidityLow != null">
  974. humidity_low,
  975. </if>
  976. <if test=" humidityAverage != null">
  977. humidity_average,
  978. </if>
  979. <if test=" tempBeforeHigh != null">
  980. temp_before_high,
  981. </if>
  982. <if test=" tempAfterHigh != null">
  983. temp_after_high,
  984. </if>
  985. <if test=" tempBeforeLow != null">
  986. temp_before_low,
  987. </if>
  988. <if test=" tempAfterLow != null">
  989. temp_after_low,
  990. </if>
  991. <if test=" tempBeforeAverage != null">
  992. temp_before_average,
  993. </if>
  994. <if test=" tempEndAverage != null">
  995. temp_end_average,
  996. </if>
  997. <if test=" waterBeforeHigh != null">
  998. water_before_high,
  999. </if>
  1000. <if test=" waterBeforeLow != null">
  1001. water_before_low,
  1002. </if>
  1003. <if test=" waterBeforeAverage != null">
  1004. water_before_average,
  1005. </if>
  1006. <if test=" waterAfterHigh != null">
  1007. water_after_high,
  1008. </if>
  1009. <if test=" waterAfterLow != null">
  1010. water_after_low,
  1011. </if>
  1012. <if test=" waterAfterAverage != null">
  1013. water_after_average,
  1014. </if>
  1015. <if test=" tempGrads != null">
  1016. temp_grads,
  1017. </if>
  1018. <if test=" waterGrads != null">
  1019. water_grads,
  1020. </if>
  1021. <if test=" totalPower != null">
  1022. total_power,
  1023. </if>
  1024. <if test=" weather != null">
  1025. weather,
  1026. </if>
  1027. <if test=" airTemp != null">
  1028. air_temp,
  1029. </if>
  1030. <if test=" drugTime != null">
  1031. drug_time,
  1032. </if>
  1033. <if test=" houseTemp != null">
  1034. house_temp,
  1035. </if>
  1036. <if test=" averateTemp != null">
  1037. averate_temp,
  1038. </if>
  1039. <if test=" number != null">
  1040. `number`,
  1041. </if>
  1042. <if test=" houseFoodCapacity != null">
  1043. house_food_capacity,
  1044. </if>
  1045. <if test=" drugPurity != null">
  1046. drug_purity,
  1047. </if>
  1048. <if test=" houseSpaceCapacity != null">
  1049. house_space_capacity,
  1050. </if>
  1051. <if test=" houseSumCapacity != null">
  1052. house_sum_capacity,
  1053. </if>
  1054. <if test=" sequence != null">
  1055. sequence,
  1056. </if>
  1057. <if test=" materialCapacity != null">
  1058. material_capacity,
  1059. </if>
  1060. <if test=" drugName != null">
  1061. drug_name,
  1062. </if>
  1063. <if test=" drugWay != null">
  1064. drug_way,
  1065. </if>
  1066. <if test=" drugPeopleCount != null">
  1067. drug_people_count,
  1068. </if>
  1069. <if test=" unitePower != null">
  1070. unite_power,
  1071. </if>
  1072. <if test=" isFumigation != null">
  1073. is_fumigation,
  1074. </if>
  1075. <if test=" closeWay != null">
  1076. close_way,
  1077. </if>
  1078. <if test=" director != null">
  1079. director,
  1080. </if>
  1081. <if test=" drugCapacityCount != null">
  1082. drug_capacity_count,
  1083. </if>
  1084. <if test=" durgCount != null">
  1085. durg_count,
  1086. </if>
  1087. <if test=" tempBeforeFumigation != null">
  1088. temp_before_fumigation,
  1089. </if>
  1090. <if test=" tempAfterFumigation != null">
  1091. temp_after_fumigation,
  1092. </if>
  1093. <if test=" pestBeforeFumigation != null">
  1094. pest_before_fumigation,
  1095. </if>
  1096. <if test=" pestAfterFumigation != null">
  1097. pest_after_fumigation,
  1098. </if>
  1099. <if test=" fumigationKind != null">
  1100. fumigation_kind,
  1101. </if>
  1102. <if test=" water != null">
  1103. water,
  1104. </if>
  1105. <if test=" closeTime != null">
  1106. close_time,
  1107. </if>
  1108. <if test=" killRatio != null">
  1109. kill_ratio,
  1110. </if>
  1111. <if test=" remainRatio != null">
  1112. remain_ratio,
  1113. </if>
  1114. <if test=" isBadThings != null">
  1115. is_bad_things,
  1116. </if>
  1117. <if test=" managerUser != null">
  1118. manager_user,
  1119. </if>
  1120. <if test=" drugFoodCount != null">
  1121. drug_food_count,
  1122. </if>
  1123. <if test=" deviceNo != null">
  1124. device_no,
  1125. </if>
  1126. <if test=" power != null">
  1127. power,
  1128. </if>
  1129. <if test=" loopTime != null">
  1130. loop_time,
  1131. </if>
  1132. <if test=" airConditionState != null">
  1133. air_condition_state,
  1134. </if>
  1135. <if test=" problems != null">
  1136. problems,
  1137. </if>
  1138. <if test=" improvement != null">
  1139. improvement,
  1140. </if>
  1141. <if test=" tempBeforeLoop != null">
  1142. temp_before_loop,
  1143. </if>
  1144. <if test=" tempAfterLoop != null">
  1145. temp_after_loop,
  1146. </if>
  1147. <if test=" operator != null">
  1148. operator,
  1149. </if>
  1150. <if test=" remark != null">
  1151. remark,
  1152. </if>
  1153. <if test=" cId != null">
  1154. c_id,
  1155. </if>
  1156. <if test=" uId != null">
  1157. u_id,
  1158. </if>
  1159. <if test=" cTime != null">
  1160. c_time,
  1161. </if>
  1162. <if test=" uTime != null">
  1163. u_time,
  1164. </if>
  1165. <if test=" version != null">
  1166. version,
  1167. </if>
  1168. <if test=" outsideTemp != null">
  1169. outside_temp,
  1170. </if>
  1171. <if test=" circulationPower != null">
  1172. circulation_power,
  1173. </if>
  1174. <if test=" circulationTime != null">
  1175. circulation_time,
  1176. </if>
  1177. <if test=" circulationNumber != null">
  1178. circulation_number,
  1179. </if>
  1180. <if test=" loopTimeStart != null">
  1181. loop_time_start,
  1182. </if>
  1183. <if test=" loopTimeEnd != null">
  1184. loop_time_end,
  1185. </if>
  1186. <if test=" avgGrainTemp != null">
  1187. avg_grain_temp,
  1188. </if>
  1189. <if test=" grainstackAvgTemp != null">
  1190. grainstack_avg_temp,
  1191. </if>
  1192. <if test=" airTightness != null">
  1193. air_tightness,
  1194. </if>
  1195. <if test=" securityOfficer != null">
  1196. security_officer,
  1197. </if>
  1198. <if test=" closeTimeEnd != null">
  1199. close_time_end,
  1200. </if>
  1201. <if test=" aerationStartTime != null">
  1202. aeration_start_time,
  1203. </if>
  1204. <if test=" aerationEndTime != null">
  1205. aeration_end_time,
  1206. </if>
  1207. <if test=" aerationMode != null">
  1208. aeration_mode
  1209. </if>
  1210. </trim>
  1211. <trim prefix="values (" suffix=")" suffixOverrides=",">
  1212. <if test=" id != null">
  1213. #{id},
  1214. </if>
  1215. <if test=" type != null">
  1216. #{type},
  1217. </if>
  1218. <if test=" subType != null">
  1219. #{subType},
  1220. </if>
  1221. <if test=" uuid != null">
  1222. #{uuid},
  1223. </if>
  1224. <if test=" houseId != null">
  1225. #{houseId},
  1226. </if>
  1227. <if test=" volume != null">
  1228. #{volume},
  1229. </if>
  1230. <if test=" windReason != null">
  1231. #{windReason},
  1232. </if>
  1233. <if test=" height != null">
  1234. #{height},
  1235. </if>
  1236. <if test=" taskStartTime != null">
  1237. #{taskStartTime},
  1238. </if>
  1239. <if test=" taskEndTime != null">
  1240. #{taskEndTime},
  1241. </if>
  1242. <if test=" keeper != null">
  1243. #{keeper},
  1244. </if>
  1245. <if test=" windTotal != null">
  1246. #{windTotal},
  1247. </if>
  1248. <if test=" uniteWind != null">
  1249. #{uniteWind},
  1250. </if>
  1251. <if test=" blowerModel != null">
  1252. #{blowerModel},
  1253. </if>
  1254. <if test=" blowerPower != null">
  1255. #{blowerPower},
  1256. </if>
  1257. <if test=" blowerType != null">
  1258. #{blowerType},
  1259. </if>
  1260. <if test=" blowerTypeUnit != null">
  1261. #{blowerTypeUnit},
  1262. </if>
  1263. <if test=" blowerTotalForces != null">
  1264. #{blowerTotalForces},
  1265. </if>
  1266. <if test=" windType != null">
  1267. #{windType},
  1268. </if>
  1269. <if test=" blowerNumber != null">
  1270. #{blowerNumber},
  1271. </if>
  1272. <if test=" taskTime != null">
  1273. #{taskTime},
  1274. </if>
  1275. <if test=" tempHigh != null">
  1276. #{tempHigh},
  1277. </if>
  1278. <if test=" tempLow != null">
  1279. #{tempLow},
  1280. </if>
  1281. <if test=" tempAverage != null">
  1282. #{tempAverage},
  1283. </if>
  1284. <if test=" humidityHigh != null">
  1285. #{humidityHigh},
  1286. </if>
  1287. <if test=" humidityLow != null">
  1288. #{humidityLow},
  1289. </if>
  1290. <if test=" humidityAverage != null">
  1291. #{humidityAverage},
  1292. </if>
  1293. <if test=" tempBeforeHigh != null">
  1294. #{tempBeforeHigh},
  1295. </if>
  1296. <if test=" tempAfterHigh != null">
  1297. #{tempAfterHigh},
  1298. </if>
  1299. <if test=" tempBeforeLow != null">
  1300. #{tempBeforeLow},
  1301. </if>
  1302. <if test=" tempAfterLow != null">
  1303. #{tempAfterLow},
  1304. </if>
  1305. <if test=" tempBeforeAverage != null">
  1306. #{tempBeforeAverage},
  1307. </if>
  1308. <if test=" tempEndAverage != null">
  1309. #{tempEndAverage},
  1310. </if>
  1311. <if test=" waterBeforeHigh != null">
  1312. #{waterBeforeHigh},
  1313. </if>
  1314. <if test=" waterBeforeLow != null">
  1315. #{waterBeforeLow},
  1316. </if>
  1317. <if test=" waterBeforeAverage != null">
  1318. #{waterBeforeAverage},
  1319. </if>
  1320. <if test=" waterAfterHigh != null">
  1321. #{waterAfterHigh},
  1322. </if>
  1323. <if test=" waterAfterLow != null">
  1324. #{waterAfterLow},
  1325. </if>
  1326. <if test=" waterAfterAverage != null">
  1327. #{waterAfterAverage},
  1328. </if>
  1329. <if test=" tempGrads != null">
  1330. #{tempGrads},
  1331. </if>
  1332. <if test=" waterGrads != null">
  1333. #{waterGrads},
  1334. </if>
  1335. <if test=" totalPower != null">
  1336. #{totalPower},
  1337. </if>
  1338. <if test=" weather != null">
  1339. #{weather},
  1340. </if>
  1341. <if test=" airTemp != null">
  1342. #{airTemp},
  1343. </if>
  1344. <if test=" drugTime != null">
  1345. #{drugTime},
  1346. </if>
  1347. <if test=" houseTemp != null">
  1348. #{houseTemp},
  1349. </if>
  1350. <if test=" averateTemp != null">
  1351. #{averateTemp},
  1352. </if>
  1353. <if test=" number != null">
  1354. #{number},
  1355. </if>
  1356. <if test=" houseFoodCapacity != null">
  1357. #{houseFoodCapacity},
  1358. </if>
  1359. <if test=" drugPurity != null">
  1360. #{drugPurity},
  1361. </if>
  1362. <if test=" houseSpaceCapacity != null">
  1363. #{houseSpaceCapacity},
  1364. </if>
  1365. <if test=" houseSumCapacity != null">
  1366. #{houseSumCapacity},
  1367. </if>
  1368. <if test=" sequence != null">
  1369. #{sequence},
  1370. </if>
  1371. <if test=" materialCapacity != null">
  1372. #{materialCapacity},
  1373. </if>
  1374. <if test=" drugName != null">
  1375. #{drugName},
  1376. </if>
  1377. <if test=" drugWay != null">
  1378. #{drugWay},
  1379. </if>
  1380. <if test=" drugPeopleCount != null">
  1381. #{drugPeopleCount},
  1382. </if>
  1383. <if test=" unitePower != null">
  1384. #{unitePower},
  1385. </if>
  1386. <if test=" isFumigation != null">
  1387. #{isFumigation},
  1388. </if>
  1389. <if test=" closeWay != null">
  1390. #{closeWay},
  1391. </if>
  1392. <if test=" director != null">
  1393. #{director},
  1394. </if>
  1395. <if test=" drugCapacityCount != null">
  1396. #{drugCapacityCount},
  1397. </if>
  1398. <if test=" durgCount != null">
  1399. #{durgCount},
  1400. </if>
  1401. <if test=" tempBeforeFumigation != null">
  1402. #{tempBeforeFumigation},
  1403. </if>
  1404. <if test=" tempAfterFumigation != null">
  1405. #{tempAfterFumigation},
  1406. </if>
  1407. <if test=" pestBeforeFumigation != null">
  1408. #{pestBeforeFumigation},
  1409. </if>
  1410. <if test=" pestAfterFumigation != null">
  1411. #{pestAfterFumigation},
  1412. </if>
  1413. <if test=" fumigationKind != null">
  1414. #{fumigationKind},
  1415. </if>
  1416. <if test=" water != null">
  1417. #{water},
  1418. </if>
  1419. <if test=" closeTime != null">
  1420. #{closeTime},
  1421. </if>
  1422. <if test=" killRatio != null">
  1423. #{killRatio},
  1424. </if>
  1425. <if test=" remainRatio != null">
  1426. #{remainRatio},
  1427. </if>
  1428. <if test=" isBadThings != null">
  1429. #{isBadThings},
  1430. </if>
  1431. <if test=" managerUser != null">
  1432. #{managerUser},
  1433. </if>
  1434. <if test=" drugFoodCount != null">
  1435. #{drugFoodCount},
  1436. </if>
  1437. <if test=" deviceNo != null">
  1438. #{deviceNo},
  1439. </if>
  1440. <if test=" power != null">
  1441. #{power},
  1442. </if>
  1443. <if test=" loopTime != null">
  1444. #{loopTime},
  1445. </if>
  1446. <if test=" airConditionState != null">
  1447. #{airConditionState},
  1448. </if>
  1449. <if test=" problems != null">
  1450. #{problems},
  1451. </if>
  1452. <if test=" improvement != null">
  1453. #{improvement},
  1454. </if>
  1455. <if test=" tempBeforeLoop != null">
  1456. #{tempBeforeLoop},
  1457. </if>
  1458. <if test=" tempAfterLoop != null">
  1459. #{tempAfterLoop},
  1460. </if>
  1461. <if test=" operator != null">
  1462. #{operator},
  1463. </if>
  1464. <if test=" remark != null">
  1465. #{remark},
  1466. </if>
  1467. <if test=" cId != null">
  1468. #{cId},
  1469. </if>
  1470. <if test=" uId != null">
  1471. #{uId},
  1472. </if>
  1473. <if test=" cTime != null">
  1474. #{cTime},
  1475. </if>
  1476. <if test=" uTime != null">
  1477. #{uTime},
  1478. </if>
  1479. <if test=" version != null">
  1480. #{version},
  1481. </if>
  1482. <if test=" outsideTemp != null">
  1483. #{outsideTemp},
  1484. </if>
  1485. <if test=" circulationPower != null">
  1486. #{circulationPower},
  1487. </if>
  1488. <if test=" circulationTime != null">
  1489. #{circulationTime},
  1490. </if>
  1491. <if test=" circulationNumber != null">
  1492. #{circulationNumber},
  1493. </if>
  1494. <if test=" loopTimeStart != null">
  1495. #{loopTimeStart},
  1496. </if>
  1497. <if test=" loopTimeEnd != null">
  1498. #{loopTimeEnd},
  1499. </if>
  1500. <if test=" avgGrainTemp != null">
  1501. #{avgGrainTemp},
  1502. </if>
  1503. <if test=" grainstackAvgTemp != null">
  1504. #{grainstackAvgTemp},
  1505. </if>
  1506. <if test=" airTightness != null">
  1507. #{airTightness},
  1508. </if>
  1509. <if test=" securityOfficer != null">
  1510. #{securityOfficer},
  1511. </if>
  1512. <if test=" closeTimeEnd != null">
  1513. #{closeTimeEnd},
  1514. </if>
  1515. <if test=" aerationStartTime != null">
  1516. #{aerationStartTime},
  1517. </if>
  1518. <if test=" aerationEndTime != null">
  1519. #{aerationEndTime},
  1520. </if>
  1521. <if test=" aerationMode != null">
  1522. #{aerationMode}
  1523. </if>
  1524. </trim>
  1525. </insert>
  1526. <update id="updateByUuid" parameterType="cn.ourwill.module.house.entity.daily.DailyRecordTask">
  1527. UPDATE daily_record_task
  1528. <set>
  1529. <if test="type != null">
  1530. `type`= #{type} ,
  1531. </if>
  1532. <if test="subType != null">
  1533. sub_type= #{subType} ,
  1534. </if>
  1535. <if test="uuid != null">
  1536. uuid= #{uuid} ,
  1537. </if>
  1538. <if test="houseId != null">
  1539. house_id= #{houseId} ,
  1540. </if>
  1541. <if test="volume != null">
  1542. volume= #{volume} ,
  1543. </if>
  1544. <if test="windReason != null">
  1545. wind_reason= #{windReason} ,
  1546. </if>
  1547. <if test="height != null">
  1548. height= #{height} ,
  1549. </if>
  1550. <if test="taskStartTime != null">
  1551. task_start_time= #{taskStartTime} ,
  1552. </if>
  1553. <if test="taskEndTime != null">
  1554. task_end_time= #{taskEndTime} ,
  1555. </if>
  1556. <if test="keeper != null">
  1557. keeper= #{keeper} ,
  1558. </if>
  1559. <if test="windTotal != null">
  1560. wind_total= #{windTotal} ,
  1561. </if>
  1562. <if test="uniteWind != null">
  1563. unite_wind= #{uniteWind} ,
  1564. </if>
  1565. <if test="blowerModel != null">
  1566. blower_model= #{blowerModel} ,
  1567. </if>
  1568. <if test="blowerPower != null">
  1569. blower_power= #{blowerPower} ,
  1570. </if>
  1571. <if test="blowerType != null">
  1572. blower_type= #{blowerType} ,
  1573. </if>
  1574. <if test="blowerTypeUnit != null">
  1575. blower_type_unit= #{blowerTypeUnit} ,
  1576. </if>
  1577. <if test="blowerTotalForces != null">
  1578. blower_total_forces= #{blowerTotalForces} ,
  1579. </if>
  1580. <if test="windType != null">
  1581. wind_type= #{windType} ,
  1582. </if>
  1583. <if test="blowerNumber != null">
  1584. blower_number= #{blowerNumber} ,
  1585. </if>
  1586. <if test="taskTime != null">
  1587. task_time= #{taskTime} ,
  1588. </if>
  1589. <if test="tempHigh != null">
  1590. temp_high= #{tempHigh} ,
  1591. </if>
  1592. <if test="tempLow != null">
  1593. temp_low= #{tempLow} ,
  1594. </if>
  1595. <if test="tempAverage != null">
  1596. temp_average= #{tempAverage} ,
  1597. </if>
  1598. <if test="humidityHigh != null">
  1599. humidity_high= #{humidityHigh} ,
  1600. </if>
  1601. <if test="humidityLow != null">
  1602. humidity_low= #{humidityLow} ,
  1603. </if>
  1604. <if test="humidityAverage != null">
  1605. humidity_average= #{humidityAverage} ,
  1606. </if>
  1607. <if test="tempBeforeHigh != null">
  1608. temp_before_high= #{tempBeforeHigh} ,
  1609. </if>
  1610. <if test="tempAfterHigh != null">
  1611. temp_after_high= #{tempAfterHigh} ,
  1612. </if>
  1613. <if test="tempBeforeLow != null">
  1614. temp_before_low= #{tempBeforeLow} ,
  1615. </if>
  1616. <if test="tempAfterLow != null">
  1617. temp_after_low= #{tempAfterLow} ,
  1618. </if>
  1619. <if test="tempBeforeAverage != null">
  1620. temp_before_average= #{tempBeforeAverage} ,
  1621. </if>
  1622. <if test="tempEndAverage != null">
  1623. temp_end_average= #{tempEndAverage} ,
  1624. </if>
  1625. <if test="waterBeforeHigh != null">
  1626. water_before_high= #{waterBeforeHigh} ,
  1627. </if>
  1628. <if test="waterBeforeLow != null">
  1629. water_before_low= #{waterBeforeLow} ,
  1630. </if>
  1631. <if test="waterBeforeAverage != null">
  1632. water_before_average= #{waterBeforeAverage} ,
  1633. </if>
  1634. <if test="waterAfterHigh != null">
  1635. water_after_high= #{waterAfterHigh} ,
  1636. </if>
  1637. <if test="waterAfterLow != null">
  1638. water_after_low= #{waterAfterLow} ,
  1639. </if>
  1640. <if test="waterAfterAverage != null">
  1641. water_after_average= #{waterAfterAverage} ,
  1642. </if>
  1643. <if test="tempGrads != null">
  1644. temp_grads= #{tempGrads} ,
  1645. </if>
  1646. <if test="waterGrads != null">
  1647. water_grads= #{waterGrads} ,
  1648. </if>
  1649. <if test="totalPower != null">
  1650. total_power= #{totalPower} ,
  1651. </if>
  1652. <if test="weather != null">
  1653. weather= #{weather} ,
  1654. </if>
  1655. <if test="airTemp != null">
  1656. air_temp= #{airTemp} ,
  1657. </if>
  1658. <if test="drugTime != null">
  1659. drug_time= #{drugTime} ,
  1660. </if>
  1661. <if test="houseTemp != null">
  1662. house_temp= #{houseTemp} ,
  1663. </if>
  1664. <if test="averateTemp != null">
  1665. averate_temp= #{averateTemp} ,
  1666. </if>
  1667. <if test="number != null">
  1668. `number`= #{number} ,
  1669. </if>
  1670. <if test="houseFoodCapacity != null">
  1671. house_food_capacity= #{houseFoodCapacity} ,
  1672. </if>
  1673. <if test="drugPurity != null">
  1674. drug_purity= #{drugPurity} ,
  1675. </if>
  1676. <if test="houseSpaceCapacity != null">
  1677. house_space_capacity= #{houseSpaceCapacity} ,
  1678. </if>
  1679. <if test="houseSumCapacity != null">
  1680. house_sum_capacity= #{houseSumCapacity} ,
  1681. </if>
  1682. <if test="sequence != null">
  1683. sequence= #{sequence} ,
  1684. </if>
  1685. <if test="materialCapacity != null">
  1686. material_capacity= #{materialCapacity} ,
  1687. </if>
  1688. <if test="drugName != null">
  1689. drug_name= #{drugName} ,
  1690. </if>
  1691. <if test="drugWay != null">
  1692. drug_way= #{drugWay} ,
  1693. </if>
  1694. <if test="drugPeopleCount != null">
  1695. drug_people_count= #{drugPeopleCount} ,
  1696. </if>
  1697. <if test="unitePower != null">
  1698. unite_power= #{unitePower} ,
  1699. </if>
  1700. <if test="isFumigation != null">
  1701. is_fumigation= #{isFumigation} ,
  1702. </if>
  1703. <if test="closeWay != null">
  1704. close_way= #{closeWay} ,
  1705. </if>
  1706. <if test="director != null">
  1707. director= #{director} ,
  1708. </if>
  1709. <if test="drugCapacityCount != null">
  1710. drug_capacity_count= #{drugCapacityCount} ,
  1711. </if>
  1712. <if test="durgCount != null">
  1713. durg_count= #{durgCount} ,
  1714. </if>
  1715. <if test="tempBeforeFumigation != null">
  1716. temp_before_fumigation= #{tempBeforeFumigation} ,
  1717. </if>
  1718. <if test="tempAfterFumigation != null">
  1719. temp_after_fumigation= #{tempAfterFumigation} ,
  1720. </if>
  1721. <if test="pestBeforeFumigation != null">
  1722. pest_before_fumigation= #{pestBeforeFumigation} ,
  1723. </if>
  1724. <if test="pestAfterFumigation != null">
  1725. pest_after_fumigation= #{pestAfterFumigation} ,
  1726. </if>
  1727. <if test="fumigationKind != null">
  1728. fumigation_kind= #{fumigationKind} ,
  1729. </if>
  1730. <if test="water != null">
  1731. water= #{water} ,
  1732. </if>
  1733. <if test="closeTime != null">
  1734. close_time= #{closeTime} ,
  1735. </if>
  1736. <if test="killRatio != null">
  1737. kill_ratio= #{killRatio} ,
  1738. </if>
  1739. <if test="remainRatio != null">
  1740. remain_ratio= #{remainRatio} ,
  1741. </if>
  1742. <if test="isBadThings != null">
  1743. is_bad_things= #{isBadThings} ,
  1744. </if>
  1745. <if test="managerUser != null">
  1746. manager_user= #{managerUser} ,
  1747. </if>
  1748. <if test="deviceNo != null">
  1749. device_no= #{deviceNo} ,
  1750. </if>
  1751. <if test="power != null">
  1752. power= #{power} ,
  1753. </if>
  1754. <if test="loopTime != null">
  1755. loop_time= #{loopTime} ,
  1756. </if>
  1757. <if test="airConditionState != null">
  1758. air_condition_state= #{airConditionState} ,
  1759. </if>
  1760. <if test="problems != null">
  1761. problems= #{problems} ,
  1762. </if>
  1763. <if test="improvement != null">
  1764. improvement= #{improvement} ,
  1765. </if>
  1766. <if test="tempBeforeLoop != null">
  1767. temp_before_loop= #{tempBeforeLoop} ,
  1768. </if>
  1769. <if test="tempAfterLoop != null">
  1770. temp_after_loop= #{tempAfterLoop} ,
  1771. </if>
  1772. <if test="operator != null">
  1773. operator= #{operator} ,
  1774. </if>
  1775. <if test="remark != null">
  1776. remark= #{remark} ,
  1777. </if>
  1778. <if test="cId != null">
  1779. c_id= #{cId} ,
  1780. </if>
  1781. <if test="uId != null">
  1782. u_id= #{uId} ,
  1783. </if>
  1784. <if test="cTime != null">
  1785. c_time= #{cTime} ,
  1786. </if>
  1787. <if test="uTime != null">
  1788. u_time= #{uTime} ,
  1789. </if>
  1790. <if test="version != null">
  1791. version= #{version} ,
  1792. </if>
  1793. <if test="outsideTemp != null">
  1794. outside_temp= #{outsideTemp} ,
  1795. </if>
  1796. <if test="circulationPower != null">
  1797. circulation_power= #{circulationPower} ,
  1798. </if>
  1799. <if test="circulationTime != null">
  1800. circulation_time= #{circulationTime} ,
  1801. </if>
  1802. <if test="circulationNumber != null">
  1803. circulation_number= #{circulationNumber} ,
  1804. </if>
  1805. <if test="loopTimeStart != null">
  1806. loop_time_start= #{loopTimeStart} ,
  1807. </if>
  1808. <if test="loopTimeEnd != null">
  1809. loop_time_end= #{loopTimeEnd} ,
  1810. </if>
  1811. <if test="avgGrainTemp != null">
  1812. avg_grain_temp= #{avgGrainTemp} ,
  1813. </if>
  1814. <if test="grainstackAvgTemp != null">
  1815. grainstack_avg_temp= #{grainstackAvgTemp} ,
  1816. </if>
  1817. <if test="airTightness != null">
  1818. air_tightness= #{airTightness} ,
  1819. </if>
  1820. <if test="securityOfficer != null">
  1821. security_officer= #{securityOfficer} ,
  1822. </if>
  1823. <if test="closeTimeEnd != null">
  1824. close_time_end= #{closeTimeEnd} ,
  1825. </if>
  1826. <if test="aerationStartTime != null">
  1827. aeration_start_time= #{aerationStartTime} ,
  1828. </if>
  1829. <if test="aerationEndTime != null">
  1830. aeration_end_time= #{aerationEndTime} ,
  1831. </if>
  1832. <if test="aerationMode != null">
  1833. aeration_mode= #{aerationMode} ,
  1834. </if>
  1835. <if test="syncFlag !=null">
  1836. sync_flag=#{syncFlag}
  1837. </if>
  1838. </set>
  1839. WHERE uuid = #{uuid}
  1840. </update>
  1841. <update id="update" parameterType="cn.ourwill.module.house.entity.daily.DailyRecordTask">
  1842. UPDATE daily_record_task
  1843. <set>
  1844. <if test="id != null">
  1845. id= #{id} ,
  1846. </if>
  1847. <if test="type != null">
  1848. `type`= #{type} ,
  1849. </if>
  1850. <if test="subType != null">
  1851. sub_type= #{subType} ,
  1852. </if>
  1853. <if test="uuid != null">
  1854. uuid= #{uuid} ,
  1855. </if>
  1856. <if test="houseId != null">
  1857. house_id= #{houseId} ,
  1858. </if>
  1859. <if test="volume != null">
  1860. volume= #{volume} ,
  1861. </if>
  1862. <if test="windReason != null">
  1863. wind_reason= #{windReason} ,
  1864. </if>
  1865. <if test="height != null">
  1866. height= #{height} ,
  1867. </if>
  1868. <if test="taskStartTime != null">
  1869. task_start_time= #{taskStartTime} ,
  1870. </if>
  1871. <if test="taskEndTime != null">
  1872. task_end_time= #{taskEndTime} ,
  1873. </if>
  1874. <if test="keeper != null">
  1875. keeper= #{keeper} ,
  1876. </if>
  1877. <if test="windTotal != null">
  1878. wind_total= #{windTotal} ,
  1879. </if>
  1880. <if test="uniteWind != null">
  1881. unite_wind= #{uniteWind} ,
  1882. </if>
  1883. <if test="blowerModel != null">
  1884. blower_model= #{blowerModel} ,
  1885. </if>
  1886. <if test="blowerPower != null">
  1887. blower_power= #{blowerPower} ,
  1888. </if>
  1889. <if test="blowerType != null">
  1890. blower_type= #{blowerType} ,
  1891. </if>
  1892. <if test="blowerTypeUnit != null">
  1893. blower_type_unit= #{blowerTypeUnit} ,
  1894. </if>
  1895. <if test="blowerTotalForces != null">
  1896. blower_total_forces= #{blowerTotalForces} ,
  1897. </if>
  1898. <if test="windType != null">
  1899. wind_type= #{windType} ,
  1900. </if>
  1901. <if test="blowerNumber != null">
  1902. blower_number= #{blowerNumber} ,
  1903. </if>
  1904. <if test="taskTime != null">
  1905. task_time= #{taskTime} ,
  1906. </if>
  1907. <if test="tempHigh != null">
  1908. temp_high= #{tempHigh} ,
  1909. </if>
  1910. <if test="tempLow != null">
  1911. temp_low= #{tempLow} ,
  1912. </if>
  1913. <if test="tempAverage != null">
  1914. temp_average= #{tempAverage} ,
  1915. </if>
  1916. <if test="humidityHigh != null">
  1917. humidity_high= #{humidityHigh} ,
  1918. </if>
  1919. <if test="humidityLow != null">
  1920. humidity_low= #{humidityLow} ,
  1921. </if>
  1922. <if test="humidityAverage != null">
  1923. humidity_average= #{humidityAverage} ,
  1924. </if>
  1925. <if test="tempBeforeHigh != null">
  1926. temp_before_high= #{tempBeforeHigh} ,
  1927. </if>
  1928. <if test="tempAfterHigh != null">
  1929. temp_after_high= #{tempAfterHigh} ,
  1930. </if>
  1931. <if test="tempBeforeLow != null">
  1932. temp_before_low= #{tempBeforeLow} ,
  1933. </if>
  1934. <if test="tempAfterLow != null">
  1935. temp_after_low= #{tempAfterLow} ,
  1936. </if>
  1937. <if test="tempBeforeAverage != null">
  1938. temp_before_average= #{tempBeforeAverage} ,
  1939. </if>
  1940. <if test="tempEndAverage != null">
  1941. temp_end_average= #{tempEndAverage} ,
  1942. </if>
  1943. <if test="waterBeforeHigh != null">
  1944. water_before_high= #{waterBeforeHigh} ,
  1945. </if>
  1946. <if test="waterBeforeLow != null">
  1947. water_before_low= #{waterBeforeLow} ,
  1948. </if>
  1949. <if test="waterBeforeAverage != null">
  1950. water_before_average= #{waterBeforeAverage} ,
  1951. </if>
  1952. <if test="waterAfterHigh != null">
  1953. water_after_high= #{waterAfterHigh} ,
  1954. </if>
  1955. <if test="waterAfterLow != null">
  1956. water_after_low= #{waterAfterLow} ,
  1957. </if>
  1958. <if test="waterAfterAverage != null">
  1959. water_after_average= #{waterAfterAverage} ,
  1960. </if>
  1961. <if test="tempGrads != null">
  1962. temp_grads= #{tempGrads} ,
  1963. </if>
  1964. <if test="waterGrads != null">
  1965. water_grads= #{waterGrads} ,
  1966. </if>
  1967. <if test="totalPower != null">
  1968. total_power= #{totalPower} ,
  1969. </if>
  1970. <if test="weather != null">
  1971. weather= #{weather} ,
  1972. </if>
  1973. <if test="airTemp != null">
  1974. air_temp= #{airTemp} ,
  1975. </if>
  1976. <if test="drugTime != null">
  1977. drug_time= #{drugTime} ,
  1978. </if>
  1979. <if test="houseTemp != null">
  1980. house_temp= #{houseTemp} ,
  1981. </if>
  1982. <if test="averateTemp != null">
  1983. averate_temp= #{averateTemp} ,
  1984. </if>
  1985. <if test="number != null">
  1986. `number`= #{number} ,
  1987. </if>
  1988. <if test="houseFoodCapacity != null">
  1989. house_food_capacity= #{houseFoodCapacity} ,
  1990. </if>
  1991. <if test="drugPurity != null">
  1992. drug_purity= #{drugPurity} ,
  1993. </if>
  1994. <if test="houseSpaceCapacity != null">
  1995. house_space_capacity= #{houseSpaceCapacity} ,
  1996. </if>
  1997. <if test="houseSumCapacity != null">
  1998. house_sum_capacity= #{houseSumCapacity} ,
  1999. </if>
  2000. <if test="sequence != null">
  2001. sequence= #{sequence} ,
  2002. </if>
  2003. <if test="materialCapacity != null">
  2004. material_capacity= #{materialCapacity} ,
  2005. </if>
  2006. <if test="drugName != null">
  2007. drug_name= #{drugName} ,
  2008. </if>
  2009. <if test="drugWay != null">
  2010. drug_way= #{drugWay} ,
  2011. </if>
  2012. <if test="drugPeopleCount != null">
  2013. drug_people_count= #{drugPeopleCount} ,
  2014. </if>
  2015. <if test="unitePower != null">
  2016. unite_power= #{unitePower} ,
  2017. </if>
  2018. <if test="isFumigation != null">
  2019. is_fumigation= #{isFumigation} ,
  2020. </if>
  2021. <if test="closeWay != null">
  2022. close_way= #{closeWay} ,
  2023. </if>
  2024. <if test="director != null">
  2025. director= #{director} ,
  2026. </if>
  2027. <if test="drugCapacityCount != null">
  2028. drug_capacity_count= #{drugCapacityCount} ,
  2029. </if>
  2030. <if test="durgCount != null">
  2031. durg_count= #{durgCount} ,
  2032. </if>
  2033. <if test="tempBeforeFumigation != null">
  2034. temp_before_fumigation= #{tempBeforeFumigation} ,
  2035. </if>
  2036. <if test="tempAfterFumigation != null">
  2037. temp_after_fumigation= #{tempAfterFumigation} ,
  2038. </if>
  2039. <if test="pestBeforeFumigation != null">
  2040. pest_before_fumigation= #{pestBeforeFumigation} ,
  2041. </if>
  2042. <if test="pestAfterFumigation != null">
  2043. pest_after_fumigation= #{pestAfterFumigation} ,
  2044. </if>
  2045. <if test="fumigationKind != null">
  2046. fumigation_kind= #{fumigationKind} ,
  2047. </if>
  2048. <if test="water != null">
  2049. water= #{water} ,
  2050. </if>
  2051. <if test="closeTime != null">
  2052. close_time= #{closeTime} ,
  2053. </if>
  2054. <if test="killRatio != null">
  2055. kill_ratio= #{killRatio} ,
  2056. </if>
  2057. <if test="remainRatio != null">
  2058. remain_ratio= #{remainRatio} ,
  2059. </if>
  2060. <if test="isBadThings != null">
  2061. is_bad_things= #{isBadThings} ,
  2062. </if>
  2063. <if test="managerUser != null">
  2064. manager_user= #{managerUser} ,
  2065. </if>
  2066. <if test="deviceNo != null">
  2067. device_no= #{deviceNo} ,
  2068. </if>
  2069. <if test="power != null">
  2070. power= #{power} ,
  2071. </if>
  2072. <if test="loopTime != null">
  2073. loop_time= #{loopTime} ,
  2074. </if>
  2075. <if test="airConditionState != null">
  2076. air_condition_state= #{airConditionState} ,
  2077. </if>
  2078. <if test="problems != null">
  2079. problems= #{problems} ,
  2080. </if>
  2081. <if test="improvement != null">
  2082. improvement= #{improvement} ,
  2083. </if>
  2084. <if test="tempBeforeLoop != null">
  2085. temp_before_loop= #{tempBeforeLoop} ,
  2086. </if>
  2087. <if test="tempAfterLoop != null">
  2088. temp_after_loop= #{tempAfterLoop} ,
  2089. </if>
  2090. <if test="operator != null">
  2091. operator= #{operator} ,
  2092. </if>
  2093. <if test="remark != null">
  2094. remark= #{remark} ,
  2095. </if>
  2096. <if test="cId != null">
  2097. c_id= #{cId} ,
  2098. </if>
  2099. <if test="uId != null">
  2100. u_id= #{uId} ,
  2101. </if>
  2102. <if test="cTime != null">
  2103. c_time= #{cTime} ,
  2104. </if>
  2105. <if test="uTime != null">
  2106. u_time= #{uTime} ,
  2107. </if>
  2108. <if test="version != null">
  2109. version= #{version} ,
  2110. </if>
  2111. <if test="outsideTemp != null">
  2112. outside_temp= #{outsideTemp} ,
  2113. </if>
  2114. <if test="circulationPower != null">
  2115. circulation_power= #{circulationPower} ,
  2116. </if>
  2117. <if test="circulationTime != null">
  2118. circulation_time= #{circulationTime} ,
  2119. </if>
  2120. <if test="circulationNumber != null">
  2121. circulation_number= #{circulationNumber} ,
  2122. </if>
  2123. <if test="loopTimeStart != null">
  2124. loop_time_start= #{loopTimeStart} ,
  2125. </if>
  2126. <if test="loopTimeEnd != null">
  2127. loop_time_end= #{loopTimeEnd} ,
  2128. </if>
  2129. <if test="avgGrainTemp != null">
  2130. avg_grain_temp= #{avgGrainTemp} ,
  2131. </if>
  2132. <if test="grainstackAvgTemp != null">
  2133. grainstack_avg_temp= #{grainstackAvgTemp} ,
  2134. </if>
  2135. <if test="airTightness != null">
  2136. air_tightness= #{airTightness} ,
  2137. </if>
  2138. <if test="securityOfficer != null">
  2139. security_officer= #{securityOfficer} ,
  2140. </if>
  2141. <if test="closeTimeEnd != null">
  2142. close_time_end= #{closeTimeEnd} ,
  2143. </if>
  2144. <if test="aerationStartTime != null">
  2145. aeration_start_time= #{aerationStartTime} ,
  2146. </if>
  2147. <if test="aerationEndTime != null">
  2148. aeration_end_time= #{aerationEndTime} ,
  2149. </if>
  2150. <if test="aerationMode != null">
  2151. aeration_mode= #{aerationMode}
  2152. </if>
  2153. </set>
  2154. WHERE id = #{id}
  2155. </update>
  2156. <update id="updateButton" parameterType="cn.ourwill.module.house.entity.daily.DailyRecordTask">
  2157. UPDATE daily_record_task
  2158. <set>
  2159. <if test="id != null">
  2160. id= #{id} ,
  2161. </if>
  2162. <if test="type != null">
  2163. `type`= #{type} ,
  2164. </if>
  2165. <if test="subType != null">
  2166. sub_type= #{subType} ,
  2167. </if>
  2168. <if test="uuid != null">
  2169. uuid= #{uuid} ,
  2170. </if>
  2171. <if test="houseId != null">
  2172. house_id= #{houseId} ,
  2173. </if>
  2174. <if test="volume != null">
  2175. volume= #{volume} ,
  2176. </if>
  2177. <if test="windReason != null">
  2178. wind_reason= #{windReason} ,
  2179. </if>
  2180. <if test="height != null">
  2181. height= #{height} ,
  2182. </if>
  2183. <if test="taskStartTime != null">
  2184. task_start_time= #{taskStartTime} ,
  2185. </if>
  2186. <if test="taskEndTime != null">
  2187. task_end_time= #{taskEndTime} ,
  2188. </if>
  2189. <if test="keeper != null">
  2190. keeper= #{keeper} ,
  2191. </if>
  2192. <if test="windTotal != null">
  2193. wind_total= #{windTotal} ,
  2194. </if>
  2195. <if test="uniteWind != null">
  2196. unite_wind= #{uniteWind} ,
  2197. </if>
  2198. <if test="blowerModel != null">
  2199. blower_model= #{blowerModel} ,
  2200. </if>
  2201. <if test="blowerPower != null">
  2202. blower_power= #{blowerPower} ,
  2203. </if>
  2204. <if test="blowerType != null">
  2205. blower_type= #{blowerType} ,
  2206. </if>
  2207. <if test="blowerTypeUnit != null">
  2208. blower_type_unit= #{blowerTypeUnit} ,
  2209. </if>
  2210. <if test="blowerTotalForces != null">
  2211. blower_total_forces= #{blowerTotalForces} ,
  2212. </if>
  2213. <if test="windType != null">
  2214. wind_type= #{windType} ,
  2215. </if>
  2216. <if test="blowerNumber != null">
  2217. blower_number= #{blowerNumber} ,
  2218. </if>
  2219. <if test="taskTime != null">
  2220. task_time= #{taskTime} ,
  2221. </if>
  2222. <if test="tempHigh != null">
  2223. temp_high= #{tempHigh} ,
  2224. </if>
  2225. <if test="tempLow != null">
  2226. temp_low= #{tempLow} ,
  2227. </if>
  2228. <if test="tempAverage != null">
  2229. temp_average= #{tempAverage} ,
  2230. </if>
  2231. <if test="humidityHigh != null">
  2232. humidity_high= #{humidityHigh} ,
  2233. </if>
  2234. <if test="humidityLow != null">
  2235. humidity_low= #{humidityLow} ,
  2236. </if>
  2237. <if test="humidityAverage != null">
  2238. humidity_average= #{humidityAverage} ,
  2239. </if>
  2240. <if test="tempBeforeHigh != null">
  2241. temp_before_high= #{tempBeforeHigh} ,
  2242. </if>
  2243. <if test="tempAfterHigh != null">
  2244. temp_after_high= #{tempAfterHigh} ,
  2245. </if>
  2246. <if test="tempBeforeLow != null">
  2247. temp_before_low= #{tempBeforeLow} ,
  2248. </if>
  2249. <if test="tempAfterLow != null">
  2250. temp_after_low= #{tempAfterLow} ,
  2251. </if>
  2252. <if test="tempBeforeAverage != null">
  2253. temp_before_average= #{tempBeforeAverage} ,
  2254. </if>
  2255. <if test="tempEndAverage != null">
  2256. temp_end_average= #{tempEndAverage} ,
  2257. </if>
  2258. <if test="waterBeforeHigh != null">
  2259. water_before_high= #{waterBeforeHigh} ,
  2260. </if>
  2261. <if test="waterBeforeLow != null">
  2262. water_before_low= #{waterBeforeLow} ,
  2263. </if>
  2264. <if test="waterBeforeAverage != null">
  2265. water_before_average= #{waterBeforeAverage} ,
  2266. </if>
  2267. <if test="waterAfterHigh != null">
  2268. water_after_high= #{waterAfterHigh} ,
  2269. </if>
  2270. <if test="waterAfterLow != null">
  2271. water_after_low= #{waterAfterLow} ,
  2272. </if>
  2273. <if test="waterAfterAverage != null">
  2274. water_after_average= #{waterAfterAverage} ,
  2275. </if>
  2276. <if test="tempGrads != null">
  2277. temp_grads= #{tempGrads} ,
  2278. </if>
  2279. <if test="waterGrads != null">
  2280. water_grads= #{waterGrads} ,
  2281. </if>
  2282. <if test="totalPower != null">
  2283. total_power= #{totalPower} ,
  2284. </if>
  2285. <if test="weather != null">
  2286. weather= #{weather} ,
  2287. </if>
  2288. <if test="airTemp != null">
  2289. air_temp= #{airTemp} ,
  2290. </if>
  2291. <if test="drugTime != null">
  2292. drug_time= #{drugTime} ,
  2293. </if>
  2294. <if test="houseTemp != null">
  2295. house_temp= #{houseTemp} ,
  2296. </if>
  2297. <if test="averateTemp != null">
  2298. averate_temp= #{averateTemp} ,
  2299. </if>
  2300. <if test="number != null">
  2301. `number`= #{number} ,
  2302. </if>
  2303. <if test="houseFoodCapacity != null">
  2304. house_food_capacity= #{houseFoodCapacity} ,
  2305. </if>
  2306. <if test="drugPurity != null">
  2307. drug_purity= #{drugPurity} ,
  2308. </if>
  2309. <if test="houseSpaceCapacity != null">
  2310. house_space_capacity= #{houseSpaceCapacity} ,
  2311. </if>
  2312. <if test="houseSumCapacity != null">
  2313. house_sum_capacity= #{houseSumCapacity} ,
  2314. </if>
  2315. <if test="sequence != null">
  2316. sequence= #{sequence} ,
  2317. </if>
  2318. <if test="materialCapacity != null">
  2319. material_capacity= #{materialCapacity} ,
  2320. </if>
  2321. <if test="drugName != null">
  2322. drug_name= #{drugName} ,
  2323. </if>
  2324. <if test="drugWay != null">
  2325. drug_way= #{drugWay} ,
  2326. </if>
  2327. <if test="drugPeopleCount != null">
  2328. drug_people_count= #{drugPeopleCount} ,
  2329. </if>
  2330. <if test="unitePower != null">
  2331. unite_power= #{unitePower} ,
  2332. </if>
  2333. <if test="isFumigation != null">
  2334. is_fumigation= #{isFumigation} ,
  2335. </if>
  2336. <if test="closeWay != null">
  2337. close_way= #{closeWay} ,
  2338. </if>
  2339. <if test="director != null">
  2340. director= #{director} ,
  2341. </if>
  2342. <if test="drugCapacityCount != null">
  2343. drug_capacity_count= #{drugCapacityCount} ,
  2344. </if>
  2345. <if test="durgCount != null">
  2346. durg_count= #{durgCount} ,
  2347. </if>
  2348. <if test="tempBeforeFumigation != null">
  2349. temp_before_fumigation= #{tempBeforeFumigation} ,
  2350. </if>
  2351. <if test="tempAfterFumigation != null">
  2352. temp_after_fumigation= #{tempAfterFumigation} ,
  2353. </if>
  2354. <if test="pestBeforeFumigation != null">
  2355. pest_before_fumigation= #{pestBeforeFumigation} ,
  2356. </if>
  2357. <if test="pestAfterFumigation != null">
  2358. pest_after_fumigation= #{pestAfterFumigation} ,
  2359. </if>
  2360. <if test="fumigationKind != null">
  2361. fumigation_kind= #{fumigationKind} ,
  2362. </if>
  2363. <if test="water != null">
  2364. water= #{water} ,
  2365. </if>
  2366. <if test="closeTime != null">
  2367. close_time= #{closeTime} ,
  2368. </if>
  2369. <if test="killRatio != null">
  2370. kill_ratio= #{killRatio} ,
  2371. </if>
  2372. <if test="remainRatio != null">
  2373. remain_ratio= #{remainRatio} ,
  2374. </if>
  2375. <if test="isBadThings != null">
  2376. is_bad_things= #{isBadThings} ,
  2377. </if>
  2378. <if test="managerUser != null">
  2379. manager_user= #{managerUser} ,
  2380. </if>
  2381. <if test="deviceNo != null">
  2382. device_no= #{deviceNo} ,
  2383. </if>
  2384. <if test="power != null">
  2385. power= #{power} ,
  2386. </if>
  2387. <if test="loopTime != null">
  2388. loop_time= #{loopTime} ,
  2389. </if>
  2390. <if test="airConditionState != null">
  2391. air_condition_state= #{airConditionState} ,
  2392. </if>
  2393. <if test="problems != null">
  2394. problems= #{problems} ,
  2395. </if>
  2396. <if test="improvement != null">
  2397. improvement= #{improvement} ,
  2398. </if>
  2399. <if test="tempBeforeLoop != null">
  2400. temp_before_loop= #{tempBeforeLoop} ,
  2401. </if>
  2402. <if test="tempAfterLoop != null">
  2403. temp_after_loop= #{tempAfterLoop} ,
  2404. </if>
  2405. <if test="operator != null">
  2406. operator= #{operator} ,
  2407. </if>
  2408. <if test="remark != null">
  2409. remark= #{remark} ,
  2410. </if>
  2411. <if test="cId != null">
  2412. c_id= #{cId} ,
  2413. </if>
  2414. <if test="uId != null">
  2415. u_id= #{uId} ,
  2416. </if>
  2417. <if test="cTime != null">
  2418. c_time= #{cTime} ,
  2419. </if>
  2420. <if test="uTime != null">
  2421. u_time= #{uTime} ,
  2422. </if>
  2423. <if test="version != null">
  2424. version= #{version} ,
  2425. </if>
  2426. <if test="outsideTemp != null">
  2427. outside_temp= #{outsideTemp} ,
  2428. </if>
  2429. <if test="circulationPower != null">
  2430. circulation_power= #{circulationPower} ,
  2431. </if>
  2432. <if test="circulationTime != null">
  2433. circulation_time= #{circulationTime} ,
  2434. </if>
  2435. <if test="circulationNumber != null">
  2436. circulation_number= #{circulationNumber} ,
  2437. </if>
  2438. <if test="loopTimeStart != null">
  2439. loop_time_start= #{loopTimeStart} ,
  2440. </if>
  2441. <if test="loopTimeEnd != null">
  2442. loop_time_end= #{loopTimeEnd} ,
  2443. </if>
  2444. <if test="avgGrainTemp != null">
  2445. avg_grain_temp= #{avgGrainTemp} ,
  2446. </if>
  2447. <if test="grainstackAvgTemp != null">
  2448. grainstack_avg_temp= #{grainstackAvgTemp} ,
  2449. </if>
  2450. <if test="airTightness != null">
  2451. air_tightness= #{airTightness} ,
  2452. </if>
  2453. <if test="securityOfficer != null">
  2454. security_officer= #{securityOfficer} ,
  2455. </if>
  2456. <if test="closeTimeEnd != null">
  2457. close_time_end= #{closeTimeEnd} ,
  2458. </if>
  2459. <if test="aerationStartTime != null">
  2460. aeration_start_time= #{aerationStartTime} ,
  2461. </if>
  2462. <if test="aerationEndTime != null">
  2463. aeration_end_time= #{aerationEndTime} ,
  2464. </if>
  2465. <if test="aerationMode != null">
  2466. aeration_mode= #{aerationMode}
  2467. </if>
  2468. </set>
  2469. WHERE id = #{id}
  2470. </update>
  2471. <delete id="deleteById" parameterType="java.lang.Long">
  2472. DELETE FROM daily_record_task WHERE id = #{id}
  2473. </delete>
  2474. <delete id="deleteByIds" parameterType="java.util.List">
  2475. DELETE FROM daily_record_task WHERE id IN
  2476. <foreach collection="list" index="index" item="item" open="(" separator="," close=")">
  2477. #{item}
  2478. </foreach>
  2479. </delete>
  2480. <select id="findByHouseIdNoPage" resultMap="baseMap">
  2481. SELECT *
  2482. FROM daily_record_task
  2483. where house_id=#{houseId}
  2484. <choose>
  2485. <when test="type != null and cTime != null">
  2486. AND loop_time_start <![CDATA[ <= ]]> #{cTime}
  2487. </when>
  2488. <when test="type == null and cTime != null">
  2489. AND task_start_time <![CDATA[ <= ]]> #{cTime}
  2490. </when>
  2491. </choose>
  2492. </select>
  2493. <delete id="deleteTaskByHouseId">
  2494. DELETE FROM daily_record_task
  2495. WHERE house_id = #{houseId}
  2496. <choose>
  2497. <when test="type != null and cTime != null">
  2498. AND loop_time_start <![CDATA[ <= ]]> #{cTime}
  2499. </when>
  2500. <when test="type == null and cTime != null">
  2501. AND task_start_time <![CDATA[ <= ]]> #{cTime}
  2502. </when>
  2503. </choose>
  2504. </delete>
  2505. </mapper>