DailyRecordQualitycheckDao.xml 102 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894
  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.DailyRecordQualitycheckDao">
  4. <resultMap type="cn.ourwill.module.house.entity.daily.DailyRecordQualitycheck" id="baseMap">
  5. <result column="id" property="id"/>
  6. <result column="house_id" property="houseId"/>
  7. <result column="type" property="type"/>
  8. <result column="sub_type" property="subType"/>
  9. <result column="check_time" property="checkTime"/>
  10. <result column="checker" property="checker"/>
  11. <result column="quality_index" property="qualityIndex"/>
  12. <result column="bad_items" property="badItems"/>
  13. <result column="level" property="level"/>
  14. <result column="capacity" property="capacity"/>
  15. <result column="water" property="water"/>
  16. <result column="impurity" property="impurity"/>
  17. <result column="mineral" property="mineral"/>
  18. <result column="badpart" property="badpart"/>
  19. <result column="colorsmell" property="colorsmell"/>
  20. <result column="keeper_advices" property="keeperAdvices"/>
  21. <result column="keeper_advices_time" property="keeperAdvicesTime"/>
  22. <result column="keeper_advices_paint" property="keeperAdvicesPaint"/>
  23. <result column="chief_advices" property="chiefAdvices"/>
  24. <result column="chief_advices_time" property="chiefAdvicesTime"/>
  25. <result column="chiet_advices_paint" property="chietAdvicesPaint"/>
  26. <result column="vice_manager_advices" property="viceManagerAdvices"/>
  27. <result column="vice_manager_advices_time" property="viceManagerAdvicesTime"/>
  28. <result column="vice_manager_advices_paint" property="viceManagerAdvicesPaint"/>
  29. <result column="manager_advices" property="managerAdvices"/>
  30. <result column="manager_advices_time" property="managerAdvicesTime"/>
  31. <result column="manager_advices_paint" property="managerAdvicesPaint"/>
  32. <result column="improve_result" property="improveResult"/>
  33. <result column="improve_time" property="improveTime"/>
  34. <result column="improve_paint" property="improvePaint"/>
  35. <result column="is_firstchecklevel_right" property="isFirstchecklevelRight"/>
  36. <result column="accept_unite" property="acceptUnite"/>
  37. <result column="kind" property="kind"/>
  38. <result column="property" property="property"/>
  39. <result column="input_time" property="inputTime"/>
  40. <result column="number" property="number"/>
  41. <result column="location" property="location"/>
  42. <result column="keeper" property="keeper"/>
  43. <result column="harvest_time" property="harvestTime"/>
  44. <result column="goodpart" property="goodpart"/>
  45. <result column="chooser" property="chooser"/>
  46. <result column="choose_time" property="chooseTime"/>
  47. <result column="damage_ratio_sum" property="damageRatioSum"/>
  48. <result column="boldfat_index" property="boldfatIndex"/>
  49. <result column="check_type" property="checkType"/>
  50. <result column="hot_damage" property="hotDamage"/>
  51. <result column="protein_solution_ratio" property="proteinSolutionRatio"/>
  52. <result column="quality_index_result" property="qualityIndexResult"/>
  53. <result column="quality_save_result" property="qualitySaveResult"/>
  54. <result column="badpart_sum" property="badpartSum"/>
  55. <result column="badpart_mildew_count" property="badpartMildewCount"/>
  56. <result column="eat_score" property="eatScore"/>
  57. <result column="fat_index" property="fatIndex"/>
  58. <result column="husked_ration" property="huskedRation"/>
  59. <result column="full_good_ration" property="fullGoodRation"/>
  60. <result column="mix_ration" property="mixRation"/>
  61. <result column="yellow_part" property="yellowPart"/>
  62. <result column="out_husked_ration" property="outHuskedRation"/>
  63. <result column="car_sequence" property="carSequence"/>
  64. <result column="big_sample" property="bigSample"/>
  65. <result column="small_sample" property="smallSample"/>
  66. <result column="pests" property="pests"/>
  67. <result column="impurty_sum" property="impurtySum"/>
  68. <result column="big_impurity" property="bigImpurity"/>
  69. <result column="small_impurity" property="smallImpurity"/>
  70. <result column="color_ratio" property="colorRatio"/>
  71. <result column="hard_index" property="hardIndex"/>
  72. <result column="viscosity" property="viscosity"/>
  73. <result column="bechecked_unite" property="becheckedUnite"/>
  74. <result column="samle_name" property="samleName"/>
  75. <result column="sample_count" property="sampleCount"/>
  76. <result column="pack_type" property="packType"/>
  77. <result column="choose_location" property="chooseLocation"/>
  78. <result column="gluten_water_count" property="glutenWaterCount"/>
  79. <result column="remarks" property="remarks"/>
  80. <result column="writer" property="writer"/>
  81. <result column="approver" property="approver"/>
  82. <result column="check_result" property="checkResult"/>
  83. <result column="check_result_info" property="checkResultInfo"/>
  84. <result column="c_id" property="cId"/>
  85. <result column="u_id" property="uId"/>
  86. <result column="c_time" property="cTime"/>
  87. <result column="u_time" property="uTime"/>
  88. <result column="version" property="version"/>
  89. <result column="uuid" property="uuid"/>
  90. <result column="impurity_mineral" property="impurityMineral"/>
  91. <result column="mildew_count" property="mildewCount"/>
  92. <result column="ab_color_ratio" property="abColorRatio"/>
  93. <result column="damage_ratio" property="damageRatio"/>
  94. <result column="hot_damage_ratio" property="hotDamageRatio"/>
  95. <result column="clean_rice" property="cleanRice"/>
  96. <result column="husked_rice_weight" property="huskedRiceWeight"/>
  97. <result column="ab_type_rice" property="abTypeRice"/>
  98. <result column="bud_shell_rice" property="budShellRice"/>
  99. <result column="husked_badpart_weight" property="huskedBadpartWeight"/>
  100. <result column="capacity_result" property="capacityResult"/>
  101. <result column="badpart_mildew_count_result" property="badpartMildewCountResult"/>
  102. <result column="impurity_result" property="impurityResult"/>
  103. <result column="fat_index_result" property="fatIndexResult"/>
  104. <result column="water_result" property="waterResult"/>
  105. <result column="eat_score_result" property="eatScoreResult"/>
  106. <result column="aflatoxin_b" property="aflatoxinB"/>
  107. <result column="aflatoxin_b_result" property="aflatoxinBResult"/>
  108. <result column="phosphide" property="phosphide"/>
  109. <result column="phosphide_result" property="phosphideResult"/>
  110. <result column="checktype_result" property="checktypeResult"/>
  111. <result column="colorsmell_result" property="colorsmellResult"/>
  112. <result column="badpart_result" property="badpartResult"/>
  113. <result column="impurty_sum_result" property="impurtySumResult"/>
  114. <result column="mineral_result" property="mineralResult"/>
  115. <result column="gluten_water_count_result" property="glutenWaterCountResult"/>
  116. <result column="viscosity_result" property="viscosityResult"/>
  117. <result column="husked_ration_result" property="huskedRationResult"/>
  118. <result column="full_good_ration_result" property="fullGoodRationResult"/>
  119. <result column="out_husked_ration_result" property="outHuskedRationResult"/>
  120. <result column="yellow_part_result" property="yellowPartResult"/>
  121. <result column="goodpart_result" property="goodpartResult"/>
  122. <result column="hot_damage_result" property="hotDamageResult"/>
  123. <result column="boldfat_index_result" property="boldfatIndexResult"/>
  124. <result column="protein_solution_ratio_result" property="proteinSolutionRatioResult"/>
  125. <result column="reviewer" property="reviewer"/>
  126. <result column="apply_check_time" property="applyCheckTime"/>
  127. <result column="check_time_type" property="checkTimeType"/>
  128. <result column="check_result_time" property="checkResultTime"/>
  129. <result column="store_quality" property="storeQuality"/>
  130. <result column="is_pest" property="isPest"/>
  131. <result column="deducted_conditions" property="deductedConditions"/>
  132. <result column="input_deducted_info" property="inputDeductedInfo"/>
  133. <result column="water_deducted_info" property="waterDeductedInfo"/>
  134. <result column="impurity_deducted_info" property="impurityDeductedInfo"/>
  135. <result column="other_deducted_info" property="otherDeductedInfo"/>
  136. <result column="deducted_pic" property="deductedPic"/>
  137. <result column="water_tips_flag" property="waterTipsFlag"/>
  138. </resultMap>
  139. <sql id="columns">
  140. id ,
  141. house_id ,
  142. `type` ,
  143. sub_type ,
  144. check_time ,
  145. checker ,
  146. quality_index ,
  147. bad_items ,
  148. `level` ,
  149. capacity ,
  150. water ,
  151. impurity ,
  152. mineral ,
  153. badpart ,
  154. colorsmell ,
  155. keeper_advices ,
  156. keeper_advices_time ,
  157. keeper_advices_paint,
  158. chief_advices ,
  159. chief_advices_time ,
  160. chiet_advices_paint,
  161. vice_manager_advices ,
  162. vice_manager_advices_time ,
  163. vice_manager_advices_paint,
  164. manager_advices ,
  165. manager_advices_time ,
  166. manager_advices_paint,
  167. improve_result ,
  168. improve_time ,
  169. improve_paint,
  170. is_firstchecklevel_right ,
  171. accept_unite ,
  172. kind ,
  173. property ,
  174. input_time ,
  175. `number` ,
  176. location ,
  177. keeper ,
  178. harvest_time ,
  179. goodpart ,
  180. chooser ,
  181. choose_time ,
  182. damage_ratio_sum ,
  183. boldfat_index ,
  184. check_type ,
  185. hot_damage ,
  186. protein_solution_ratio ,
  187. quality_index_result ,
  188. quality_save_result ,
  189. badpart_sum ,
  190. badpart_mildew_count ,
  191. eat_score ,
  192. fat_index ,
  193. husked_ration ,
  194. full_good_ration ,
  195. mix_ration ,
  196. yellow_part ,
  197. out_husked_ration ,
  198. car_sequence ,
  199. big_sample ,
  200. small_sample ,
  201. pests ,
  202. impurty_sum ,
  203. big_impurity ,
  204. small_impurity ,
  205. color_ratio ,
  206. hard_index ,
  207. viscosity ,
  208. bechecked_unite ,
  209. samle_name ,
  210. sample_count ,
  211. pack_type ,
  212. choose_location ,
  213. gluten_water_count ,
  214. remarks ,
  215. writer ,
  216. approver ,
  217. check_result ,
  218. check_result_info ,
  219. c_id ,
  220. u_id ,
  221. c_time ,
  222. u_time ,
  223. version ,
  224. uuid ,
  225. impurity_mineral ,
  226. mildew_count ,
  227. ab_color_ratio ,
  228. damage_ratio ,
  229. hot_damage_ratio ,
  230. clean_rice ,
  231. husked_rice_weight ,
  232. ab_type_rice ,
  233. bud_shell_rice ,
  234. husked_badpart_weight ,
  235. capacity_result ,
  236. badpart_mildew_count_result ,
  237. impurity_result ,
  238. fat_index_result ,
  239. water_result ,
  240. eat_score_result ,
  241. aflatoxin_b ,
  242. aflatoxin_b_result ,
  243. phosphide ,
  244. phosphide_result ,
  245. checktype_result ,
  246. colorsmell_result ,
  247. badpart_result ,
  248. impurty_sum_result ,
  249. mineral_result ,
  250. gluten_water_count_result ,
  251. viscosity_result ,
  252. husked_ration_result ,
  253. full_good_ration_result ,
  254. out_husked_ration_result ,
  255. yellow_part_result ,
  256. goodpart_result ,
  257. hot_damage_result ,
  258. boldfat_index_result ,
  259. protein_solution_ratio_result ,
  260. reviewer,
  261. apply_check_time,
  262. check_time_type,
  263. check_result_time,
  264. store_quality,
  265. is_pest,
  266. deducted_conditions,
  267. input_deducted_info,
  268. water_deducted_info,
  269. impurity_deducted_info,
  270. other_deducted_info,
  271. deducted_pic,
  272. water_tips_flag
  273. </sql>
  274. <sql id="staticColumns">
  275. a.id ,
  276. a.house_id ,
  277. a.`type` ,
  278. a.sub_type ,
  279. a.check_time ,
  280. a.checker ,
  281. a.quality_index ,
  282. a.bad_items ,
  283. a.`level` ,
  284. a.capacity ,
  285. a.water ,
  286. a.impurity ,
  287. a.mineral ,
  288. a.badpart ,
  289. a.colorsmell ,
  290. a.keeper_advices ,
  291. a.keeper_advices_time ,
  292. a.keeper_advices_paint,
  293. a.chief_advices ,
  294. a.chief_advices_time ,
  295. a.chiet_advices_paint,
  296. a.vice_manager_advices ,
  297. a.vice_manager_advices_time ,
  298. a.vice_manager_advices_paint,
  299. a.manager_advices ,
  300. a.manager_advices_time ,
  301. a.manager_advices_paint,
  302. a.improve_result ,
  303. a.improve_time ,
  304. a.improve_paint,
  305. a.is_firstchecklevel_right ,
  306. a.accept_unite ,
  307. a.kind ,
  308. a.property ,
  309. a.input_time ,
  310. a.`number` ,
  311. a.location ,
  312. a.keeper ,
  313. a.harvest_time ,
  314. a.goodpart ,
  315. a.chooser ,
  316. a.choose_time ,
  317. a.damage_ratio_sum ,
  318. a.boldfat_index ,
  319. a.check_type ,
  320. a.hot_damage ,
  321. a.protein_solution_ratio ,
  322. a.quality_index_result ,
  323. a.quality_save_result ,
  324. a.badpart_sum ,
  325. a.badpart_mildew_count ,
  326. a.eat_score ,
  327. a.fat_index ,
  328. a.husked_ration ,
  329. a.full_good_ration ,
  330. a.mix_ration ,
  331. a.yellow_part ,
  332. a.out_husked_ration ,
  333. a.car_sequence ,
  334. a.big_sample ,
  335. a.small_sample ,
  336. a.pests ,
  337. a.impurty_sum ,
  338. a.big_impurity ,
  339. a.small_impurity ,
  340. a.color_ratio ,
  341. a.hard_index ,
  342. a.viscosity ,
  343. a.bechecked_unite ,
  344. a.samle_name ,
  345. a.sample_count ,
  346. a.pack_type ,
  347. a.choose_location ,
  348. a.gluten_water_count ,
  349. a.remarks ,
  350. a.writer ,
  351. a.approver ,
  352. a.check_result ,
  353. a.check_result_info ,
  354. a.c_id ,
  355. a.u_id ,
  356. a.c_time ,
  357. a.u_time ,
  358. a.version ,
  359. a.uuid ,
  360. a.impurity_mineral ,
  361. a.mildew_count ,
  362. a.ab_color_ratio ,
  363. a.damage_ratio ,
  364. a.hot_damage_ratio ,
  365. a.clean_rice ,
  366. a.husked_rice_weight ,
  367. a.ab_type_rice ,
  368. a.bud_shell_rice ,
  369. a.husked_badpart_weight ,
  370. a.capacity_result ,
  371. a.badpart_mildew_count_result ,
  372. a.impurity_result ,
  373. a.fat_index_result ,
  374. a.water_result ,
  375. a.eat_score_result ,
  376. a.aflatoxin_b ,
  377. a.aflatoxin_b_result ,
  378. a.phosphide ,
  379. a.phosphide_result ,
  380. a.checktype_result ,
  381. a.colorsmell_result ,
  382. a.badpart_result ,
  383. a.impurty_sum_result ,
  384. a.mineral_result ,
  385. a.gluten_water_count_result ,
  386. a.viscosity_result ,
  387. a.husked_ration_result ,
  388. a.full_good_ration_result ,
  389. a.out_husked_ration_result ,
  390. a.yellow_part_result ,
  391. a.goodpart_result ,
  392. a.hot_damage_result ,
  393. a.boldfat_index_result ,
  394. a.protein_solution_ratio_result ,
  395. a.reviewer,
  396. a.apply_check_time,
  397. a.check_time_type,
  398. a.check_result_time,
  399. a.store_quality,
  400. a.is_pest,
  401. a.deducted_conditions,
  402. a.input_deducted_info,
  403. a.water_deducted_info,
  404. a.impurity_deducted_info,
  405. a.other_deducted_info,
  406. a.deducted_pic,
  407. a.water_tips_flag
  408. </sql>
  409. <sql id="joinCols">
  410. </sql>
  411. <select id="get" resultMap="baseMap">
  412. SELECT
  413. <include refid="columns"/>
  414. FROM daily_record_qualitycheck a
  415. <include refid="joinCols"/>
  416. WHERE a.id = #{id}
  417. </select>
  418. <select id="getByUuid" resultMap="baseMap">
  419. SELECT
  420. <include refid="columns"/>
  421. FROM daily_record_qualitycheck a
  422. <include refid="joinCols"/>
  423. WHERE a.uuid = #{uuid}
  424. </select>
  425. <select id="findList" resultMap="baseMap">
  426. SELECT
  427. <include refid="columns"/>
  428. FROM daily_record_qualitycheck a
  429. <include refid="joinCols"/>
  430. <where>
  431. <if test="id !=null">
  432. and id = #{id}
  433. </if>
  434. <if test="searchStartDate !=null">
  435. and a.check_time <![CDATA[ >= ]]> #{searchStartDate}
  436. </if>
  437. <if test="searchEndDate !=null">
  438. and a.check_time &lt;= #{searchEndDate}
  439. </if>
  440. <if test="houseId !=null">
  441. and house_id = #{houseId}
  442. </if>
  443. <choose>
  444. <when test="type !=null">
  445. and `type` = #{type}
  446. </when>
  447. <otherwise>
  448. and `type` in (0,1,2,4)
  449. </otherwise>
  450. </choose>
  451. <if test="type == null">
  452. and `type` in (0,1,2,4)
  453. </if>
  454. <if test="subType !=null">
  455. and sub_type = #{subType}
  456. </if>
  457. <if test="checkTime !=null">
  458. and check_time = #{checkTime}
  459. </if>
  460. <if test="checker !=null">
  461. and checker = #{checker}
  462. </if>
  463. <if test="qualityIndex !=null">
  464. and quality_index = #{qualityIndex}
  465. </if>
  466. <if test="badItems !=null">
  467. and bad_items = #{badItems}
  468. </if>
  469. <if test="level !=null">
  470. and `level` = #{level}
  471. </if>
  472. <if test="capacity !=null">
  473. and capacity = #{capacity}
  474. </if>
  475. <if test="water !=null">
  476. and water = #{water}
  477. </if>
  478. <if test="impurity !=null">
  479. and impurity = #{impurity}
  480. </if>
  481. <if test="mineral !=null">
  482. and mineral = #{mineral}
  483. </if>
  484. <if test="badpart !=null">
  485. and badpart = #{badpart}
  486. </if>
  487. <if test="colorsmell !=null">
  488. and colorsmell = #{colorsmell}
  489. </if>
  490. <if test="keeperAdvices !=null">
  491. and keeper_advices = #{keeperAdvices}
  492. </if>
  493. <if test="keeperAdvicesTime !=null">
  494. and keeper_advices_time = #{keeperAdvicesTime}
  495. </if>
  496. <if test="keeperAdvicesPaint !=null">
  497. and keeper_advices_paint = #{keeperAdvicesPaint}
  498. </if>
  499. <if test="chiefAdvices !=null">
  500. and chief_advices = #{chiefAdvices}
  501. </if>
  502. <if test="chiefAdvicesTime !=null">
  503. and chief_advices_time = #{chiefAdvicesTime}
  504. </if>
  505. <if test="chietAdvicesPaint !=null">
  506. and chiet_advices_paint = #{chietAdvicesPaint}
  507. </if>
  508. <if test="viceManagerAdvices !=null">
  509. and vice_manager_advices = #{viceManagerAdvices}
  510. </if>
  511. <if test="viceManagerAdvicesTime !=null">
  512. and vice_manager_advices_time = #{viceManagerAdvicesTime}
  513. </if>
  514. <if test="viceManagerAdvicesPaint !=null">
  515. and vice_manager_advices_paint = #{viceManagerAdvicesPaint}
  516. </if>
  517. <if test="managerAdvices !=null">
  518. and manager_advices = #{managerAdvices}
  519. </if>
  520. <if test="managerAdvicesTime !=null">
  521. and manager_advices_time = #{managerAdvicesTime}
  522. </if>
  523. <if test="managerAdvicesPaint !=null">
  524. and manager_advices_paint = #{managerAdvicesPaint}
  525. </if>
  526. <if test="improveResult !=null">
  527. and improve_result = #{improveResult}
  528. </if>
  529. <if test="improveTime !=null">
  530. and improve_time = #{improveTime}
  531. </if>
  532. <if test="improvePaint !=null">
  533. and improve_paint = #{improvePaint}
  534. </if>
  535. <if test="isFirstchecklevelRight !=null">
  536. and is_firstchecklevel_right = #{isFirstchecklevelRight}
  537. </if>
  538. <if test="acceptUnite !=null">
  539. and accept_unite = #{acceptUnite}
  540. </if>
  541. <if test="kind !=null">
  542. and kind = #{kind}
  543. </if>
  544. <if test="property !=null">
  545. and property = #{property}
  546. </if>
  547. <if test="inputTime !=null">
  548. and input_time = #{inputTime}
  549. </if>
  550. <if test="number !=null">
  551. and `number` = #{number}
  552. </if>
  553. <if test="location !=null">
  554. and location = #{location}
  555. </if>
  556. <if test="keeper !=null">
  557. and keeper = #{keeper}
  558. </if>
  559. <if test="harvestTime !=null">
  560. and harvest_time = #{harvestTime}
  561. </if>
  562. <if test="goodpart !=null">
  563. and goodpart = #{goodpart}
  564. </if>
  565. <if test="chooser !=null">
  566. and chooser = #{chooser}
  567. </if>
  568. <if test="chooseTime !=null">
  569. and choose_time = #{chooseTime}
  570. </if>
  571. <if test="damageRatioSum !=null">
  572. and damage_ratio_sum = #{damageRatioSum}
  573. </if>
  574. <if test="boldfatIndex !=null">
  575. and boldfat_index = #{boldfatIndex}
  576. </if>
  577. <if test="checkType !=null">
  578. and check_type = #{checkType}
  579. </if>
  580. <if test="hotDamage !=null">
  581. and hot_damage = #{hotDamage}
  582. </if>
  583. <if test="proteinSolutionRatio !=null">
  584. and protein_solution_ratio = #{proteinSolutionRatio}
  585. </if>
  586. <if test="qualityIndexResult !=null">
  587. and quality_index_result = #{qualityIndexResult}
  588. </if>
  589. <if test="qualitySaveResult !=null">
  590. and quality_save_result = #{qualitySaveResult}
  591. </if>
  592. <if test="badpartSum !=null">
  593. and badpart_sum = #{badpartSum}
  594. </if>
  595. <if test="badpartMildewCount !=null">
  596. and badpart_mildew_count = #{badpartMildewCount}
  597. </if>
  598. <if test="eatScore !=null">
  599. and eat_score = #{eatScore}
  600. </if>
  601. <if test="fatIndex !=null">
  602. and fat_index = #{fatIndex}
  603. </if>
  604. <if test="huskedRation !=null">
  605. and husked_ration = #{huskedRation}
  606. </if>
  607. <if test="fullGoodRation !=null">
  608. and full_good_ration = #{fullGoodRation}
  609. </if>
  610. <if test="mixRation !=null">
  611. and mix_ration = #{mixRation}
  612. </if>
  613. <if test="yellowPart !=null">
  614. and yellow_part = #{yellowPart}
  615. </if>
  616. <if test="outHuskedRation !=null">
  617. and out_husked_ration = #{outHuskedRation}
  618. </if>
  619. <if test="carSequence !=null">
  620. and car_sequence = #{carSequence}
  621. </if>
  622. <if test="bigSample !=null">
  623. and big_sample = #{bigSample}
  624. </if>
  625. <if test="smallSample !=null">
  626. and small_sample = #{smallSample}
  627. </if>
  628. <if test="pests !=null">
  629. and pests = #{pests}
  630. </if>
  631. <if test="impurtySum !=null">
  632. and impurty_sum = #{impurtySum}
  633. </if>
  634. <if test="bigImpurity !=null">
  635. and big_impurity = #{bigImpurity}
  636. </if>
  637. <if test="smallImpurity !=null">
  638. and small_impurity = #{smallImpurity}
  639. </if>
  640. <if test="colorRatio !=null">
  641. and color_ratio = #{colorRatio}
  642. </if>
  643. <if test="hardIndex !=null">
  644. and hard_index = #{hardIndex}
  645. </if>
  646. <if test="viscosity !=null">
  647. and viscosity = #{viscosity}
  648. </if>
  649. <if test="becheckedUnite !=null">
  650. and bechecked_unite = #{becheckedUnite}
  651. </if>
  652. <if test="samleName !=null">
  653. and samle_name = #{samleName}
  654. </if>
  655. <if test="sampleCount !=null">
  656. and sample_count = #{sampleCount}
  657. </if>
  658. <if test="packType !=null">
  659. and pack_type = #{packType}
  660. </if>
  661. <if test="chooseLocation !=null">
  662. and choose_location = #{chooseLocation}
  663. </if>
  664. <if test="glutenWaterCount !=null">
  665. and gluten_water_count = #{glutenWaterCount}
  666. </if>
  667. <if test="remarks !=null">
  668. and remarks = #{remarks}
  669. </if>
  670. <if test="writer !=null">
  671. and writer = #{writer}
  672. </if>
  673. <if test="approver !=null">
  674. and approver = #{approver}
  675. </if>
  676. <if test="checkResult !=null">
  677. and check_result = #{checkResult}
  678. </if>
  679. <if test="checkResultInfo !=null">
  680. and check_result_info = #{checkResultInfo}
  681. </if>
  682. <if test="cId !=null">
  683. and c_id = #{cId}
  684. </if>
  685. <if test="uId !=null">
  686. and u_id = #{uId}
  687. </if>
  688. <if test="cTime !=null">
  689. and c_time = #{cTime}
  690. </if>
  691. <if test="uTime !=null">
  692. and u_time = #{uTime}
  693. </if>
  694. <if test="version !=null">
  695. and version = #{version}
  696. </if>
  697. <if test="uuid !=null">
  698. and uuid = #{uuid}
  699. </if>
  700. <if test="impurityMineral !=null">
  701. and impurity_mineral = #{impurityMineral}
  702. </if>
  703. <if test="mildewCount !=null">
  704. and mildew_count = #{mildewCount}
  705. </if>
  706. <if test="abColorRatio !=null">
  707. and ab_color_ratio = #{abColorRatio}
  708. </if>
  709. <if test="damageRatio !=null">
  710. and damage_ratio = #{damageRatio}
  711. </if>
  712. <if test="hotDamageRatio !=null">
  713. and hot_damage_ratio = #{hotDamageRatio}
  714. </if>
  715. <if test="cleanRice !=null">
  716. and clean_rice = #{cleanRice}
  717. </if>
  718. <if test="huskedRiceWeight !=null">
  719. and husked_rice_weight = #{huskedRiceWeight}
  720. </if>
  721. <if test="abTypeRice !=null">
  722. and ab_type_rice = #{abTypeRice}
  723. </if>
  724. <if test="budShellRice !=null">
  725. and bud_shell_rice = #{budShellRice}
  726. </if>
  727. <if test="huskedBadpartWeight !=null">
  728. and husked_badpart_weight = #{huskedBadpartWeight}
  729. </if>
  730. <if test="capacityResult !=null">
  731. and capacity_result = #{capacityResult}
  732. </if>
  733. <if test="badpartMildewCountResult !=null">
  734. and badpart_mildew_count_result = #{badpartMildewCountResult}
  735. </if>
  736. <if test="impurityResult !=null">
  737. and impurity_result = #{impurityResult}
  738. </if>
  739. <if test="fatIndexResult !=null">
  740. and fat_index_result = #{fatIndexResult}
  741. </if>
  742. <if test="waterResult !=null">
  743. and water_result = #{waterResult}
  744. </if>
  745. <if test="eatScoreResult !=null">
  746. and eat_score_result = #{eatScoreResult}
  747. </if>
  748. <if test="aflatoxinB !=null">
  749. and aflatoxin_b = #{aflatoxinB}
  750. </if>
  751. <if test="aflatoxinBResult !=null">
  752. and aflatoxin_b_result = #{aflatoxinBResult}
  753. </if>
  754. <if test="phosphide !=null">
  755. and phosphide = #{phosphide}
  756. </if>
  757. <if test="phosphideResult !=null">
  758. and phosphide_result = #{phosphideResult}
  759. </if>
  760. <if test="checktypeResult !=null">
  761. and checktype_result = #{checktypeResult}
  762. </if>
  763. <if test="colorsmellResult !=null">
  764. and colorsmell_result = #{colorsmellResult}
  765. </if>
  766. <if test="badpartResult !=null">
  767. and badpart_result = #{badpartResult}
  768. </if>
  769. <if test="impurtySumResult !=null">
  770. and impurty_sum_result = #{impurtySumResult}
  771. </if>
  772. <if test="mineralResult !=null">
  773. and mineral_result = #{mineralResult}
  774. </if>
  775. <if test="glutenWaterCountResult !=null">
  776. and gluten_water_count_result = #{glutenWaterCountResult}
  777. </if>
  778. <if test="viscosityResult !=null">
  779. and viscosity_result = #{viscosityResult}
  780. </if>
  781. <if test="huskedRationResult !=null">
  782. and husked_ration_result = #{huskedRationResult}
  783. </if>
  784. <if test="fullGoodRationResult !=null">
  785. and full_good_ration_result = #{fullGoodRationResult}
  786. </if>
  787. <if test="outHuskedRationResult !=null">
  788. and out_husked_ration_result = #{outHuskedRationResult}
  789. </if>
  790. <if test="yellowPartResult !=null">
  791. and yellow_part_result = #{yellowPartResult}
  792. </if>
  793. <if test="goodpartResult !=null">
  794. and goodpart_result = #{goodpartResult}
  795. </if>
  796. <if test="hotDamageResult !=null">
  797. and hot_damage_result = #{hotDamageResult}
  798. </if>
  799. <if test="boldfatIndexResult !=null">
  800. and boldfat_index_result = #{boldfatIndexResult}
  801. </if>
  802. <if test="proteinSolutionRatioResult !=null">
  803. and protein_solution_ratio_result = #{proteinSolutionRatioResult}
  804. </if>
  805. <if test="reviewer !=null">
  806. and reviewer = #{reviewer}
  807. </if>
  808. <if test="storeQuality !=null">
  809. and store_quality = #{storeQuality}
  810. </if>
  811. <if test="isPest !=null">
  812. and is_pest = #{isPest}
  813. </if>
  814. <if test="deductedConditions !=null">
  815. and deducted_conditions = #{deductedConditions}
  816. </if>
  817. <if test="inputDeductedInfo !=null">
  818. and input_deducted_info = #{inputDeductedInfo}
  819. </if>
  820. <if test="waterDeductedInfo !=null">
  821. and water_deducted_info = #{waterDeductedInfo}
  822. </if>
  823. <if test="impurityDeductedInfo !=null">
  824. and impurity_deducted_info = #{impurityDeductedInfo}
  825. </if>
  826. <if test="otherDeductedInfo !=null">
  827. and other_deducted_info = #{otherDeductedInfo}
  828. </if>
  829. <if test="deductedPic !=null">
  830. and deducted_pic = #{deductedPic}
  831. </if>
  832. <if test="waterTipsFlag !=null">
  833. and water_tips_flag = #{waterTipsFlag}
  834. </if>
  835. </where>
  836. <choose>
  837. <when test="page !=null and page.orderBy != null and page.orderBy != ''">
  838. ORDER BY ${page.orderBy}
  839. </when>
  840. <otherwise>
  841. </otherwise>
  842. </choose>
  843. </select>
  844. <select id="findAllList" resultMap="baseMap">
  845. SELECT
  846. <include refid="columns"/>
  847. FROM daily_record_qualitycheck a
  848. <include refid="joinCols"/>
  849. <where>
  850. <if test="id !=null">
  851. and id = #{id}
  852. </if>
  853. <if test="searchStartDate !=null">
  854. and sol.check_time <![CDATA[ >= ]]> #{searchStartDate}
  855. </if>
  856. <if test="searchEndDate !=null">
  857. and sol.check_time &lt;= #{searchEndDate}
  858. </if>
  859. <if test="houseId !=null">
  860. and house_id = #{houseId}
  861. </if>
  862. <choose>
  863. <when test="type !=null">
  864. and `type` = #{type}
  865. </when>
  866. <otherwise>
  867. and `type` in (0,1,2,4)
  868. </otherwise>
  869. </choose>
  870. <if test="subType !=null">
  871. and sub_type = #{subType}
  872. </if>
  873. <if test="checkTime !=null">
  874. and check_time = #{checkTime}
  875. </if>
  876. <if test="checker !=null">
  877. and checker = #{checker}
  878. </if>
  879. <if test="qualityIndex !=null">
  880. and quality_index = #{qualityIndex}
  881. </if>
  882. <if test="badItems !=null">
  883. and bad_items = #{badItems}
  884. </if>
  885. <if test="level !=null">
  886. and `level` = #{level}
  887. </if>
  888. <if test="capacity !=null">
  889. and capacity = #{capacity}
  890. </if>
  891. <if test="water !=null">
  892. and water = #{water}
  893. </if>
  894. <if test="impurity !=null">
  895. and impurity = #{impurity}
  896. </if>
  897. <if test="mineral !=null">
  898. and mineral = #{mineral}
  899. </if>
  900. <if test="badpart !=null">
  901. and badpart = #{badpart}
  902. </if>
  903. <if test="colorsmell !=null">
  904. and colorsmell = #{colorsmell}
  905. </if>
  906. <if test="keeperAdvices !=null">
  907. and keeper_advices = #{keeperAdvices}
  908. </if>
  909. <if test="keeperAdvicesTime !=null">
  910. and keeper_advices_time = #{keeperAdvicesTime}
  911. </if>
  912. <if test="keeperAdvicesPaint !=null">
  913. and keeper_advices_paint = #{keeperAdvicesPaint}
  914. </if>
  915. <if test="chiefAdvices !=null">
  916. and chief_advices = #{chiefAdvices}
  917. </if>
  918. <if test="chiefAdvicesTime !=null">
  919. and chief_advices_time = #{chiefAdvicesTime}
  920. </if>
  921. <if test="chietAdvicesPaint !=null">
  922. and chiet_advices_paint = #{chietAdvicesPaint}
  923. </if>
  924. <if test="viceManagerAdvices !=null">
  925. and vice_manager_advices = #{viceManagerAdvices}
  926. </if>
  927. <if test="viceManagerAdvicesTime !=null">
  928. and vice_manager_advices_time = #{viceManagerAdvicesTime}
  929. </if>
  930. <if test="viceManagerAdvicesPaint !=null">
  931. and vice_manager_advices_paint = #{viceManagerAdvicesPaint}
  932. </if>
  933. <if test="managerAdvices !=null">
  934. and manager_advices = #{managerAdvices}
  935. </if>
  936. <if test="managerAdvicesTime !=null">
  937. and manager_advices_time = #{managerAdvicesTime}
  938. </if>
  939. <if test="managerAdvicesPaint !=null">
  940. and manager_advices_paint = #{managerAdvicesPaint}
  941. </if>
  942. <if test="improveResult !=null">
  943. and improve_result = #{improveResult}
  944. </if>
  945. <if test="improveTime !=null">
  946. and improve_time = #{improveTime}
  947. </if>
  948. <if test="improvePaint !=null">
  949. and improve_paint = #{improvePaint}
  950. </if>
  951. <if test="isFirstchecklevelRight !=null">
  952. and is_firstchecklevel_right = #{isFirstchecklevelRight}
  953. </if>
  954. <if test="acceptUnite !=null">
  955. and accept_unite = #{acceptUnite}
  956. </if>
  957. <if test="kind !=null">
  958. and kind = #{kind}
  959. </if>
  960. <if test="property !=null">
  961. and property = #{property}
  962. </if>
  963. <if test="inputTime !=null">
  964. and input_time = #{inputTime}
  965. </if>
  966. <if test="number !=null">
  967. and `number` = #{number}
  968. </if>
  969. <if test="location !=null">
  970. and location = #{location}
  971. </if>
  972. <if test="keeper !=null">
  973. and keeper = #{keeper}
  974. </if>
  975. <if test="harvestTime !=null">
  976. and harvest_time = #{harvestTime}
  977. </if>
  978. <if test="goodpart !=null">
  979. and goodpart = #{goodpart}
  980. </if>
  981. <if test="chooser !=null">
  982. and chooser = #{chooser}
  983. </if>
  984. <if test="chooseTime !=null">
  985. and choose_time = #{chooseTime}
  986. </if>
  987. <if test="damageRatioSum !=null">
  988. and damage_ratio_sum = #{damageRatioSum}
  989. </if>
  990. <if test="boldfatIndex !=null">
  991. and boldfat_index = #{boldfatIndex}
  992. </if>
  993. <if test="checkType !=null">
  994. and check_type = #{checkType}
  995. </if>
  996. <if test="hotDamage !=null">
  997. and hot_damage = #{hotDamage}
  998. </if>
  999. <if test="proteinSolutionRatio !=null">
  1000. and protein_solution_ratio = #{proteinSolutionRatio}
  1001. </if>
  1002. <if test="qualityIndexResult !=null">
  1003. and quality_index_result = #{qualityIndexResult}
  1004. </if>
  1005. <if test="qualitySaveResult !=null">
  1006. and quality_save_result = #{qualitySaveResult}
  1007. </if>
  1008. <if test="badpartSum !=null">
  1009. and badpart_sum = #{badpartSum}
  1010. </if>
  1011. <if test="badpartMildewCount !=null">
  1012. and badpart_mildew_count = #{badpartMildewCount}
  1013. </if>
  1014. <if test="eatScore !=null">
  1015. and eat_score = #{eatScore}
  1016. </if>
  1017. <if test="fatIndex !=null">
  1018. and fat_index = #{fatIndex}
  1019. </if>
  1020. <if test="huskedRation !=null">
  1021. and husked_ration = #{huskedRation}
  1022. </if>
  1023. <if test="fullGoodRation !=null">
  1024. and full_good_ration = #{fullGoodRation}
  1025. </if>
  1026. <if test="mixRation !=null">
  1027. and mix_ration = #{mixRation}
  1028. </if>
  1029. <if test="yellowPart !=null">
  1030. and yellow_part = #{yellowPart}
  1031. </if>
  1032. <if test="outHuskedRation !=null">
  1033. and out_husked_ration = #{outHuskedRation}
  1034. </if>
  1035. <if test="carSequence !=null">
  1036. and car_sequence = #{carSequence}
  1037. </if>
  1038. <if test="bigSample !=null">
  1039. and big_sample = #{bigSample}
  1040. </if>
  1041. <if test="smallSample !=null">
  1042. and small_sample = #{smallSample}
  1043. </if>
  1044. <if test="pests !=null">
  1045. and pests = #{pests}
  1046. </if>
  1047. <if test="impurtySum !=null">
  1048. and impurty_sum = #{impurtySum}
  1049. </if>
  1050. <if test="bigImpurity !=null">
  1051. and big_impurity = #{bigImpurity}
  1052. </if>
  1053. <if test="smallImpurity !=null">
  1054. and small_impurity = #{smallImpurity}
  1055. </if>
  1056. <if test="colorRatio !=null">
  1057. and color_ratio = #{colorRatio}
  1058. </if>
  1059. <if test="hardIndex !=null">
  1060. and hard_index = #{hardIndex}
  1061. </if>
  1062. <if test="viscosity !=null">
  1063. and viscosity = #{viscosity}
  1064. </if>
  1065. <if test="becheckedUnite !=null">
  1066. and bechecked_unite = #{becheckedUnite}
  1067. </if>
  1068. <if test="samleName !=null">
  1069. and samle_name = #{samleName}
  1070. </if>
  1071. <if test="sampleCount !=null">
  1072. and sample_count = #{sampleCount}
  1073. </if>
  1074. <if test="packType !=null">
  1075. and pack_type = #{packType}
  1076. </if>
  1077. <if test="chooseLocation !=null">
  1078. and choose_location = #{chooseLocation}
  1079. </if>
  1080. <if test="glutenWaterCount !=null">
  1081. and gluten_water_count = #{glutenWaterCount}
  1082. </if>
  1083. <if test="remarks !=null">
  1084. and remarks = #{remarks}
  1085. </if>
  1086. <if test="writer !=null">
  1087. and writer = #{writer}
  1088. </if>
  1089. <if test="approver !=null">
  1090. and approver = #{approver}
  1091. </if>
  1092. <if test="checkResult !=null">
  1093. and check_result = #{checkResult}
  1094. </if>
  1095. <if test="checkResultInfo !=null">
  1096. and check_result_info = #{checkResultInfo}
  1097. </if>
  1098. <if test="cId !=null">
  1099. and c_id = #{cId}
  1100. </if>
  1101. <if test="uId !=null">
  1102. and u_id = #{uId}
  1103. </if>
  1104. <if test="cTime !=null">
  1105. and c_time = #{cTime}
  1106. </if>
  1107. <if test="uTime !=null">
  1108. and u_time = #{uTime}
  1109. </if>
  1110. <if test="version !=null">
  1111. and version = #{version}
  1112. </if>
  1113. <if test="uuid !=null">
  1114. and uuid = #{uuid}
  1115. </if>
  1116. <if test="impurityMineral !=null">
  1117. and impurity_mineral = #{impurityMineral}
  1118. </if>
  1119. <if test="mildewCount !=null">
  1120. and mildew_count = #{mildewCount}
  1121. </if>
  1122. <if test="abColorRatio !=null">
  1123. and ab_color_ratio = #{abColorRatio}
  1124. </if>
  1125. <if test="damageRatio !=null">
  1126. and damage_ratio = #{damageRatio}
  1127. </if>
  1128. <if test="hotDamageRatio !=null">
  1129. and hot_damage_ratio = #{hotDamageRatio}
  1130. </if>
  1131. <if test="cleanRice !=null">
  1132. and clean_rice = #{cleanRice}
  1133. </if>
  1134. <if test="huskedRiceWeight !=null">
  1135. and husked_rice_weight = #{huskedRiceWeight}
  1136. </if>
  1137. <if test="abTypeRice !=null">
  1138. and ab_type_rice = #{abTypeRice}
  1139. </if>
  1140. <if test="budShellRice !=null">
  1141. and bud_shell_rice = #{budShellRice}
  1142. </if>
  1143. <if test="huskedBadpartWeight !=null">
  1144. and husked_badpart_weight = #{huskedBadpartWeight}
  1145. </if>
  1146. <if test="capacityResult !=null">
  1147. and capacity_result = #{capacityResult}
  1148. </if>
  1149. <if test="badpartMildewCountResult !=null">
  1150. and badpart_mildew_count_result = #{badpartMildewCountResult}
  1151. </if>
  1152. <if test="impurityResult !=null">
  1153. and impurity_result = #{impurityResult}
  1154. </if>
  1155. <if test="fatIndexResult !=null">
  1156. and fat_index_result = #{fatIndexResult}
  1157. </if>
  1158. <if test="waterResult !=null">
  1159. and water_result = #{waterResult}
  1160. </if>
  1161. <if test="eatScoreResult !=null">
  1162. and eat_score_result = #{eatScoreResult}
  1163. </if>
  1164. <if test="aflatoxinB !=null">
  1165. and aflatoxin_b = #{aflatoxinB}
  1166. </if>
  1167. <if test="aflatoxinBResult !=null">
  1168. and aflatoxin_b_result = #{aflatoxinBResult}
  1169. </if>
  1170. <if test="phosphide !=null">
  1171. and phosphide = #{phosphide}
  1172. </if>
  1173. <if test="phosphideResult !=null">
  1174. and phosphide_result = #{phosphideResult}
  1175. </if>
  1176. <if test="checktypeResult !=null">
  1177. and checktype_result = #{checktypeResult}
  1178. </if>
  1179. <if test="colorsmellResult !=null">
  1180. and colorsmell_result = #{colorsmellResult}
  1181. </if>
  1182. <if test="badpartResult !=null">
  1183. and badpart_result = #{badpartResult}
  1184. </if>
  1185. <if test="impurtySumResult !=null">
  1186. and impurty_sum_result = #{impurtySumResult}
  1187. </if>
  1188. <if test="mineralResult !=null">
  1189. and mineral_result = #{mineralResult}
  1190. </if>
  1191. <if test="glutenWaterCountResult !=null">
  1192. and gluten_water_count_result = #{glutenWaterCountResult}
  1193. </if>
  1194. <if test="viscosityResult !=null">
  1195. and viscosity_result = #{viscosityResult}
  1196. </if>
  1197. <if test="huskedRationResult !=null">
  1198. and husked_ration_result = #{huskedRationResult}
  1199. </if>
  1200. <if test="fullGoodRationResult !=null">
  1201. and full_good_ration_result = #{fullGoodRationResult}
  1202. </if>
  1203. <if test="outHuskedRationResult !=null">
  1204. and out_husked_ration_result = #{outHuskedRationResult}
  1205. </if>
  1206. <if test="yellowPartResult !=null">
  1207. and yellow_part_result = #{yellowPartResult}
  1208. </if>
  1209. <if test="goodpartResult !=null">
  1210. and goodpart_result = #{goodpartResult}
  1211. </if>
  1212. <if test="hotDamageResult !=null">
  1213. and hot_damage_result = #{hotDamageResult}
  1214. </if>
  1215. <if test="boldfatIndexResult !=null">
  1216. and boldfat_index_result = #{boldfatIndexResult}
  1217. </if>
  1218. <if test="proteinSolutionRatioResult !=null">
  1219. and protein_solution_ratio_result = #{proteinSolutionRatioResult}
  1220. </if>
  1221. <if test="reviewer !=null">
  1222. and reviewer = #{reviewer}
  1223. </if>
  1224. <if test="storeQuality !=null">
  1225. and store_quality = #{storeQuality}
  1226. </if>
  1227. <if test="isPest !=null">
  1228. and is_pest = #{isPest}
  1229. </if>
  1230. <if test="deductedConditions !=null">
  1231. and deducted_conditions = #{deductedConditions}
  1232. </if>
  1233. <if test="inputDeductedInfo !=null">
  1234. and input_deducted_info = #{inputDeductedInfo}
  1235. </if>
  1236. <if test="waterDeductedInfo !=null">
  1237. and water_deducted_info = #{waterDeductedInfo}
  1238. </if>
  1239. <if test="impurityDeductedInfo !=null">
  1240. and impurity_deducted_info = #{impurityDeductedInfo}
  1241. </if>
  1242. <if test="otherDeductedInfo !=null">
  1243. and other_deducted_info = #{otherDeductedInfo}
  1244. </if>
  1245. <if test="deductedPic !=null">
  1246. and deducted_pic = #{deductedPic}
  1247. </if>
  1248. <if test="waterTipsFlag !=null">
  1249. and water_tips_flag = #{waterTipsFlag}
  1250. </if>
  1251. </where>
  1252. <choose>
  1253. <when test="page !=null and page.orderBy != null and page.orderBy != ''">
  1254. ORDER BY ${page.orderBy}
  1255. </when>
  1256. <otherwise>
  1257. </otherwise>
  1258. </choose>
  1259. </select>
  1260. <resultMap type="cn.ourwill.module.house.entity.daily.DailyRecordQualitycheck" id="staticMap" extends="baseMap">
  1261. <result column="houseName" property="houseName"/>
  1262. <result column="grainName" property="grainName"/>
  1263. </resultMap>
  1264. <select id="findTheLastOneGroupByHouseId" resultMap="staticMap">
  1265. SELECT
  1266. <include refid="staticColumns"/>
  1267. ,
  1268. house.house_name as houseName,
  1269. sg.name as grainName
  1270. FROM daily_record_qualitycheck a
  1271. left join house_info house on house.id = a.house_id
  1272. left join sys_grain sg on sg.id = house.grain_id
  1273. where a.id = (select drq.id from daily_record_qualitycheck drq where drq.house_id = a.house_id order by drq.check_time desc limit 1)
  1274. <if test=" subType != null and subType !=''">
  1275. and a.sub_type = #{subType}
  1276. </if>
  1277. <if test=" waterStart != null and waterStart !=''">
  1278. and a.water &gt;= #{waterStart}
  1279. </if>
  1280. <if test=" waterEnd != null and waterEnd !=''">
  1281. and a.water &lt;= #{waterEnd}
  1282. </if>
  1283. <if test=" fatIndexStart != null and fatIndexStart !=''">
  1284. and (a.fat_index+0) &gt;= #{fatIndexStart}
  1285. </if>
  1286. <if test=" fatIndexEnd != null and fatIndexEnd !=''">
  1287. and (a.fat_index+0) &lt;= #{fatIndexEnd}
  1288. </if>
  1289. <if test=" grainId != null and grainId !=''">
  1290. and sg.id = #{grainId}
  1291. </if>
  1292. <if test=" cityId != null and cityId !=''">
  1293. and sg.parentId = #{cityId}
  1294. </if>
  1295. <if test=" fatFlag != null and fatFlag =='true'">
  1296. and a.sub_type in (1,2)
  1297. </if>
  1298. group by a.house_id
  1299. order by sg.id,CONCAT(GetNum(house.house_name),house.house_name)+0 asc
  1300. </select>
  1301. <select id="getTwoLastInfoByHouseId" resultMap="staticMap">
  1302. SELECT
  1303. <include refid="staticColumns"/>
  1304. ,
  1305. house.house_name as houseName
  1306. FROM daily_record_qualitycheck a
  1307. left join house_info house on house.id = a.house_id
  1308. WHERE a.house_id = #{houseId}
  1309. ORDER BY
  1310. a.check_time DESC
  1311. LIMIT 2
  1312. </select>
  1313. <select id="getInfoByHouseId" resultMap="staticMap">
  1314. SELECT
  1315. <include refid="staticColumns"/>
  1316. ,
  1317. house.house_name as houseName,
  1318. sg.name as grainName
  1319. FROM daily_record_qualitycheck a
  1320. left join house_info house on house.id = a.house_id
  1321. left join sys_grain sg on sg.id = house.grain_id
  1322. <where>
  1323. and a.id = (select drq.id from daily_record_qualitycheck drq where drq.house_id = a.house_id order by drq.check_time desc limit 1)
  1324. <if test=" houseId != null and houseId !=''">
  1325. and a.house_id = #{houseId}
  1326. </if>
  1327. <if test=" subType != null and subType !=''">
  1328. and a.sub_type = #{subType}
  1329. </if>
  1330. <if test=" waterStart != null and waterStart !=''">
  1331. and a.water &gt;= #{waterStart}
  1332. </if>
  1333. <if test=" waterEnd != null and waterEnd !=''">
  1334. and a.water &lt;= #{waterEnd}
  1335. </if>
  1336. <if test=" fatIndexStart != null and fatIndexStart !=''">
  1337. and (a.fat_index+0) &gt;= #{fatIndexStart}
  1338. </if>
  1339. <if test=" fatIndexEnd != null and fatIndexEnd !=''">
  1340. and (a.fat_index+0) &lt;= #{fatIndexEnd}
  1341. </if>
  1342. <if test=" grainId != null and grainId !=''">
  1343. and sg.id = #{grainId}
  1344. </if>
  1345. <if test=" cityId != null and cityId !=''">
  1346. and sg.parentId = #{cityId}
  1347. </if>
  1348. <if test=" fatFlag != null and fatFlag =='true'">
  1349. and a.sub_type in (1,2)
  1350. </if>
  1351. </where>
  1352. <choose>
  1353. <when test="orderBy !=null and orderBy != ''">
  1354. ORDER BY ${orderBy}
  1355. </when>
  1356. <otherwise>
  1357. </otherwise>
  1358. </choose>
  1359. </select>
  1360. <insert id="insert" keyColumn="id" keyProperty="id" useGeneratedKeys="true"
  1361. parameterType="cn.ourwill.module.house.entity.daily.DailyRecordQualitycheck">
  1362. INSERT INTO daily_record_qualitycheck
  1363. <trim prefix="(" suffix=")" suffixOverrides=",">
  1364. <if test=" id != null">
  1365. id,
  1366. </if>
  1367. <if test=" houseId != null">
  1368. house_id,
  1369. </if>
  1370. <if test=" type != null">
  1371. `type`,
  1372. </if>
  1373. <if test=" subType != null">
  1374. sub_type,
  1375. </if>
  1376. <if test=" checkTime != null">
  1377. check_time,
  1378. </if>
  1379. <if test=" checker != null">
  1380. checker,
  1381. </if>
  1382. <if test=" qualityIndex != null">
  1383. quality_index,
  1384. </if>
  1385. <if test=" badItems != null">
  1386. bad_items,
  1387. </if>
  1388. <if test=" level != null">
  1389. `level`,
  1390. </if>
  1391. <if test=" capacity != null">
  1392. capacity,
  1393. </if>
  1394. <if test=" water != null">
  1395. water,
  1396. </if>
  1397. <if test=" impurity != null">
  1398. impurity,
  1399. </if>
  1400. <if test=" mineral != null">
  1401. mineral,
  1402. </if>
  1403. <if test=" badpart != null">
  1404. badpart,
  1405. </if>
  1406. <if test=" colorsmell != null">
  1407. colorsmell,
  1408. </if>
  1409. <if test=" keeperAdvices != null">
  1410. keeper_advices,
  1411. </if>
  1412. <if test=" keeperAdvicesTime != null">
  1413. keeper_advices_time,
  1414. </if>
  1415. <if test="keeperAdvicesPaint !=null">
  1416. keeper_advices_paint,
  1417. </if>
  1418. <if test=" chiefAdvices != null">
  1419. chief_advices,
  1420. </if>
  1421. <if test=" chiefAdvicesTime != null">
  1422. chief_advices_time,
  1423. </if>
  1424. <if test="chietAdvicesPaint !=null">
  1425. chiet_advices_paint,
  1426. </if>
  1427. <if test=" viceManagerAdvices != null">
  1428. vice_manager_advices,
  1429. </if>
  1430. <if test=" viceManagerAdvicesTime != null">
  1431. vice_manager_advices_time,
  1432. </if>
  1433. <if test="viceManagerAdvicesPaint !=null">
  1434. vice_manager_advices_paint,
  1435. </if>
  1436. <if test=" managerAdvices != null">
  1437. manager_advices,
  1438. </if>
  1439. <if test=" managerAdvicesTime != null">
  1440. manager_advices_time,
  1441. </if>
  1442. <if test="managerAdvicesPaint !=null">
  1443. manager_advices_paint,
  1444. </if>
  1445. <if test=" improveResult != null">
  1446. improve_result,
  1447. </if>
  1448. <if test=" improveTime != null">
  1449. improve_time,
  1450. </if>
  1451. <if test="improvePaint !=null">
  1452. improve_paint,
  1453. </if>
  1454. <if test=" isFirstchecklevelRight != null">
  1455. is_firstchecklevel_right,
  1456. </if>
  1457. <if test=" acceptUnite != null">
  1458. accept_unite,
  1459. </if>
  1460. <if test=" kind != null">
  1461. kind,
  1462. </if>
  1463. <if test=" property != null">
  1464. property,
  1465. </if>
  1466. <if test=" inputTime != null">
  1467. input_time,
  1468. </if>
  1469. <if test=" number != null">
  1470. `number`,
  1471. </if>
  1472. <if test=" location != null">
  1473. location,
  1474. </if>
  1475. <if test=" keeper != null">
  1476. keeper,
  1477. </if>
  1478. <if test=" harvestTime != null">
  1479. harvest_time,
  1480. </if>
  1481. <if test=" goodpart != null">
  1482. goodpart,
  1483. </if>
  1484. <if test=" chooser != null">
  1485. chooser,
  1486. </if>
  1487. <if test=" chooseTime != null and chooseTime != ''">
  1488. choose_time,
  1489. </if>
  1490. <if test=" damageRatioSum != null">
  1491. damage_ratio_sum,
  1492. </if>
  1493. <if test=" boldfatIndex != null">
  1494. boldfat_index,
  1495. </if>
  1496. <if test=" checkType != null">
  1497. check_type,
  1498. </if>
  1499. <if test=" hotDamage != null">
  1500. hot_damage,
  1501. </if>
  1502. <if test=" proteinSolutionRatio != null">
  1503. protein_solution_ratio,
  1504. </if>
  1505. <if test=" qualityIndexResult != null">
  1506. quality_index_result,
  1507. </if>
  1508. <if test=" qualitySaveResult != null">
  1509. quality_save_result,
  1510. </if>
  1511. <if test=" badpartSum != null">
  1512. badpart_sum,
  1513. </if>
  1514. <if test=" badpartMildewCount != null">
  1515. badpart_mildew_count,
  1516. </if>
  1517. <if test=" eatScore != null">
  1518. eat_score,
  1519. </if>
  1520. <if test=" fatIndex != null">
  1521. fat_index,
  1522. </if>
  1523. <if test=" huskedRation != null">
  1524. husked_ration,
  1525. </if>
  1526. <if test=" fullGoodRation != null">
  1527. full_good_ration,
  1528. </if>
  1529. <if test=" mixRation != null">
  1530. mix_ration,
  1531. </if>
  1532. <if test=" yellowPart != null">
  1533. yellow_part,
  1534. </if>
  1535. <if test=" outHuskedRation != null">
  1536. out_husked_ration,
  1537. </if>
  1538. <if test=" carSequence != null">
  1539. car_sequence,
  1540. </if>
  1541. <if test=" bigSample != null">
  1542. big_sample,
  1543. </if>
  1544. <if test=" smallSample != null">
  1545. small_sample,
  1546. </if>
  1547. <if test=" pests != null">
  1548. pests,
  1549. </if>
  1550. <if test=" impurtySum != null">
  1551. impurty_sum,
  1552. </if>
  1553. <if test=" bigImpurity != null">
  1554. big_impurity,
  1555. </if>
  1556. <if test=" smallImpurity != null">
  1557. small_impurity,
  1558. </if>
  1559. <if test=" colorRatio != null">
  1560. color_ratio,
  1561. </if>
  1562. <if test=" hardIndex != null">
  1563. hard_index,
  1564. </if>
  1565. <if test=" viscosity != null">
  1566. viscosity,
  1567. </if>
  1568. <if test=" becheckedUnite != null">
  1569. bechecked_unite,
  1570. </if>
  1571. <if test=" samleName != null">
  1572. samle_name,
  1573. </if>
  1574. <if test=" sampleCount != null">
  1575. sample_count,
  1576. </if>
  1577. <if test=" packType != null">
  1578. pack_type,
  1579. </if>
  1580. <if test=" chooseLocation != null">
  1581. choose_location,
  1582. </if>
  1583. <if test=" glutenWaterCount != null">
  1584. gluten_water_count,
  1585. </if>
  1586. <if test=" remarks != null">
  1587. remarks,
  1588. </if>
  1589. <if test=" writer != null">
  1590. writer,
  1591. </if>
  1592. <if test=" approver != null">
  1593. approver,
  1594. </if>
  1595. <if test=" checkResult != null">
  1596. check_result,
  1597. </if>
  1598. <if test=" checkResultInfo != null">
  1599. check_result_info,
  1600. </if>
  1601. <if test=" cId != null">
  1602. c_id,
  1603. </if>
  1604. <if test=" uId != null">
  1605. u_id,
  1606. </if>
  1607. <if test=" cTime != null">
  1608. c_time,
  1609. </if>
  1610. <if test=" uTime != null">
  1611. u_time,
  1612. </if>
  1613. <if test=" version != null">
  1614. version,
  1615. </if>
  1616. <if test=" uuid != null">
  1617. uuid,
  1618. </if>
  1619. <if test=" impurityMineral != null">
  1620. impurity_mineral,
  1621. </if>
  1622. <if test=" mildewCount != null">
  1623. mildew_count,
  1624. </if>
  1625. <if test=" abColorRatio != null">
  1626. ab_color_ratio,
  1627. </if>
  1628. <if test=" damageRatio != null">
  1629. damage_ratio,
  1630. </if>
  1631. <if test=" hotDamageRatio != null">
  1632. hot_damage_ratio,
  1633. </if>
  1634. <if test=" cleanRice != null">
  1635. clean_rice,
  1636. </if>
  1637. <if test=" huskedRiceWeight != null">
  1638. husked_rice_weight,
  1639. </if>
  1640. <if test=" abTypeRice != null">
  1641. ab_type_rice,
  1642. </if>
  1643. <if test=" budShellRice != null">
  1644. bud_shell_rice,
  1645. </if>
  1646. <if test=" huskedBadpartWeight != null">
  1647. husked_badpart_weight,
  1648. </if>
  1649. <if test=" capacityResult != null">
  1650. capacity_result,
  1651. </if>
  1652. <if test=" badpartMildewCountResult != null">
  1653. badpart_mildew_count_result,
  1654. </if>
  1655. <if test=" impurityResult != null">
  1656. impurity_result,
  1657. </if>
  1658. <if test=" fatIndexResult != null">
  1659. fat_index_result,
  1660. </if>
  1661. <if test=" waterResult != null">
  1662. water_result,
  1663. </if>
  1664. <if test=" eatScoreResult != null">
  1665. eat_score_result,
  1666. </if>
  1667. <if test=" aflatoxinB != null">
  1668. aflatoxin_b,
  1669. </if>
  1670. <if test=" aflatoxinBResult != null">
  1671. aflatoxin_b_result,
  1672. </if>
  1673. <if test=" phosphide != null">
  1674. phosphide,
  1675. </if>
  1676. <if test=" phosphideResult != null">
  1677. phosphide_result,
  1678. </if>
  1679. <if test=" checktypeResult != null">
  1680. checktype_result,
  1681. </if>
  1682. <if test=" colorsmellResult != null">
  1683. colorsmell_result,
  1684. </if>
  1685. <if test=" badpartResult != null">
  1686. badpart_result,
  1687. </if>
  1688. <if test=" impurtySumResult != null">
  1689. impurty_sum_result,
  1690. </if>
  1691. <if test=" mineralResult != null">
  1692. mineral_result,
  1693. </if>
  1694. <if test=" glutenWaterCountResult != null">
  1695. gluten_water_count_result,
  1696. </if>
  1697. <if test=" viscosityResult != null">
  1698. viscosity_result,
  1699. </if>
  1700. <if test=" huskedRationResult != null">
  1701. husked_ration_result,
  1702. </if>
  1703. <if test=" fullGoodRationResult != null">
  1704. full_good_ration_result,
  1705. </if>
  1706. <if test=" outHuskedRationResult != null">
  1707. out_husked_ration_result,
  1708. </if>
  1709. <if test=" yellowPartResult != null">
  1710. yellow_part_result,
  1711. </if>
  1712. <if test=" goodpartResult != null">
  1713. goodpart_result,
  1714. </if>
  1715. <if test=" hotDamageResult != null">
  1716. hot_damage_result,
  1717. </if>
  1718. <if test=" boldfatIndexResult != null">
  1719. boldfat_index_result,
  1720. </if>
  1721. <if test=" proteinSolutionRatioResult != null">
  1722. protein_solution_ratio_result,
  1723. </if>
  1724. <if test=" reviewer != null">
  1725. reviewer,
  1726. </if>
  1727. <if test=" applyCheckTime != null and applyCheckTime != ''">
  1728. apply_check_time,
  1729. </if>
  1730. <if test=" checkTimeType != null">
  1731. check_time_type,
  1732. </if>
  1733. <if test=" checkResultTime != null">
  1734. check_result_time,
  1735. </if>
  1736. <if test=" storeQuality !=null">
  1737. store_quality,
  1738. </if>
  1739. <if test=" isPest !=null">
  1740. is_pest,
  1741. </if>
  1742. <if test=" deductedConditions !=null">
  1743. deducted_conditions,
  1744. </if>
  1745. <if test=" inputDeductedInfo !=null">
  1746. input_deducted_info,
  1747. </if>
  1748. <if test=" waterDeductedInfo !=null">
  1749. water_deducted_info ,
  1750. </if>
  1751. <if test=" impurityDeductedInfo !=null">
  1752. impurity_deducted_info,
  1753. </if>
  1754. <if test=" otherDeductedInfo !=null">
  1755. other_deducted_info,
  1756. </if>
  1757. <if test=" deductedPic !=null">
  1758. deducted_pic,
  1759. </if>
  1760. <if test="waterTipsFlag !=null">
  1761. water_tips_flag
  1762. </if>
  1763. </trim>
  1764. <trim prefix="values (" suffix=")" suffixOverrides=",">
  1765. <if test=" id != null">
  1766. #{id}, </if>
  1767. <if test=" houseId != null">
  1768. #{houseId}, </if>
  1769. <if test=" type != null">
  1770. #{type}, </if>
  1771. <if test=" subType != null">
  1772. #{subType}, </if>
  1773. <if test=" checkTime != null">
  1774. #{checkTime}, </if>
  1775. <if test=" checker != null">
  1776. #{checker}, </if>
  1777. <if test=" qualityIndex != null">
  1778. #{qualityIndex}, </if>
  1779. <if test=" badItems != null">
  1780. #{badItems}, </if>
  1781. <if test=" level != null">
  1782. #{level}, </if>
  1783. <if test=" capacity != null">
  1784. #{capacity}, </if>
  1785. <if test=" water != null">
  1786. #{water}, </if>
  1787. <if test=" impurity != null">
  1788. #{impurity}, </if>
  1789. <if test=" mineral != null">
  1790. #{mineral}, </if>
  1791. <if test=" badpart != null">
  1792. #{badpart}, </if>
  1793. <if test=" colorsmell != null">
  1794. #{colorsmell}, </if>
  1795. <if test=" keeperAdvices != null">
  1796. #{keeperAdvices}, </if>
  1797. <if test=" keeperAdvicesTime != null">
  1798. #{keeperAdvicesTime}, </if>
  1799. <if test=" chiefAdvices != null">
  1800. #{chiefAdvices}, </if>
  1801. <if test=" chiefAdvicesTime != null">
  1802. #{chiefAdvicesTime}, </if>
  1803. <if test=" viceManagerAdvices != null">
  1804. #{viceManagerAdvices}, </if>
  1805. <if test=" viceManagerAdvicesTime != null">
  1806. #{viceManagerAdvicesTime}, </if>
  1807. <if test=" managerAdvices != null">
  1808. #{managerAdvices}, </if>
  1809. <if test=" managerAdvicesTime != null">
  1810. #{managerAdvicesTime}, </if>
  1811. <if test=" improveResult != null">
  1812. #{improveResult}, </if>
  1813. <if test=" improveTime != null">
  1814. #{improveTime}, </if>
  1815. <if test=" isFirstchecklevelRight != null">
  1816. #{isFirstchecklevelRight}, </if>
  1817. <if test=" acceptUnite != null">
  1818. #{acceptUnite}, </if>
  1819. <if test=" kind != null">
  1820. #{kind}, </if>
  1821. <if test=" property != null">
  1822. #{property}, </if>
  1823. <if test=" inputTime != null">
  1824. #{inputTime}, </if>
  1825. <if test=" number != null">
  1826. #{number}, </if>
  1827. <if test=" location != null">
  1828. #{location}, </if>
  1829. <if test=" keeper != null">
  1830. #{keeper}, </if>
  1831. <if test=" harvestTime != null">
  1832. #{harvestTime}, </if>
  1833. <if test=" goodpart != null">
  1834. #{goodpart}, </if>
  1835. <if test=" chooser != null">
  1836. #{chooser}, </if>
  1837. <if test=" chooseTime != null and chooseTime != ''">
  1838. #{chooseTime}, </if>
  1839. <if test=" damageRatioSum != null">
  1840. #{damageRatioSum}, </if>
  1841. <if test=" boldfatIndex != null">
  1842. #{boldfatIndex}, </if>
  1843. <if test=" checkType != null">
  1844. #{checkType}, </if>
  1845. <if test=" hotDamage != null">
  1846. #{hotDamage}, </if>
  1847. <if test=" proteinSolutionRatio != null">
  1848. #{proteinSolutionRatio}, </if>
  1849. <if test=" qualityIndexResult != null">
  1850. #{qualityIndexResult}, </if>
  1851. <if test=" qualitySaveResult != null">
  1852. #{qualitySaveResult}, </if>
  1853. <if test=" badpartSum != null">
  1854. #{badpartSum}, </if>
  1855. <if test=" badpartMildewCount != null">
  1856. #{badpartMildewCount}, </if>
  1857. <if test=" eatScore != null">
  1858. #{eatScore}, </if>
  1859. <if test=" fatIndex != null">
  1860. #{fatIndex}, </if>
  1861. <if test=" huskedRation != null">
  1862. #{huskedRation}, </if>
  1863. <if test=" fullGoodRation != null">
  1864. #{fullGoodRation}, </if>
  1865. <if test=" mixRation != null">
  1866. #{mixRation}, </if>
  1867. <if test=" yellowPart != null">
  1868. #{yellowPart}, </if>
  1869. <if test=" outHuskedRation != null">
  1870. #{outHuskedRation}, </if>
  1871. <if test=" carSequence != null">
  1872. #{carSequence}, </if>
  1873. <if test=" bigSample != null">
  1874. #{bigSample}, </if>
  1875. <if test=" smallSample != null">
  1876. #{smallSample}, </if>
  1877. <if test=" pests != null">
  1878. #{pests}, </if>
  1879. <if test=" impurtySum != null">
  1880. #{impurtySum}, </if>
  1881. <if test=" bigImpurity != null">
  1882. #{bigImpurity}, </if>
  1883. <if test=" smallImpurity != null">
  1884. #{smallImpurity}, </if>
  1885. <if test=" colorRatio != null">
  1886. #{colorRatio}, </if>
  1887. <if test=" hardIndex != null">
  1888. #{hardIndex}, </if>
  1889. <if test=" viscosity != null">
  1890. #{viscosity}, </if>
  1891. <if test=" becheckedUnite != null">
  1892. #{becheckedUnite}, </if>
  1893. <if test=" samleName != null">
  1894. #{samleName}, </if>
  1895. <if test=" sampleCount != null">
  1896. #{sampleCount}, </if>
  1897. <if test=" packType != null">
  1898. #{packType}, </if>
  1899. <if test=" chooseLocation != null">
  1900. #{chooseLocation}, </if>
  1901. <if test=" glutenWaterCount != null">
  1902. #{glutenWaterCount}, </if>
  1903. <if test=" remarks != null">
  1904. #{remarks}, </if>
  1905. <if test=" writer != null">
  1906. #{writer}, </if>
  1907. <if test=" approver != null">
  1908. #{approver}, </if>
  1909. <if test=" checkResult != null">
  1910. #{checkResult}, </if>
  1911. <if test=" checkResultInfo != null">
  1912. #{checkResultInfo}, </if>
  1913. <if test=" cId != null">
  1914. #{cId}, </if>
  1915. <if test=" uId != null">
  1916. #{uId}, </if>
  1917. <if test=" cTime != null">
  1918. #{cTime}, </if>
  1919. <if test=" uTime != null">
  1920. #{uTime}, </if>
  1921. <if test=" version != null">
  1922. #{version}, </if>
  1923. <if test=" uuid != null">
  1924. #{uuid}, </if>
  1925. <if test=" impurityMineral != null">
  1926. #{impurityMineral}, </if>
  1927. <if test=" mildewCount != null">
  1928. #{mildewCount}, </if>
  1929. <if test=" abColorRatio != null">
  1930. #{abColorRatio}, </if>
  1931. <if test=" damageRatio != null">
  1932. #{damageRatio}, </if>
  1933. <if test=" hotDamageRatio != null">
  1934. #{hotDamageRatio}, </if>
  1935. <if test=" cleanRice != null">
  1936. #{cleanRice}, </if>
  1937. <if test=" huskedRiceWeight != null">
  1938. #{huskedRiceWeight}, </if>
  1939. <if test=" abTypeRice != null">
  1940. #{abTypeRice}, </if>
  1941. <if test=" budShellRice != null">
  1942. #{budShellRice}, </if>
  1943. <if test=" huskedBadpartWeight != null">
  1944. #{huskedBadpartWeight}, </if>
  1945. <if test=" capacityResult != null">
  1946. #{capacityResult}, </if>
  1947. <if test=" badpartMildewCountResult != null">
  1948. #{badpartMildewCountResult}, </if>
  1949. <if test=" impurityResult != null">
  1950. #{impurityResult}, </if>
  1951. <if test=" fatIndexResult != null">
  1952. #{fatIndexResult}, </if>
  1953. <if test=" waterResult != null">
  1954. #{waterResult}, </if>
  1955. <if test=" eatScoreResult != null">
  1956. #{eatScoreResult}, </if>
  1957. <if test=" aflatoxinB != null">
  1958. #{aflatoxinB}, </if>
  1959. <if test=" aflatoxinBResult != null">
  1960. #{aflatoxinBResult}, </if>
  1961. <if test=" phosphide != null">
  1962. #{phosphide}, </if>
  1963. <if test=" phosphideResult != null">
  1964. #{phosphideResult}, </if>
  1965. <if test=" checktypeResult != null">
  1966. #{checktypeResult}, </if>
  1967. <if test=" colorsmellResult != null">
  1968. #{colorsmellResult}, </if>
  1969. <if test=" badpartResult != null">
  1970. #{badpartResult}, </if>
  1971. <if test=" impurtySumResult != null">
  1972. #{impurtySumResult}, </if>
  1973. <if test=" mineralResult != null">
  1974. #{mineralResult}, </if>
  1975. <if test=" glutenWaterCountResult != null">
  1976. #{glutenWaterCountResult}, </if>
  1977. <if test=" viscosityResult != null">
  1978. #{viscosityResult}, </if>
  1979. <if test=" huskedRationResult != null">
  1980. #{huskedRationResult}, </if>
  1981. <if test=" fullGoodRationResult != null">
  1982. #{fullGoodRationResult}, </if>
  1983. <if test=" outHuskedRationResult != null">
  1984. #{outHuskedRationResult}, </if>
  1985. <if test=" yellowPartResult != null">
  1986. #{yellowPartResult}, </if>
  1987. <if test=" goodpartResult != null">
  1988. #{goodpartResult}, </if>
  1989. <if test=" hotDamageResult != null">
  1990. #{hotDamageResult}, </if>
  1991. <if test=" boldfatIndexResult != null">
  1992. #{boldfatIndexResult}, </if>
  1993. <if test=" proteinSolutionRatioResult != null">
  1994. #{proteinSolutionRatioResult}, </if>
  1995. <if test=" reviewer != null">
  1996. #{reviewer}, </if>
  1997. <if test=" applyCheckTime != null and applyCheckTime != ''">
  1998. #{applyCheckTime}, </if>
  1999. <if test=" checkTimeType != null">
  2000. #{checkTimeType}, </if>
  2001. <if test=" checkResultTime != null">
  2002. #{checkResultTime}, </if>
  2003. <if test="storeQuality !=null">
  2004. #{storeQuality}, </if>
  2005. <if test="isPest !=null">
  2006. #{isPest}, </if>
  2007. <if test="deductedConditions !=null">
  2008. #{deductedConditions}, </if>
  2009. <if test="inputDeductedInfo !=null">
  2010. #{inputDeductedInfo}, </if>
  2011. <if test="waterDeductedInfo !=null">
  2012. #{waterDeductedInfo}, </if>
  2013. <if test="impurityDeductedInfo !=null">
  2014. #{impurityDeductedInfo}, </if>
  2015. <if test="otherDeductedInfo !=null">
  2016. #{otherDeductedInfo}, </if>
  2017. <if test="deductedPic !=null">
  2018. #{deductedPic}, </if>
  2019. </trim>
  2020. </insert>
  2021. <update id="updateByUuid" parameterType="cn.ourwill.module.house.entity.daily.DailyRecordQualitycheck">
  2022. UPDATE daily_record_qualitycheck <set>
  2023. <if test="houseId != null">
  2024. house_id= #{houseId} ,
  2025. </if>
  2026. <if test="type != null">
  2027. `type`= #{type} ,
  2028. </if>
  2029. <if test="subType != null">
  2030. sub_type= #{subType} ,
  2031. </if>
  2032. <if test="checkTime != null">
  2033. check_time= #{checkTime} ,
  2034. </if>
  2035. <if test="checker != null">
  2036. checker= #{checker} ,
  2037. </if>
  2038. <if test="qualityIndex != null">
  2039. quality_index= #{qualityIndex} ,
  2040. </if>
  2041. <if test="badItems != null">
  2042. bad_items= #{badItems} ,
  2043. </if>
  2044. <if test="level != null">
  2045. `level`= #{level} ,
  2046. </if>
  2047. <if test="capacity != null">
  2048. capacity= #{capacity} ,
  2049. </if>
  2050. <if test="water != null">
  2051. water= #{water} ,
  2052. </if>
  2053. <if test="impurity != null">
  2054. impurity= #{impurity} ,
  2055. </if>
  2056. <if test="mineral != null">
  2057. mineral= #{mineral} ,
  2058. </if>
  2059. <if test="badpart != null">
  2060. badpart= #{badpart} ,
  2061. </if>
  2062. <if test="colorsmell != null">
  2063. colorsmell= #{colorsmell} ,
  2064. </if>
  2065. <if test="keeperAdvices != null">
  2066. keeper_advices= #{keeperAdvices} ,
  2067. </if>
  2068. <if test="keeperAdvicesTime != null">
  2069. keeper_advices_time= #{keeperAdvicesTime} ,
  2070. </if>
  2071. <if test="keeperAdvicesPaint !=null">
  2072. keeper_advices_paint = #{keeperAdvicesPaint},
  2073. </if>
  2074. <if test="chiefAdvices != null">
  2075. chief_advices= #{chiefAdvices} ,
  2076. </if>
  2077. <if test="chiefAdvicesTime != null">
  2078. chief_advices_time= #{chiefAdvicesTime} ,
  2079. </if>
  2080. <if test="chietAdvicesPaint !=null">
  2081. chiet_advices_paint = #{chietAdvicesPaint},
  2082. </if>
  2083. <if test="viceManagerAdvices != null">
  2084. vice_manager_advices= #{viceManagerAdvices} ,
  2085. </if>
  2086. <if test="viceManagerAdvicesTime != null">
  2087. vice_manager_advices_time= #{viceManagerAdvicesTime} ,
  2088. </if>
  2089. <if test="viceManagerAdvicesPaint !=null">
  2090. vice_manager_advices_paint = #{viceManagerAdvicesPaint},
  2091. </if>
  2092. <if test="managerAdvices != null">
  2093. manager_advices= #{managerAdvices} ,
  2094. </if>
  2095. <if test="managerAdvicesTime != null">
  2096. manager_advices_time= #{managerAdvicesTime} ,
  2097. </if>
  2098. <if test="managerAdvicesPaint !=null">
  2099. manager_advices_paint = #{managerAdvicesPaint},
  2100. </if>
  2101. <if test="improveResult != null">
  2102. improve_result= #{improveResult} ,
  2103. </if>
  2104. <if test="improveTime != null">
  2105. improve_time= #{improveTime} ,
  2106. </if>
  2107. <if test="improvePaint !=null">
  2108. improve_paint = #{improvePaint},
  2109. </if>
  2110. <if test="isFirstchecklevelRight != null">
  2111. is_firstchecklevel_right= #{isFirstchecklevelRight} ,
  2112. </if>
  2113. <if test="acceptUnite != null">
  2114. accept_unite= #{acceptUnite} ,
  2115. </if>
  2116. <if test="kind != null">
  2117. kind= #{kind} ,
  2118. </if>
  2119. <if test="property != null">
  2120. property= #{property} ,
  2121. </if>
  2122. <if test="inputTime != null">
  2123. input_time= #{inputTime} ,
  2124. </if>
  2125. <if test="number != null">
  2126. `number`= #{number} ,
  2127. </if>
  2128. <if test="location != null">
  2129. location= #{location} ,
  2130. </if>
  2131. <if test="keeper != null">
  2132. keeper= #{keeper} ,
  2133. </if>
  2134. <if test="harvestTime != null">
  2135. harvest_time= #{harvestTime} ,
  2136. </if>
  2137. <if test="goodpart != null">
  2138. goodpart= #{goodpart} ,
  2139. </if>
  2140. <if test="chooser != null">
  2141. chooser= #{chooser} ,
  2142. </if>
  2143. <if test="chooseTime != null and chooseTime != ''">
  2144. choose_time= #{chooseTime} ,
  2145. </if>
  2146. <if test="damageRatioSum != null">
  2147. damage_ratio_sum= #{damageRatioSum} ,
  2148. </if>
  2149. <if test="boldfatIndex != null">
  2150. boldfat_index= #{boldfatIndex} ,
  2151. </if>
  2152. <if test="checkType != null">
  2153. check_type= #{checkType} ,
  2154. </if>
  2155. <if test="hotDamage != null">
  2156. hot_damage= #{hotDamage} ,
  2157. </if>
  2158. <if test="proteinSolutionRatio != null">
  2159. protein_solution_ratio= #{proteinSolutionRatio} ,
  2160. </if>
  2161. <if test="qualityIndexResult != null">
  2162. quality_index_result= #{qualityIndexResult} ,
  2163. </if>
  2164. <if test="qualitySaveResult != null">
  2165. quality_save_result= #{qualitySaveResult} ,
  2166. </if>
  2167. <if test="badpartSum != null">
  2168. badpart_sum= #{badpartSum} ,
  2169. </if>
  2170. <if test="badpartMildewCount != null">
  2171. badpart_mildew_count= #{badpartMildewCount} ,
  2172. </if>
  2173. <if test="eatScore != null">
  2174. eat_score= #{eatScore} ,
  2175. </if>
  2176. <if test="fatIndex != null">
  2177. fat_index= #{fatIndex} ,
  2178. </if>
  2179. <if test="huskedRation != null">
  2180. husked_ration= #{huskedRation} ,
  2181. </if>
  2182. <if test="fullGoodRation != null">
  2183. full_good_ration= #{fullGoodRation} ,
  2184. </if>
  2185. <if test="mixRation != null">
  2186. mix_ration= #{mixRation} ,
  2187. </if>
  2188. <if test="yellowPart != null">
  2189. yellow_part= #{yellowPart} ,
  2190. </if>
  2191. <if test="outHuskedRation != null">
  2192. out_husked_ration= #{outHuskedRation} ,
  2193. </if>
  2194. <if test="carSequence != null">
  2195. car_sequence= #{carSequence} ,
  2196. </if>
  2197. <if test="bigSample != null">
  2198. big_sample= #{bigSample} ,
  2199. </if>
  2200. <if test="smallSample != null">
  2201. small_sample= #{smallSample} ,
  2202. </if>
  2203. <if test="pests != null">
  2204. pests= #{pests} ,
  2205. </if>
  2206. <if test="impurtySum != null">
  2207. impurty_sum= #{impurtySum} ,
  2208. </if>
  2209. <if test="bigImpurity != null">
  2210. big_impurity= #{bigImpurity} ,
  2211. </if>
  2212. <if test="smallImpurity != null">
  2213. small_impurity= #{smallImpurity} ,
  2214. </if>
  2215. <if test="colorRatio != null">
  2216. color_ratio= #{colorRatio} ,
  2217. </if>
  2218. <if test="hardIndex != null">
  2219. hard_index= #{hardIndex} ,
  2220. </if>
  2221. <if test="viscosity != null">
  2222. viscosity= #{viscosity} ,
  2223. </if>
  2224. <if test="becheckedUnite != null">
  2225. bechecked_unite= #{becheckedUnite} ,
  2226. </if>
  2227. <if test="samleName != null">
  2228. samle_name= #{samleName} ,
  2229. </if>
  2230. <if test="sampleCount != null">
  2231. sample_count= #{sampleCount} ,
  2232. </if>
  2233. <if test="packType != null">
  2234. pack_type= #{packType} ,
  2235. </if>
  2236. <if test="chooseLocation != null">
  2237. choose_location= #{chooseLocation} ,
  2238. </if>
  2239. <if test="glutenWaterCount != null">
  2240. gluten_water_count= #{glutenWaterCount} ,
  2241. </if>
  2242. <if test="remarks != null">
  2243. remarks= #{remarks} ,
  2244. </if>
  2245. <if test="writer != null">
  2246. writer= #{writer} ,
  2247. </if>
  2248. <if test="approver != null">
  2249. approver= #{approver} ,
  2250. </if>
  2251. <if test="checkResult != null">
  2252. check_result= #{checkResult} ,
  2253. </if>
  2254. <if test="checkResultInfo != null">
  2255. check_result_info= #{checkResultInfo} ,
  2256. </if>
  2257. <if test="cId != null">
  2258. c_id= #{cId} ,
  2259. </if>
  2260. <if test="uId != null">
  2261. u_id= #{uId} ,
  2262. </if>
  2263. <if test="cTime != null">
  2264. c_time= #{cTime} ,
  2265. </if>
  2266. <if test="uTime != null">
  2267. u_time= #{uTime} ,
  2268. </if>
  2269. <if test="version != null">
  2270. version= #{version} ,
  2271. </if>
  2272. <if test="uuid != null">
  2273. uuid= #{uuid} ,
  2274. </if>
  2275. <if test="impurityMineral != null">
  2276. impurity_mineral= #{impurityMineral} ,
  2277. </if>
  2278. <if test="mildewCount != null">
  2279. mildew_count= #{mildewCount} ,
  2280. </if>
  2281. <if test="abColorRatio != null">
  2282. ab_color_ratio= #{abColorRatio} ,
  2283. </if>
  2284. <if test="damageRatio != null">
  2285. damage_ratio= #{damageRatio} ,
  2286. </if>
  2287. <if test="hotDamageRatio != null">
  2288. hot_damage_ratio= #{hotDamageRatio} ,
  2289. </if>
  2290. <if test="cleanRice != null">
  2291. clean_rice= #{cleanRice} ,
  2292. </if>
  2293. <if test="huskedRiceWeight != null">
  2294. husked_rice_weight= #{huskedRiceWeight} ,
  2295. </if>
  2296. <if test="abTypeRice != null">
  2297. ab_type_rice= #{abTypeRice} ,
  2298. </if>
  2299. <if test="budShellRice != null">
  2300. bud_shell_rice= #{budShellRice} ,
  2301. </if>
  2302. <if test="huskedBadpartWeight != null">
  2303. husked_badpart_weight= #{huskedBadpartWeight} ,
  2304. </if>
  2305. <if test="capacityResult != null">
  2306. capacity_result= #{capacityResult} ,
  2307. </if>
  2308. <if test="badpartMildewCountResult != null">
  2309. badpart_mildew_count_result= #{badpartMildewCountResult} ,
  2310. </if>
  2311. <if test="impurityResult != null">
  2312. impurity_result= #{impurityResult} ,
  2313. </if>
  2314. <if test="fatIndexResult != null">
  2315. fat_index_result= #{fatIndexResult} ,
  2316. </if>
  2317. <if test="waterResult != null">
  2318. water_result= #{waterResult} ,
  2319. </if>
  2320. <if test="eatScoreResult != null">
  2321. eat_score_result= #{eatScoreResult} ,
  2322. </if>
  2323. <if test="aflatoxinB != null">
  2324. aflatoxin_b= #{aflatoxinB} ,
  2325. </if>
  2326. <if test="aflatoxinBResult != null">
  2327. aflatoxin_b_result= #{aflatoxinBResult} ,
  2328. </if>
  2329. <if test="phosphide != null">
  2330. phosphide= #{phosphide} ,
  2331. </if>
  2332. <if test="phosphideResult != null">
  2333. phosphide_result= #{phosphideResult} ,
  2334. </if>
  2335. <if test="checktypeResult != null">
  2336. checktype_result= #{checktypeResult} ,
  2337. </if>
  2338. <if test="colorsmellResult != null">
  2339. colorsmell_result= #{colorsmellResult} ,
  2340. </if>
  2341. <if test="badpartResult != null">
  2342. badpart_result= #{badpartResult} ,
  2343. </if>
  2344. <if test="impurtySumResult != null">
  2345. impurty_sum_result= #{impurtySumResult} ,
  2346. </if>
  2347. <if test="mineralResult != null">
  2348. mineral_result= #{mineralResult} ,
  2349. </if>
  2350. <if test="glutenWaterCountResult != null">
  2351. gluten_water_count_result= #{glutenWaterCountResult} ,
  2352. </if>
  2353. <if test="viscosityResult != null">
  2354. viscosity_result= #{viscosityResult} ,
  2355. </if>
  2356. <if test="huskedRationResult != null">
  2357. husked_ration_result= #{huskedRationResult} ,
  2358. </if>
  2359. <if test="fullGoodRationResult != null">
  2360. full_good_ration_result= #{fullGoodRationResult} ,
  2361. </if>
  2362. <if test="outHuskedRationResult != null">
  2363. out_husked_ration_result= #{outHuskedRationResult} ,
  2364. </if>
  2365. <if test="yellowPartResult != null">
  2366. yellow_part_result= #{yellowPartResult} ,
  2367. </if>
  2368. <if test="goodpartResult != null">
  2369. goodpart_result= #{goodpartResult} ,
  2370. </if>
  2371. <if test="hotDamageResult != null">
  2372. hot_damage_result= #{hotDamageResult} ,
  2373. </if>
  2374. <if test="boldfatIndexResult != null">
  2375. boldfat_index_result= #{boldfatIndexResult} ,
  2376. </if>
  2377. <if test="proteinSolutionRatioResult != null">
  2378. protein_solution_ratio_result= #{proteinSolutionRatioResult} ,
  2379. </if>
  2380. <if test="reviewer != null">
  2381. reviewer= #{reviewer} ,
  2382. </if>
  2383. <if test="applyCheckTime != null and applyCheckTime != ''">
  2384. apply_check_time= #{applyCheckTime} ,
  2385. </if>
  2386. <if test="checkTimeType != null">
  2387. check_time_type= #{checkTimeType} ,
  2388. </if>
  2389. <if test="checkResultTime != null">
  2390. check_result_time= #{checkResultTime} ,
  2391. </if>
  2392. <if test="storeQuality !=null">
  2393. store_quality = #{storeQuality} ,
  2394. </if>
  2395. <if test="isPest !=null">
  2396. is_pest = #{isPest} ,
  2397. </if>
  2398. <if test="deductedConditions !=null">
  2399. deducted_conditions = #{deductedConditions} ,
  2400. </if>
  2401. <if test="inputDeductedInfo !=null">
  2402. input_deducted_info = #{inputDeductedInfo} ,
  2403. </if>
  2404. <if test="waterDeductedInfo !=null">
  2405. water_deducted_info = #{waterDeductedInfo} ,
  2406. </if>
  2407. <if test="impurityDeductedInfo !=null">
  2408. impurity_deducted_info = #{impurityDeductedInfo} ,
  2409. </if>
  2410. <if test="otherDeductedInfo !=null">
  2411. other_deducted_info = #{otherDeductedInfo} ,
  2412. </if>
  2413. <if test="deductedPic !=null">
  2414. deducted_pic = #{deductedPic},
  2415. </if>
  2416. <if test="waterTipsFlag !=null">
  2417. water_tips_flag = #{waterTipsFlag},
  2418. </if>
  2419. <if test="syncFlag !=null">
  2420. sync_flag=#{syncFlag}
  2421. </if>
  2422. </set>
  2423. WHERE uuid = #{uuid}
  2424. </update>
  2425. <update id="update" parameterType="cn.ourwill.module.house.entity.daily.DailyRecordQualitycheck">
  2426. UPDATE daily_record_qualitycheck <set>
  2427. <if test="id != null">
  2428. id= #{id} ,
  2429. </if>
  2430. <if test="houseId != null">
  2431. house_id= #{houseId} ,
  2432. </if>
  2433. <if test="type != null">
  2434. `type`= #{type} ,
  2435. </if>
  2436. <if test="subType != null">
  2437. sub_type= #{subType} ,
  2438. </if>
  2439. <if test="checkTime != null">
  2440. check_time= #{checkTime} ,
  2441. </if>
  2442. <if test="checker != null">
  2443. checker= #{checker} ,
  2444. </if>
  2445. <if test="qualityIndex != null">
  2446. quality_index= #{qualityIndex} ,
  2447. </if>
  2448. <if test="badItems != null">
  2449. bad_items= #{badItems} ,
  2450. </if>
  2451. <if test="level != null">
  2452. `level`= #{level} ,
  2453. </if>
  2454. <if test="capacity != null">
  2455. capacity= #{capacity} ,
  2456. </if>
  2457. <if test="water != null">
  2458. water= #{water} ,
  2459. </if>
  2460. <if test="impurity != null">
  2461. impurity= #{impurity} ,
  2462. </if>
  2463. <if test="mineral != null">
  2464. mineral= #{mineral} ,
  2465. </if>
  2466. <if test="badpart != null">
  2467. badpart= #{badpart} ,
  2468. </if>
  2469. <if test="colorsmell != null">
  2470. colorsmell= #{colorsmell} ,
  2471. </if>
  2472. <if test="keeperAdvices != null">
  2473. keeper_advices= #{keeperAdvices} ,
  2474. </if>
  2475. <if test="keeperAdvicesTime != null">
  2476. keeper_advices_time= #{keeperAdvicesTime} ,
  2477. </if>
  2478. <if test="keeperAdvicesPaint !=null">
  2479. keeper_advices_paint = #{keeperAdvicesPaint},
  2480. </if>
  2481. <if test="chiefAdvices != null">
  2482. chief_advices= #{chiefAdvices} ,
  2483. </if>
  2484. <if test="chiefAdvicesTime != null">
  2485. chief_advices_time= #{chiefAdvicesTime} ,
  2486. </if>
  2487. <if test="chietAdvicesPaint !=null">
  2488. chiet_advices_paint = #{chietAdvicesPaint},
  2489. </if>
  2490. <if test="viceManagerAdvices != null">
  2491. vice_manager_advices= #{viceManagerAdvices} ,
  2492. </if>
  2493. <if test="viceManagerAdvicesTime != null">
  2494. vice_manager_advices_time= #{viceManagerAdvicesTime} ,
  2495. </if>
  2496. <if test="viceManagerAdvicesPaint !=null">
  2497. vice_manager_advices_paint = #{viceManagerAdvicesPaint},
  2498. </if>
  2499. <if test="managerAdvices != null">
  2500. manager_advices= #{managerAdvices} ,
  2501. </if>
  2502. <if test="managerAdvicesTime != null">
  2503. manager_advices_time= #{managerAdvicesTime} ,
  2504. </if>
  2505. <if test="managerAdvicesPaint !=null">
  2506. manager_advices_paint = #{managerAdvicesPaint},
  2507. </if>
  2508. <if test="improveResult != null">
  2509. improve_result= #{improveResult} ,
  2510. </if>
  2511. <if test="improveTime != null">
  2512. improve_time= #{improveTime} ,
  2513. </if>
  2514. <if test="improvePaint !=null">
  2515. improve_paint = #{improvePaint},
  2516. </if>
  2517. <if test="isFirstchecklevelRight != null">
  2518. is_firstchecklevel_right= #{isFirstchecklevelRight} ,
  2519. </if>
  2520. <if test="acceptUnite != null">
  2521. accept_unite= #{acceptUnite} ,
  2522. </if>
  2523. <if test="kind != null">
  2524. kind= #{kind} ,
  2525. </if>
  2526. <if test="property != null">
  2527. property= #{property} ,
  2528. </if>
  2529. <if test="inputTime != null">
  2530. input_time= #{inputTime} ,
  2531. </if>
  2532. <if test="number != null">
  2533. `number`= #{number} ,
  2534. </if>
  2535. <if test="location != null">
  2536. location= #{location} ,
  2537. </if>
  2538. <if test="keeper != null">
  2539. keeper= #{keeper} ,
  2540. </if>
  2541. <if test="harvestTime != null">
  2542. harvest_time= #{harvestTime} ,
  2543. </if>
  2544. <if test="goodpart != null">
  2545. goodpart= #{goodpart} ,
  2546. </if>
  2547. <if test="chooser != null">
  2548. chooser= #{chooser} ,
  2549. </if>
  2550. <if test="chooseTime != null and chooseTime != ''">
  2551. choose_time= #{chooseTime} ,
  2552. </if>
  2553. <if test="damageRatioSum != null">
  2554. damage_ratio_sum= #{damageRatioSum} ,
  2555. </if>
  2556. <if test="boldfatIndex != null">
  2557. boldfat_index= #{boldfatIndex} ,
  2558. </if>
  2559. <if test="checkType != null">
  2560. check_type= #{checkType} ,
  2561. </if>
  2562. <if test="hotDamage != null">
  2563. hot_damage= #{hotDamage} ,
  2564. </if>
  2565. <if test="proteinSolutionRatio != null">
  2566. protein_solution_ratio= #{proteinSolutionRatio} ,
  2567. </if>
  2568. <if test="qualityIndexResult != null">
  2569. quality_index_result= #{qualityIndexResult} ,
  2570. </if>
  2571. <if test="qualitySaveResult != null">
  2572. quality_save_result= #{qualitySaveResult} ,
  2573. </if>
  2574. <if test="badpartSum != null">
  2575. badpart_sum= #{badpartSum} ,
  2576. </if>
  2577. <if test="badpartMildewCount != null">
  2578. badpart_mildew_count= #{badpartMildewCount} ,
  2579. </if>
  2580. <if test="eatScore != null">
  2581. eat_score= #{eatScore} ,
  2582. </if>
  2583. <if test="fatIndex != null">
  2584. fat_index= #{fatIndex} ,
  2585. </if>
  2586. <if test="huskedRation != null">
  2587. husked_ration= #{huskedRation} ,
  2588. </if>
  2589. <if test="fullGoodRation != null">
  2590. full_good_ration= #{fullGoodRation} ,
  2591. </if>
  2592. <if test="mixRation != null">
  2593. mix_ration= #{mixRation} ,
  2594. </if>
  2595. <if test="yellowPart != null">
  2596. yellow_part= #{yellowPart} ,
  2597. </if>
  2598. <if test="outHuskedRation != null">
  2599. out_husked_ration= #{outHuskedRation} ,
  2600. </if>
  2601. <if test="carSequence != null">
  2602. car_sequence= #{carSequence} ,
  2603. </if>
  2604. <if test="bigSample != null">
  2605. big_sample= #{bigSample} ,
  2606. </if>
  2607. <if test="smallSample != null">
  2608. small_sample= #{smallSample} ,
  2609. </if>
  2610. <if test="pests != null">
  2611. pests= #{pests} ,
  2612. </if>
  2613. <if test="impurtySum != null">
  2614. impurty_sum= #{impurtySum} ,
  2615. </if>
  2616. <if test="bigImpurity != null">
  2617. big_impurity= #{bigImpurity} ,
  2618. </if>
  2619. <if test="smallImpurity != null">
  2620. small_impurity= #{smallImpurity} ,
  2621. </if>
  2622. <if test="colorRatio != null">
  2623. color_ratio= #{colorRatio} ,
  2624. </if>
  2625. <if test="hardIndex != null">
  2626. hard_index= #{hardIndex} ,
  2627. </if>
  2628. <if test="viscosity != null">
  2629. viscosity= #{viscosity} ,
  2630. </if>
  2631. <if test="becheckedUnite != null">
  2632. bechecked_unite= #{becheckedUnite} ,
  2633. </if>
  2634. <if test="samleName != null">
  2635. samle_name= #{samleName} ,
  2636. </if>
  2637. <if test="sampleCount != null">
  2638. sample_count= #{sampleCount} ,
  2639. </if>
  2640. <if test="packType != null">
  2641. pack_type= #{packType} ,
  2642. </if>
  2643. <if test="chooseLocation != null">
  2644. choose_location= #{chooseLocation} ,
  2645. </if>
  2646. <if test="glutenWaterCount != null">
  2647. gluten_water_count= #{glutenWaterCount} ,
  2648. </if>
  2649. <if test="remarks != null">
  2650. remarks= #{remarks} ,
  2651. </if>
  2652. <if test="writer != null">
  2653. writer= #{writer} ,
  2654. </if>
  2655. <if test="approver != null">
  2656. approver= #{approver} ,
  2657. </if>
  2658. <if test="checkResult != null">
  2659. check_result= #{checkResult} ,
  2660. </if>
  2661. <if test="checkResultInfo != null">
  2662. check_result_info= #{checkResultInfo} ,
  2663. </if>
  2664. <if test="cId != null">
  2665. c_id= #{cId} ,
  2666. </if>
  2667. <if test="uId != null">
  2668. u_id= #{uId} ,
  2669. </if>
  2670. <if test="cTime != null">
  2671. c_time= #{cTime} ,
  2672. </if>
  2673. <if test="uTime != null">
  2674. u_time= #{uTime} ,
  2675. </if>
  2676. <if test="version != null">
  2677. version= #{version} ,
  2678. </if>
  2679. <if test="uuid != null">
  2680. uuid= #{uuid} ,
  2681. </if>
  2682. <if test="impurityMineral != null">
  2683. impurity_mineral= #{impurityMineral} ,
  2684. </if>
  2685. <if test="mildewCount != null">
  2686. mildew_count= #{mildewCount} ,
  2687. </if>
  2688. <if test="abColorRatio != null">
  2689. ab_color_ratio= #{abColorRatio} ,
  2690. </if>
  2691. <if test="damageRatio != null">
  2692. damage_ratio= #{damageRatio} ,
  2693. </if>
  2694. <if test="hotDamageRatio != null">
  2695. hot_damage_ratio= #{hotDamageRatio} ,
  2696. </if>
  2697. <if test="cleanRice != null">
  2698. clean_rice= #{cleanRice} ,
  2699. </if>
  2700. <if test="huskedRiceWeight != null">
  2701. husked_rice_weight= #{huskedRiceWeight} ,
  2702. </if>
  2703. <if test="abTypeRice != null">
  2704. ab_type_rice= #{abTypeRice} ,
  2705. </if>
  2706. <if test="budShellRice != null">
  2707. bud_shell_rice= #{budShellRice} ,
  2708. </if>
  2709. <if test="huskedBadpartWeight != null">
  2710. husked_badpart_weight= #{huskedBadpartWeight} ,
  2711. </if>
  2712. <if test="capacityResult != null">
  2713. capacity_result= #{capacityResult} ,
  2714. </if>
  2715. <if test="badpartMildewCountResult != null">
  2716. badpart_mildew_count_result= #{badpartMildewCountResult} ,
  2717. </if>
  2718. <if test="impurityResult != null">
  2719. impurity_result= #{impurityResult} ,
  2720. </if>
  2721. <if test="fatIndexResult != null">
  2722. fat_index_result= #{fatIndexResult} ,
  2723. </if>
  2724. <if test="waterResult != null">
  2725. water_result= #{waterResult} ,
  2726. </if>
  2727. <if test="eatScoreResult != null">
  2728. eat_score_result= #{eatScoreResult} ,
  2729. </if>
  2730. <if test="aflatoxinB != null">
  2731. aflatoxin_b= #{aflatoxinB} ,
  2732. </if>
  2733. <if test="aflatoxinBResult != null">
  2734. aflatoxin_b_result= #{aflatoxinBResult} ,
  2735. </if>
  2736. <if test="phosphide != null">
  2737. phosphide= #{phosphide} ,
  2738. </if>
  2739. <if test="phosphideResult != null">
  2740. phosphide_result= #{phosphideResult} ,
  2741. </if>
  2742. <if test="checktypeResult != null">
  2743. checktype_result= #{checktypeResult} ,
  2744. </if>
  2745. <if test="colorsmellResult != null">
  2746. colorsmell_result= #{colorsmellResult} ,
  2747. </if>
  2748. <if test="badpartResult != null">
  2749. badpart_result= #{badpartResult} ,
  2750. </if>
  2751. <if test="impurtySumResult != null">
  2752. impurty_sum_result= #{impurtySumResult} ,
  2753. </if>
  2754. <if test="mineralResult != null">
  2755. mineral_result= #{mineralResult} ,
  2756. </if>
  2757. <if test="glutenWaterCountResult != null">
  2758. gluten_water_count_result= #{glutenWaterCountResult} ,
  2759. </if>
  2760. <if test="viscosityResult != null">
  2761. viscosity_result= #{viscosityResult} ,
  2762. </if>
  2763. <if test="huskedRationResult != null">
  2764. husked_ration_result= #{huskedRationResult} ,
  2765. </if>
  2766. <if test="fullGoodRationResult != null">
  2767. full_good_ration_result= #{fullGoodRationResult} ,
  2768. </if>
  2769. <if test="outHuskedRationResult != null">
  2770. out_husked_ration_result= #{outHuskedRationResult} ,
  2771. </if>
  2772. <if test="yellowPartResult != null">
  2773. yellow_part_result= #{yellowPartResult} ,
  2774. </if>
  2775. <if test="goodpartResult != null">
  2776. goodpart_result= #{goodpartResult} ,
  2777. </if>
  2778. <if test="hotDamageResult != null">
  2779. hot_damage_result= #{hotDamageResult} ,
  2780. </if>
  2781. <if test="boldfatIndexResult != null">
  2782. boldfat_index_result= #{boldfatIndexResult} ,
  2783. </if>
  2784. <if test="proteinSolutionRatioResult != null">
  2785. protein_solution_ratio_result= #{proteinSolutionRatioResult} ,
  2786. </if>
  2787. <if test="reviewer != null">
  2788. reviewer= #{reviewer} ,
  2789. </if>
  2790. <if test="applyCheckTime != null and applyCheckTime != ''">
  2791. apply_check_time= #{applyCheckTime} ,
  2792. </if>
  2793. <if test="checkTimeType != null">
  2794. check_time_type= #{checkTimeType} ,
  2795. </if>
  2796. <if test="checkResultTime != null">
  2797. check_result_time= #{checkResultTime} ,
  2798. </if>
  2799. <if test="storeQuality !=null">
  2800. store_quality = #{storeQuality} ,
  2801. </if>
  2802. <if test="isPest !=null">
  2803. is_pest = #{isPest} ,
  2804. </if>
  2805. <if test="deductedConditions !=null">
  2806. deducted_conditions = #{deductedConditions} ,
  2807. </if>
  2808. <if test="inputDeductedInfo !=null">
  2809. input_deducted_info = #{inputDeductedInfo} ,
  2810. </if>
  2811. <if test="waterDeductedInfo !=null">
  2812. water_deducted_info = #{waterDeductedInfo} ,
  2813. </if>
  2814. <if test="impurityDeductedInfo !=null">
  2815. impurity_deducted_info = #{impurityDeductedInfo} ,
  2816. </if>
  2817. <if test="otherDeductedInfo !=null">
  2818. other_deducted_info = #{otherDeductedInfo} ,
  2819. </if>
  2820. <if test="deductedPic !=null">
  2821. deducted_pic = #{deductedPic},
  2822. </if>
  2823. <if test="waterTipsFlag !=null">
  2824. water_tips_flag = #{waterTipsFlag}
  2825. </if>
  2826. </set>
  2827. WHERE id = #{id}
  2828. </update>
  2829. <delete id="deleteById" parameterType="java.lang.Long">
  2830. DELETE FROM daily_record_qualitycheck WHERE id = #{id}
  2831. </delete>
  2832. <delete id="deleteByIds" parameterType="java.util.List">
  2833. DELETE FROM daily_record_qualitycheck WHERE id IN
  2834. <foreach collection="list" index="index" item="item" open="(" separator="," close=")">
  2835. #{item}
  2836. </foreach>
  2837. </delete>
  2838. <select id="getByHouseIdAndType" resultMap="baseMap">
  2839. SELECT
  2840. <include refid="columns"/>
  2841. FROM daily_record_qualitycheck a
  2842. <include refid="joinCols"/>
  2843. WHERE a.house_id = #{houseId}
  2844. AND a.type=#{type}
  2845. order by id DESC
  2846. limit 1
  2847. </select>
  2848. <select id="findByHouseIdNoPage" resultMap="baseMap">
  2849. SELECT *
  2850. FROM daily_record_qualitycheck a
  2851. where house_id=#{houseId}
  2852. <if test="cTime != null">
  2853. AND check_time <![CDATA[ <= ]]> #{cTime}
  2854. </if>
  2855. </select>
  2856. <delete id="deleteQualitycheckByHouseId">
  2857. DELETE FROM daily_record_qualitycheck
  2858. WHERE house_id = #{houseId}
  2859. <if test="cTime != null">
  2860. AND check_time <![CDATA[ <= ]]> #{cTime}
  2861. </if>
  2862. </delete>
  2863. </mapper>