47b54dcf6f4a0fe71ab45b74d363c9962b751d3b.svn-base 155 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <!-- mapper标签要指定namespace属性,不然会报错,可看做包名-->
  6. <mapper namespace="QCM.COMMUNAL.OrderSqMapper">
  7. <insert id = "insertqcmjudgechemcial" parameterType="QCM.COMMUNAL.VO.QcmJudgeChemical">
  8. insert into QCM_JUDGE_CHEMICAL
  9. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  10. <if test = " qjc.cic_id!= null " >cic_id,</if>
  11. <if test = " qjc.design_key!= null " >design_key,</if>
  12. <if test = " qjc.psc!= null " >psc,</if>
  13. <if test = " qjc.heat_no!= null " >heat_no,</if>
  14. <if test = " qjc.batch_no!= null " >batch_no,</if>
  15. <if test = " qjc.inspection_lot!= null " >inspection_lot,</if>
  16. <if test = " qjc.smp_no!= null " >smp_no,</if>
  17. <if test = " qjc.board_no!= null " >board_no,</if>
  18. <if test = " qjc.material_no!= null " >material_no,</if>
  19. <if test = " qjc.delivery_state_code!= null " >delivery_state_code,</if>
  20. <if test = " qjc.delivery_state_desc!= null " >delivery_state_desc,</if>
  21. <if test = " qjc.thick!= null " >thick,</if>
  22. <if test = " qjc.width!= null " >width,</if>
  23. <if test = " qjc.length!= null " >length,</if>
  24. <if test = " qjc.grade_code!= null " >grade_code,</if>
  25. <if test = " qjc.grade_name!= null " >grade_name,</if>
  26. <if test = " qjc.assay_no_cp!= null " >assay_no_cp,</if>
  27. <if test = " qjc.assay_no_rl!= null " >assay_no_rl,</if>
  28. <if test = " qjc.pline_code!= null " >pline_code,</if>
  29. <if test = " qjc.pline_name!= null " >pline_name,</if>
  30. <if test = " qjc.cic_result_code!= null " >cic_result_code,</if>
  31. <if test = " qjc.cic_result_desc!= null " >cic_result_desc,</if>
  32. <if test = " qjc.cic_memo!= null " >cic_memo,</if>
  33. <if test = " qjc.judge_name!= null " >judge_name,</if>
  34. <if test = " qjc.judge_name!= null " >judge_ttime,</if>
  35. <if test = " qjc.psc_desc!= null " >psc_desc,</if>
  36. <if test = " qjc.prod_code!= null " >prod_code,</if>
  37. <if test = " qjc.prod_name!= null " >prod_name,</if>
  38. <if test = " qjc.steel_code!= null " >steel_code,</if>
  39. <if test = " qjc.steel_name!= null " >steel_name,</if>
  40. <if test = " qjc.std_code!= null " >std_code,</if>
  41. <if test = " qjc.std_name!= null " >std_name,</if>
  42. <if test = " qjc.judge_name != null">create_name,</if>
  43. </trim> values
  44. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  45. <if test = " qjc.cic_id!= null " >#{qjc.cic_id,jdbcType =VARCHAR},</if>
  46. <if test = " qjc.design_key!= null " >#{qjc.design_key,jdbcType =VARCHAR},</if>
  47. <if test = " qjc.psc!= null " >#{qjc.psc,jdbcType =VARCHAR},</if>
  48. <if test = " qjc.heat_no!= null " >#{qjc.heat_no,jdbcType =VARCHAR},</if>
  49. <if test = " qjc.batch_no!= null " >#{qjc.batch_no,jdbcType =VARCHAR},</if>
  50. <if test = " qjc.inspection_lot!= null " >#{qjc.inspection_lot,jdbcType =VARCHAR},</if>
  51. <if test = " qjc.smp_no!= null " >#{qjc.smp_no,jdbcType =VARCHAR},</if>
  52. <if test = " qjc.board_no!= null " >#{qjc.board_no,jdbcType =VARCHAR},</if>
  53. <if test = " qjc.material_no!= null " >#{qjc.material_no,jdbcType =VARCHAR},</if>
  54. <if test = " qjc.delivery_state_code!= null " >#{qjc.delivery_state_code,jdbcType =VARCHAR},</if>
  55. <if test = " qjc.delivery_state_desc!= null " >#{qjc.delivery_state_desc,jdbcType =VARCHAR},</if>
  56. <if test = " qjc.thick!= null " >#{qjc.thick,jdbcType =NUMERIC},</if>
  57. <if test = " qjc.width!= null " >#{qjc.width,jdbcType =NUMERIC},</if>
  58. <if test = " qjc.length!= null " >#{qjc.length,jdbcType =NUMERIC},</if>
  59. <if test = " qjc.grade_code!= null " >#{qjc.grade_code,jdbcType =VARCHAR},</if>
  60. <if test = " qjc.grade_name!= null " >#{qjc.grade_name,jdbcType =VARCHAR},</if>
  61. <if test = " qjc.assay_no_cp!= null " >#{qjc.assay_no_cp,jdbcType =VARCHAR},</if>
  62. <if test = " qjc.assay_no_rl!= null " >#{qjc.assay_no_rl,jdbcType =VARCHAR},</if>
  63. <if test = " qjc.pline_code!= null " >#{qjc.pline_code,jdbcType =VARCHAR},</if>
  64. <if test = " qjc.pline_name!= null " >#{qjc.pline_name,jdbcType =VARCHAR},</if>
  65. <if test = " qjc.cic_result_code!= null " >#{qjc.cic_result_code,jdbcType =VARCHAR},</if>
  66. <if test = " qjc.cic_result_desc!= null " >#{qjc.cic_result_desc,jdbcType =VARCHAR},</if>
  67. <if test = " qjc.cic_memo!= null " >#{qjc.cic_memo,jdbcType =VARCHAR},</if>
  68. <if test = " qjc.judge_name!= null " >#{qjc.judge_name,jdbcType =VARCHAR},</if>
  69. <if test = " qjc.judge_name!= null " >sysdate,</if>
  70. <if test = " qjc.psc_desc!= null " >#{qjc.psc_desc,jdbcType =VARCHAR},</if>
  71. <if test = " qjc.prod_code!= null " >#{qjc.prod_code,jdbcType =VARCHAR},</if>
  72. <if test = " qjc.prod_name!= null " >#{qjc.prod_name,jdbcType =VARCHAR},</if>
  73. <if test = " qjc.steel_code!= null " >#{qjc.steel_code,jdbcType =VARCHAR},</if>
  74. <if test = " qjc.steel_name!= null " >#{qjc.steel_name,jdbcType =VARCHAR},</if>
  75. <if test = " qjc.std_code!= null " >#{qjc.std_code,jdbcType =VARCHAR},</if>
  76. <if test = " qjc.std_name!= null " >#{qjc.std_name,jdbcType =VARCHAR},</if>
  77. <if test = " qjc.judge_name != null">#{qjc.judge_name,jdbcType =VARCHAR},</if>
  78. </trim>
  79. </insert>
  80. <update id= "updateQcmJhySampleROrds" parameterType="QCM.COMMUNAL.VO.QcmJhySampleROrd">
  81. update QCM_JHY_SAMPLE_R_ORD
  82. <trim prefix="set" suffixOverrides=",">
  83. <if test="qsrd.judge_status!=null">
  84. JUDGE_STATUS=#{qsrd.judge_status},
  85. </if>
  86. <if test="qsrd.assay_no_cp!=null">
  87. ASSAY_NO_CP=#{qsrd.assay_no_cp},
  88. </if>
  89. <if test="qsrd.assay_no_rl!=null">
  90. ASSAY_NO_RL=#{qsrd.assay_no_rl},
  91. </if>
  92. <if test="qsrd.phy_id!=null">
  93. PHY_ID=#{qsrd.phy_id},
  94. </if>
  95. <if test="qsrd.cic_id!=null">
  96. CIC_ID=#{qsrd.cic_id},
  97. </if>
  98. <if test="qsrd.judge_result_code!=null">
  99. JUDGE_RESULT_CODE=#{qsrd.judge_result_code},
  100. </if>
  101. <if test="qsrd.judge_result_desc!=null">
  102. JUDGE_RESULT_DESC=#{qsrd.judge_result_desc},
  103. </if>
  104. <if test="qsrd.judge_name!=null">
  105. JUDGE_NAME=#{qsrd.judge_name},
  106. </if>
  107. <if test="qsrd.judge_name!=null">
  108. JUDGE_TIME=sysdate,
  109. </if>
  110. <if test="qsrd.judge_memo!=null">
  111. JUDGE_MEMO=#{qsrd.judge_memo},
  112. </if>
  113. </trim>
  114. <where>
  115. 1=1
  116. <!-- AND DESIGN_KEY=#{qsrd.design_key} -->
  117. AND SMP_NO=#{qsrd.smp_no}
  118. <!-- AND PSC=#{qsrd.psc} -->
  119. </where>
  120. </update>
  121. <!-- <update id= "updateQcmJudgePhysical" parameterType="QCM.COMMUNAL.VO.QcmJudgePhysical">
  122. update qcm_judge_physical
  123. <trim prefix="set" suffixOverrides=",">
  124. <if test="qsrd.phy_result_code!=null">
  125. phy_result_code=#{qsrd.phy_result_code},
  126. </if>
  127. <if test="qsrd.phy_result_desc!=null">
  128. phy_result_desc=#{qsrd.phy_result_desc},
  129. </if>
  130. </trim>
  131. <where>
  132. 1=1
  133. AND DESIGN_KEY=#{qsrd.design_key}
  134. AND phy_id=#{qsrd.phy_id}
  135. AND PSC=#{qsrd.psc}
  136. </where>
  137. </update>
  138. <update id= "updateQcmJudgeChemical" parameterType="QCM.COMMUNAL.VO.QcmJudgeChemical">
  139. update qcm_judge_chemical
  140. <trim prefix="set" suffixOverrides=",">
  141. <if test="qsrd.cic_result_code!=null">
  142. cic_result_code=#{qsrd.cic_result_code},
  143. </if>
  144. <if test="qsrd.cic_result_desc!=null">
  145. cic_result_desc=#{qsrd.cic_result_desc},
  146. </if>
  147. </trim>
  148. <where>
  149. 1=1
  150. AND DESIGN_KEY=#{qsrd.design_key}
  151. AND cic_id=#{qsrd.cic_id}
  152. AND PSC=#{qsrd.psc}
  153. </where>
  154. </update> -->
  155. <update id= "UpdateJugeResultJ" parameterType="QCM.COMMUNAL.VO.QcmJudgeCoilResult">
  156. update qcm_judge_coil_result
  157. <trim prefix="set" suffixOverrides=",">
  158. <if test="q.chemresult!=null">
  159. chemresult=#{q.chemresult},
  160. </if>
  161. <if test="q.sizeresult!=null">
  162. sizeresult=#{q.sizeresult},
  163. </if>
  164. <if test="q.judgeresult!=null">
  165. judgeresult=#{q.judgeresult},
  166. </if>
  167. <if test="q.physresult!=null">
  168. physresult=#{q.physresult},
  169. </if>
  170. <if test="q.phyfstsresult!=null">
  171. phyfstsresult=#{q.phyfstsresult},
  172. </if>
  173. <if test="q.spyresult!=null">
  174. spyresult=#{q.spyresult},
  175. </if>
  176. <if test="q.surfaceresult!=null">
  177. surfaceresult=#{q.surfaceresult},
  178. </if>
  179. <if test="q.up_surface_result!=null">
  180. up_surface_result=#{q.up_surface_result},
  181. </if>
  182. <if test="q.ud_surface_result!=null">
  183. ud_surface_result=#{q.ud_surface_result},
  184. </if>
  185. <if test="q.marginal_result!=null">
  186. marginal_result=#{q.marginal_result},
  187. </if>
  188. <if test="q.chemresult_desc!=null">
  189. chemresult_desc=#{q.chemresult_desc},
  190. </if>
  191. <if test="q.sizeresult_desc!=null">
  192. sizeresult_desc=#{q.sizeresult_desc},
  193. </if>
  194. <if test="q.judgeresult_desc!=null">
  195. judgeresult_desc=#{q.judgeresult_desc},
  196. </if>
  197. <if test="q.physresult_desc!=null">
  198. physresult_desc=#{q.physresult_desc},
  199. </if>
  200. <if test="q.phyfstsresult_desc!=null">
  201. phyfstsresult_desc=#{q.phyfstsresult_desc},
  202. </if>
  203. <if test="q.spyresult_desc!=null">
  204. spyresult_desc=#{q.spyresult_desc},
  205. </if>
  206. <if test="q.surfaceresult_desc!=null">
  207. surfaceresult_desc=#{q.surfaceresult_desc},
  208. </if>
  209. <if test="q.up_surface_result_desc!=null">
  210. up_surface_result_desc=#{q.up_surface_result_desc},
  211. </if>
  212. <if test="q.ud_surface_result_desc!=null">
  213. ud_surface_result_desc=#{q.ud_surface_result_desc},
  214. </if>
  215. <if test="q.marginal_result_desc!=null">
  216. marginal_result_desc=#{q.marginal_result_desc},
  217. </if>
  218. <if test="q.up_surface_result_id_desc!=null">
  219. up_surface_result_id_desc=#{q.up_surface_result_id_desc},
  220. </if>
  221. <if test="q.ud_surface_result_id_desc!=null">
  222. ud_surface_result_id_desc=#{q.ud_surface_result_id_desc},
  223. </if>
  224. <if test="q.marginal_result_id_desc!=null">
  225. marginal_result_id_desc=#{q.marginal_result_id_desc},
  226. </if>
  227. <if test="q.chemid!=null">
  228. chemid=#{q.chemid},
  229. </if>
  230. <if test="q.physid!=null">
  231. physid=#{q.physid},
  232. </if>
  233. <if test="q.phyfstsid!=null">
  234. phyfstsid=#{q.phyfstsid},
  235. </if>
  236. <if test="q.surfaceid!=null">
  237. surfaceid=#{q.surfaceid},
  238. </if>
  239. <if test="q.spyid!=null">
  240. spyid=#{q.spyid},
  241. </if>
  242. <if test="q.sizeid!=null">
  243. sizeid=#{q.sizeid},
  244. </if>
  245. <if test="q.judgeid!=null">
  246. judgeid=#{q.judgeid},
  247. </if>
  248. <if test="q.cic_is_lock!=null">
  249. cic_is_lock=#{q.cic_is_lock},
  250. </if>
  251. <if test="q.pic_is_lock!=null">
  252. pic_is_lock=#{q.pic_is_lock},
  253. </if>
  254. <if test="q.sic_is_lock!=null">
  255. sic_is_lock=#{q.sic_is_lock},
  256. </if>
  257. <if test="q.dic_is_lock!=null">
  258. dic_is_lock=#{q.dic_is_lock},
  259. </if>
  260. <if test="q.sfu_is_lock!=null">
  261. sfu_is_lock=#{q.sfu_is_lock},
  262. </if>
  263. <if test="q.sfd_is_lock!=null">
  264. sfd_is_lock=#{q.sfd_is_lock},
  265. </if>
  266. <if test="q.sfe_is_lock!=null">
  267. sfe_is_lock=#{q.sfe_is_lock},
  268. </if>
  269. <if test="q.r_chemid!=null">
  270. r_chemid=#{q.r_chemid},
  271. </if>
  272. <if test="q.r_chemresult!=null">
  273. r_chemresult=#{q.r_chemresult},
  274. </if>
  275. <if test="q.r_chemresult_desc!=null">
  276. r_chemresult_desc=#{q.r_chemresult_desc},
  277. </if>
  278. <if test="q.r_cic_is_lock!=null">
  279. r_cic_is_lock=#{q.r_cic_is_lock},
  280. </if>
  281. <if test="q.new_inspection_lot!=null">
  282. inspection_lot=#{q.new_inspection_lot},
  283. </if>
  284. <if test="q.tic_id!=null">
  285. tic_id=#{q.tic_id},
  286. </if>
  287. <if test="q.tic_result!=null">
  288. tic_result=#{q.tic_result},
  289. </if>
  290. <if test="q.tic_result_desc!=null">
  291. tic_result_desc=#{q.tic_result_desc},
  292. </if>
  293. <if test="q.tic_is_lock!=null">
  294. tic_is_lock=#{q.tic_is_lock},
  295. </if>
  296. </trim>
  297. <where>
  298. 1=1
  299. and judgeresult = '0'
  300. <if test="q.coil_no!=null">
  301. AND coil_no=#{q.coil_no}
  302. </if>
  303. <if test="q.inspection_lot!=null">
  304. AND inspection_lot=#{q.inspection_lot}
  305. </if>
  306. </where>
  307. </update>
  308. <update id= "UpdateJugeResultY" parameterType="QCM.COMMUNAL.VO.QcmJudgeYtCoilResult">
  309. update qcm_judge_yt_coil_result
  310. <trim prefix="set" suffixOverrides=",">
  311. <if test="q.chemresult!=null">
  312. chemresult=#{q.chemresult},
  313. </if>
  314. <if test="q.sizeresult!=null">
  315. sizeresult=#{q.sizeresult},
  316. </if>
  317. <if test="q.judgeresult!=null">
  318. judgeresult=#{q.judgeresult},
  319. </if>
  320. <if test="q.physresult!=null">
  321. physresult=#{q.physresult},
  322. </if>
  323. <if test="q.phyfstsresult!=null">
  324. phyfstsresult=#{q.phyfstsresult},
  325. </if>
  326. <if test="q.spyresult!=null">
  327. spyresult=#{q.spyresult},
  328. </if>
  329. <if test="q.surfaceresult!=null">
  330. surfaceresult=#{q.surfaceresult},
  331. </if>
  332. <if test="q.up_surface_result!=null">
  333. up_surface_result=#{q.up_surface_result},
  334. </if>
  335. <if test="q.ud_surface_result!=null">
  336. ud_surface_result=#{q.ud_surface_result},
  337. </if>
  338. <if test="q.marginal_result!=null">
  339. marginal_result=#{q.marginal_result},
  340. </if>
  341. <if test="q.chemresult_desc!=null">
  342. chemresult_desc=#{q.chemresult_desc},
  343. </if>
  344. <if test="q.sizeresult_desc!=null">
  345. sizeresult_desc=#{q.sizeresult_desc},
  346. </if>
  347. <if test="q.judgeresult_desc!=null">
  348. judgeresult_desc=#{q.judgeresult_desc},
  349. </if>
  350. <if test="q.physresult_desc!=null">
  351. physresult_desc=#{q.physresult_desc},
  352. </if>
  353. <if test="q.phyfstsresult_desc!=null">
  354. phyfstsresult_desc=#{q.phyfstsresult_desc},
  355. </if>
  356. <if test="q.spyresult_desc!=null">
  357. spyresult_desc=#{q.spyresult_desc},
  358. </if>
  359. <if test="q.surfaceresult_desc!=null">
  360. surfaceresult_desc=#{q.surfaceresult_desc},
  361. </if>
  362. <if test="q.up_surface_result_desc!=null">
  363. up_surface_result_desc=#{q.up_surface_result_desc},
  364. </if>
  365. <if test="q.ud_surface_result_desc!=null">
  366. ud_surface_result_desc=#{q.ud_surface_result_desc},
  367. </if>
  368. <if test="q.marginal_result_desc!=null">
  369. marginal_result_desc=#{q.marginal_result_desc},
  370. </if>
  371. <if test="q.up_surface_result_id_desc!=null">
  372. up_surface_result_id_desc=#{q.up_surface_result_id_desc},
  373. </if>
  374. <if test="q.ud_surface_result_id_desc!=null">
  375. ud_surface_result_id_desc=#{q.ud_surface_result_id_desc},
  376. </if>
  377. <if test="q.marginal_result_id_desc!=null">
  378. marginal_result_id_desc=#{q.marginal_result_id_desc},
  379. </if>
  380. <if test="q.chemid!=null">
  381. chemid=#{q.chemid},
  382. </if>
  383. <if test="q.physid!=null">
  384. physid=#{q.physid},
  385. </if>
  386. <if test="q.phyfstsid!=null">
  387. phyfstsid=#{q.phyfstsid},
  388. </if>
  389. <if test="q.surfaceid!=null">
  390. surfaceid=#{q.surfaceid},
  391. </if>
  392. <if test="q.spyid!=null">
  393. spyid=#{q.spyid},
  394. </if>
  395. <if test="q.sizeid!=null">
  396. sizeid=#{q.sizeid},
  397. </if>
  398. <if test="q.judgeid!=null">
  399. judgeid=#{q.judgeid},
  400. </if>
  401. <if test="q.cic_is_lock!=null">
  402. cic_is_lock=#{q.cic_is_lock},
  403. </if>
  404. <if test="q.pic_is_lock!=null">
  405. pic_is_lock=#{q.pic_is_lock},
  406. </if>
  407. <if test="q.sic_is_lock!=null">
  408. sic_is_lock=#{q.sic_is_lock},
  409. </if>
  410. <if test="q.dic_is_lock!=null">
  411. dic_is_lock=#{q.dic_is_lock},
  412. </if>
  413. <if test="q.sfu_is_lock!=null">
  414. sfu_is_lock=#{q.sfu_is_lock},
  415. </if>
  416. <if test="q.sfd_is_lock!=null">
  417. sfd_is_lock=#{q.sfd_is_lock},
  418. </if>
  419. <if test="q.sfe_is_lock!=null">
  420. sfe_is_lock=#{q.sfe_is_lock},
  421. </if>
  422. <if test="q.r_chemid!=null">
  423. r_chemid=#{q.r_chemid},
  424. </if>
  425. <if test="q.r_chemresult!=null">
  426. r_chemresult=#{q.r_chemresult},
  427. </if>
  428. <if test="q.r_chemresult_desc!=null">
  429. r_chemresult_desc=#{q.r_chemresult_desc},
  430. </if>
  431. <if test="q.r_cic_is_lock!=null">
  432. r_cic_is_lock=#{q.r_cic_is_lock},
  433. </if>
  434. <if test="q.new_inspection_lot!=null">
  435. inspection_lot=#{q.new_inspection_lot},
  436. </if>
  437. <if test="q.tic_id!=null">
  438. tic_id=#{q.tic_id},
  439. </if>
  440. <if test="q.tic_result!=null">
  441. tic_result=#{q.tic_result},
  442. </if>
  443. <if test="q.tic_result_desc!=null">
  444. tic_result_desc=#{q.tic_result_desc},
  445. </if>
  446. <if test="q.tic_is_lock!=null">
  447. tic_is_lock=#{q.tic_is_lock},
  448. </if>
  449. </trim>
  450. <where>
  451. 1=1
  452. and judgeresult = '0'
  453. <if test="q.coil_no!=null">
  454. AND coil_no=#{q.coil_no}
  455. </if>
  456. <if test="q.inspection_lot!=null">
  457. AND inspection_lot=#{q.inspection_lot}
  458. </if>
  459. </where>
  460. </update>
  461. <update id= "UpdateJugeResultB" parameterType="QCM.COMMUNAL.VO.ZjResultAll">
  462. update zj_result_all@xgcx
  463. <trim prefix="set" suffixOverrides=",">
  464. <if test="q.chemresult!=null">
  465. chemresult=#{q.chemresult},
  466. </if>
  467. <if test="q.sizeresult!=null">
  468. sizeresult=#{q.sizeresult},
  469. </if>
  470. <if test="q.judgeresult!=null">
  471. judgeresult=#{q.judgeresult},
  472. </if>
  473. <if test="q.physresult!=null">
  474. physresult=#{q.physresult},
  475. </if>
  476. <if test="q.phyfstsresult!=null">
  477. phyfstsresult=#{q.phyfstsresult},
  478. </if>
  479. <if test="q.spyresult!=null">
  480. spyresult=#{q.spyresult},
  481. </if>
  482. <if test="q.surfaceresult!=null">
  483. surfaceresult=#{q.surfaceresult},
  484. </if>
  485. <if test="q.surfaceresult_desc!=null">
  486. surfaceresult_desc=#{q.surfaceresult_desc},
  487. </if>
  488. <if test="q.up_surface_result!=null">
  489. up_surface_result=#{q.up_surface_result},
  490. </if>
  491. <if test="q.ud_surface_result!=null">
  492. ud_surface_result=#{q.ud_surface_result},
  493. </if>
  494. <if test="q.marginal_result!=null">
  495. marginal_result=#{q.marginal_result},
  496. </if>
  497. <if test="q.chemresult_desc!=null">
  498. chemresult_desc=#{q.chemresult_desc},
  499. </if>
  500. <if test="q.sizeresult_desc!=null">
  501. sizeresult_desc=#{q.sizeresult_desc},
  502. </if>
  503. <if test="q.judgeresult_desc!=null">
  504. judgeresult_desc=#{q.judgeresult_desc},
  505. </if>
  506. <if test="q.physresult_desc!=null">
  507. physresult_desc=#{q.physresult_desc},
  508. </if>
  509. <if test="q.phyfstsresult_desc!=null">
  510. phyfstsresult_desc=#{q.phyfstsresult_desc},
  511. </if>
  512. <if test="q.spyresult_desc!=null">
  513. spyresult_desc=#{q.spyresult_desc},
  514. </if>
  515. <!-- <if test="q.surfaceresult_desc!=null">
  516. surfaceresult_desc=#{q.surfaceresult_desc},
  517. </if> -->
  518. <if test="q.up_surface_result_desc!=null">
  519. up_surface_result_desc=#{q.up_surface_result_desc},
  520. </if>
  521. <if test="q.ud_surface_result_desc!=null">
  522. ud_surface_result_desc=#{q.ud_surface_result_desc},
  523. </if>
  524. <if test="q.marginal_result_desc!=null">
  525. marginal_result_desc=#{q.marginal_result_desc},
  526. </if>
  527. <if test="q.up_surface_result_id_desc!=null">
  528. up_surface_result_id_desc=#{q.up_surface_result_id_desc},
  529. </if>
  530. <if test="q.ud_surface_result_id_desc!=null">
  531. ud_surface_result_id_desc=#{q.ud_surface_result_id_desc},
  532. </if>
  533. <if test="q.marginal_result_id_desc!=null">
  534. marginal_result_id_desc=#{q.marginal_result_id_desc},
  535. </if>
  536. <if test="q.chemid!=null">
  537. chemid=#{q.chemid},
  538. </if>
  539. <if test="q.physid!=null">
  540. physid=#{q.physid},
  541. </if>
  542. <if test="q.phyfstsid!=null">
  543. phyfstsid=#{q.phyfstsid},
  544. </if>
  545. <if test="q.surfaceid!=null">
  546. surfaceid=#{q.surfaceid},
  547. </if>
  548. <if test="q.spyid!=null">
  549. spyid=#{q.spyid},
  550. </if>
  551. <if test="q.sizeid!=null">
  552. sizeid=#{q.sizeid},
  553. </if>
  554. <if test="q.judgeid!=null">
  555. judgeid=#{q.judgeid},
  556. </if>
  557. <if test="q.cic_is_lock!=null">
  558. cic_is_lock=#{q.cic_is_lock},
  559. </if>
  560. <if test="q.pic_is_lock!=null">
  561. pic_is_lock=#{q.pic_is_lock},
  562. </if>
  563. <if test="q.sic_is_lock!=null">
  564. sic_is_lock=#{q.sic_is_lock},
  565. </if>
  566. <if test="q.dic_is_lock!=null">
  567. dic_is_lock=#{q.dic_is_lock},
  568. </if>
  569. <if test="q.sfu_is_lock!=null">
  570. sfu_is_lock=#{q.sfu_is_lock},
  571. </if>
  572. <if test="q.sfd_is_lock!=null">
  573. sfd_is_lock=#{q.sfd_is_lock},
  574. </if>
  575. <if test="q.sfe_is_lock!=null">
  576. sfe_is_lock=#{q.sfe_is_lock},
  577. </if>
  578. <if test="q.r_chemid!=null">
  579. r_chemid=#{q.r_chemid},
  580. </if>
  581. <if test="q.r_chemresult!=null">
  582. r_chemresult=#{q.r_chemresult},
  583. </if>
  584. <if test="q.r_chemresult_desc!=null">
  585. r_chemresult_desc=#{q.r_chemresult_desc},
  586. </if>
  587. <if test="q.r_cic_is_lock!=null">
  588. r_cic_is_lock=#{q.r_cic_is_lock},
  589. </if>
  590. <if test="q.new_inspection_lot!=null">
  591. billetid_jy=#{q.new_inspection_lot},
  592. </if>
  593. <if test="q.fst_judgeresult!=null">
  594. fst_judgeresult=#{q.fst_judgeresult},
  595. </if>
  596. <if test="q.fst_judgeresult_desc!=null">
  597. fst_judgeresult_desc=#{q.fst_judgeresult_desc},
  598. </if>
  599. </trim>
  600. <where>
  601. 1=1
  602. and judgeresult = '0'
  603. <if test="q.billetid!=null">
  604. AND billetid=#{q.billetid}
  605. </if>
  606. <if test="q.billetid_jy!=null">
  607. AND billetid_jy=#{q.billetid_jy}
  608. </if>
  609. </where>
  610. </update>
  611. <update id= "UpdateJugeResultB1" parameterType="QCM.COMMUNAL.VO.ZjResultAll">
  612. update zj_result_all@xgcx
  613. <trim prefix="set" suffixOverrides=",">
  614. <if test="q.chemresult!=null">
  615. chemresult=#{q.chemresult},
  616. </if>
  617. <if test="q.sizeresult!=null">
  618. sizeresult=#{q.sizeresult},
  619. </if>
  620. <if test="q.judgeresult!=null">
  621. judgeresult=#{q.judgeresult},
  622. </if>
  623. <if test="q.physresult!=null">
  624. physresult=#{q.physresult},
  625. </if>
  626. <if test="q.phyfstsresult!=null">
  627. phyfstsresult=#{q.phyfstsresult},
  628. </if>
  629. <if test="q.spyresult!=null">
  630. spyresult=#{q.spyresult},
  631. </if>
  632. <if test="q.surfaceresult!=null">
  633. surfaceresult=#{q.surfaceresult},
  634. </if>
  635. <if test="q.surfaceresult_desc!=null">
  636. surfaceresult_desc=#{q.surfaceresult_desc},
  637. </if>
  638. <if test="q.up_surface_result!=null">
  639. up_surface_result=#{q.up_surface_result},
  640. </if>
  641. <if test="q.ud_surface_result!=null">
  642. ud_surface_result=#{q.ud_surface_result},
  643. </if>
  644. <if test="q.marginal_result!=null">
  645. marginal_result=#{q.marginal_result},
  646. </if>
  647. <if test="q.chemresult_desc!=null">
  648. chemresult_desc=#{q.chemresult_desc},
  649. </if>
  650. <if test="q.sizeresult_desc!=null">
  651. sizeresult_desc=#{q.sizeresult_desc},
  652. </if>
  653. <if test="q.judgeresult_desc!=null">
  654. judgeresult_desc=#{q.judgeresult_desc},
  655. </if>
  656. <if test="q.physresult_desc!=null">
  657. physresult_desc=#{q.physresult_desc},
  658. </if>
  659. <if test="q.phyfstsresult_desc!=null">
  660. phyfstsresult_desc=#{q.phyfstsresult_desc},
  661. </if>
  662. <if test="q.spyresult_desc!=null">
  663. spyresult_desc=#{q.spyresult_desc},
  664. </if>
  665. <!-- <if test="q.surfaceresult_desc!=null">
  666. surfaceresult_desc=#{q.surfaceresult_desc},
  667. </if> -->
  668. <if test="q.up_surface_result_desc!=null">
  669. up_surface_result_desc=#{q.up_surface_result_desc},
  670. </if>
  671. <if test="q.ud_surface_result_desc!=null">
  672. ud_surface_result_desc=#{q.ud_surface_result_desc},
  673. </if>
  674. <if test="q.marginal_result_desc!=null">
  675. marginal_result_desc=#{q.marginal_result_desc},
  676. </if>
  677. <if test="q.up_surface_result_id_desc!=null">
  678. up_surface_result_id_desc=#{q.up_surface_result_id_desc},
  679. </if>
  680. <if test="q.ud_surface_result_id_desc!=null">
  681. ud_surface_result_id_desc=#{q.ud_surface_result_id_desc},
  682. </if>
  683. <if test="q.marginal_result_id_desc!=null">
  684. marginal_result_id_desc=#{q.marginal_result_id_desc},
  685. </if>
  686. <if test="q.chemid!=null">
  687. chemid=#{q.chemid},
  688. </if>
  689. <if test="q.physid!=null">
  690. physid=#{q.physid},
  691. </if>
  692. <if test="q.phyfstsid!=null">
  693. phyfstsid=#{q.phyfstsid},
  694. </if>
  695. <if test="q.surfaceid!=null">
  696. surfaceid=#{q.surfaceid},
  697. </if>
  698. <if test="q.spyid!=null">
  699. spyid=#{q.spyid},
  700. </if>
  701. <if test="q.sizeid!=null">
  702. sizeid=#{q.sizeid},
  703. </if>
  704. <if test="q.judgeid!=null">
  705. judgeid=#{q.judgeid},
  706. </if>
  707. <if test="q.cic_is_lock!=null">
  708. cic_is_lock=#{q.cic_is_lock},
  709. </if>
  710. <if test="q.pic_is_lock!=null">
  711. pic_is_lock=#{q.pic_is_lock},
  712. </if>
  713. <if test="q.sic_is_lock!=null">
  714. sic_is_lock=#{q.sic_is_lock},
  715. </if>
  716. <if test="q.dic_is_lock!=null">
  717. dic_is_lock=#{q.dic_is_lock},
  718. </if>
  719. <if test="q.sfu_is_lock!=null">
  720. sfu_is_lock=#{q.sfu_is_lock},
  721. </if>
  722. <if test="q.sfd_is_lock!=null">
  723. sfd_is_lock=#{q.sfd_is_lock},
  724. </if>
  725. <if test="q.sfe_is_lock!=null">
  726. sfe_is_lock=#{q.sfe_is_lock},
  727. </if>
  728. <if test="q.r_chemid!=null">
  729. r_chemid=#{q.r_chemid},
  730. </if>
  731. <if test="q.r_chemresult!=null">
  732. r_chemresult=#{q.r_chemresult},
  733. </if>
  734. <if test="q.r_chemresult_desc!=null">
  735. r_chemresult_desc=#{q.r_chemresult_desc},
  736. </if>
  737. <if test="q.r_cic_is_lock!=null">
  738. r_cic_is_lock=#{q.r_cic_is_lock},
  739. </if>
  740. <if test="q.new_inspection_lot!=null">
  741. billetid_jy=#{q.new_inspection_lot},
  742. </if>
  743. <if test="q.fst_judgeresult!=null">
  744. fst_judgeresult=#{q.fst_judgeresult},
  745. </if>
  746. <if test="q.fst_judgeresult_desc!=null">
  747. fst_judgeresult_desc=#{q.fst_judgeresult_desc},
  748. </if>
  749. </trim>
  750. <where>
  751. 1=1
  752. <if test="q.billetid!=null">
  753. AND billetid like #{q.billetid} ||'%'
  754. </if>
  755. <if test="q.billetid_jy!=null">
  756. AND billetid_jy=#{q.billetid_jy}
  757. </if>
  758. </where>
  759. </update>
  760. <insert id="insertQcmPhyJudgeResult" parameterType = "QCM.COMMUNAL.VO.QcmPhyJudgeResult">
  761. insert into QCM_JUDGE_PHYSICAL_RESULT
  762. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  763. <if test = " q.phy_id!= null " >phy_id,</if>
  764. <if test = " q.guid!= null " >guid,</if>
  765. <if test = " q.smp_no!= null " >smp_no,</if>
  766. <if test = " q.heat_no!= null " >heat_no,</if>
  767. <if test = " q.batch_no!= null " >batch_no,</if>
  768. <if test = " q.inspection_lot!= null " >inspection_lot,</if>
  769. <if test = " q.specimen_no!= null " >specimen_no,</if>
  770. <if test = " q.material_no!= null " >material_no,</if>
  771. <if test = " q.phy_code_l!= null " >phy_code_l,</if>
  772. <if test = " q.phy_name_l!= null " >phy_name_l,</if>
  773. <if test = " q.phy_code_m!= null " >phy_code_m,</if>
  774. <if test = " q.phy_name_m!= null " >phy_name_m,</if>
  775. <if test = " q.phy_code_s!= null " >phy_code_s,</if>
  776. <if test = " q.phy_name_s!= null " >phy_name_s,</if>
  777. <if test = " q.item_code_d!= null " >item_code_d,</if>
  778. <if test = " q.item_name_d!= null " >item_name_d,</if>
  779. <if test = " q.item_code_t!= null " >item_code_t,</if>
  780. <if test = " q.item_name_t!= null " >item_name_t,</if>
  781. <if test = " q.item_code_s!= null " >item_code_s,</if>
  782. <if test = " q.item_name_s!= null " >item_name_s,</if>
  783. <if test = " q.val1!= null " >val1,</if>
  784. <if test = " q.val2!= null " >val2,</if>
  785. <if test = " q.val3!= null " >val3,</if>
  786. <if test = " q.val4!= null " >val4,</if>
  787. <if test = " q.val5!= null " >val5,</if>
  788. <if test = " q.val6!= null " >val6,</if>
  789. <if test = " q.val7!= null " >val7,</if>
  790. <if test = " q.val8!= null " >val8,</if>
  791. <if test = " q.val9!= null " >val9,</if>
  792. <if test = " q.val10!= null " >val10,</if>
  793. <if test = " q.val11!= null " >val11,</if>
  794. <if test = " q.val12!= null " >val12,</if>
  795. <if test = " q.val13!= null " >val13,</if>
  796. <if test = " q.val14!= null " >val14,</if>
  797. <if test = " q.val15!= null " >val15,</if>
  798. <if test = " q.avg_val!= null " >avg_val,</if>
  799. <if test = " q.pri!= null " >pri,</if>
  800. <if test = " q.is_pass!= null " >is_pass,</if>
  801. <if test = " q.create_name!= null " >create_name,</if>
  802. <if test = " q.create_name!= null " >create_time,</if>
  803. <if test = " q.item_code_l!= null " >item_code_l,</if>
  804. <if test = " q.item_desc_l!= null " >item_desc_l,</if>
  805. <if test = " q.defect_flag!= null">defect_flag,</if>
  806. <if test=" q.phy_unit= null">phy_unit,</if>
  807. </trim> values
  808. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  809. <if test = " q.phy_id!= null " >#{q.phy_id,jdbcType =VARCHAR},</if>
  810. <if test = " q.guid!= null " >#{q.guid,jdbcType =VARCHAR},</if>
  811. <if test = " q.smp_no!= null " >#{q.smp_no,jdbcType =VARCHAR},</if>
  812. <if test = " q.heat_no!= null " >#{q.heat_no,jdbcType =VARCHAR},</if>
  813. <if test = " q.batch_no!= null " >#{q.batch_no,jdbcType =VARCHAR},</if>
  814. <if test = " q.inspection_lot!= null " >#{q.inspection_lot,jdbcType =VARCHAR},</if>
  815. <if test = " q.specimen_no!= null " >#{q.specimen_no,jdbcType =VARCHAR},</if>
  816. <if test = " q.material_no!= null " >#{q.material_no,jdbcType =VARCHAR},</if>
  817. <if test = " q.phy_code_l!= null " >#{q.phy_code_l,jdbcType =VARCHAR},</if>
  818. <if test = " q.phy_name_l!= null " >#{q.phy_name_l,jdbcType =VARCHAR},</if>
  819. <if test = " q.phy_code_m!= null " >#{q.phy_code_m,jdbcType =VARCHAR},</if>
  820. <if test = " q.phy_name_m!= null " >#{q.phy_name_m,jdbcType =VARCHAR},</if>
  821. <if test = " q.phy_code_s!= null " >#{q.phy_code_s,jdbcType =VARCHAR},</if>
  822. <if test = " q.phy_name_s!= null " >#{q.phy_name_s,jdbcType =VARCHAR},</if>
  823. <if test = " q.item_code_d!= null " >#{q.item_code_d,jdbcType =VARCHAR},</if>
  824. <if test = " q.item_name_d!= null " >#{q.item_name_d,jdbcType =VARCHAR},</if>
  825. <if test = " q.item_code_t!= null " >#{q.item_code_t,jdbcType =VARCHAR},</if>
  826. <if test = " q.item_name_t!= null " >#{q.item_name_t,jdbcType =VARCHAR},</if>
  827. <if test = " q.item_code_s!= null " >#{q.item_code_s,jdbcType =VARCHAR},</if>
  828. <if test = " q.item_name_s!= null " >#{q.item_name_s,jdbcType =VARCHAR},</if>
  829. <if test = " q.val1!= null " >#{q.val1,jdbcType =VARCHAR},</if>
  830. <if test = " q.val2!= null " >#{q.val2,jdbcType =VARCHAR},</if>
  831. <if test = " q.val3!= null " >#{q.val3,jdbcType =VARCHAR},</if>
  832. <if test = " q.val4!= null " >#{q.val4,jdbcType =VARCHAR},</if>
  833. <if test = " q.val5!= null " >#{q.val5,jdbcType =VARCHAR},</if>
  834. <if test = " q.val6!= null " >#{q.val6,jdbcType =VARCHAR},</if>
  835. <if test = " q.val7!= null " >#{q.val7,jdbcType =VARCHAR},</if>
  836. <if test = " q.val8!= null " >#{q.val8,jdbcType =VARCHAR},</if>
  837. <if test = " q.val9!= null " >#{q.val9,jdbcType =VARCHAR},</if>
  838. <if test = " q.val10!= null " >#{q.val10,jdbcType =VARCHAR},</if>
  839. <if test = " q.val11!= null " >#{q.val11,jdbcType =VARCHAR},</if>
  840. <if test = " q.val12!= null " >#{q.val12,jdbcType =VARCHAR},</if>
  841. <if test = " q.val13!= null " >#{q.val13,jdbcType =VARCHAR},</if>
  842. <if test = " q.val14!= null " >#{q.val14,jdbcType =VARCHAR},</if>
  843. <if test = " q.val15!= null " >#{q.val15,jdbcType =VARCHAR},</if>
  844. <if test = " q.avg_val!= null " >#{q.avg_val,jdbcType =VARCHAR},</if>
  845. <if test = " q.pri!= null " >#{q.pri,jdbcType =VARCHAR},</if>
  846. <if test = " q.is_pass!= null " >#{q.is_pass,jdbcType =VARCHAR},</if>
  847. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  848. <if test = " q.create_name!= null " >sysdate,</if>
  849. <if test = " q.item_code_l!= null " >#{q.item_code_l,jdbcType =VARCHAR},</if>
  850. <if test = " q.item_desc_l!= null " >#{q.item_desc_l,jdbcType =VARCHAR},</if>
  851. <if test = " q.defect_flag!= null">#{q.defect_flag,jdbcType=VARCHAR},</if>
  852. <if test = " q.phy_unit!= null">#{q.phy_unit,jdbcType =VARCHAR},</if>
  853. </trim>
  854. </insert>
  855. <insert id="insertQcmJudgeMeasureD" parameterType = "QCM.COMMUNAL.VO.QcmJudgeMeasureD">
  856. insert into QCM_JUDGE_MEASURE_D
  857. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  858. <if test = " q.sic_id!= null " >sic_id,</if>
  859. <if test = " q.sic_item_code!= null " >sic_item_code,</if>
  860. <if test = " q.sic_item_desc!= null " >sic_item_desc,</if>
  861. <if test = " q.plan_val!= null " >plan_val,</if>
  862. <if test = " q.judge_val!= null " >judge_val,</if>
  863. <if test = " q.memo!= null " >memo,</if>
  864. </trim> values
  865. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  866. <if test = " q.sic_id!= null " >#{q.sic_id,jdbcType =VARCHAR},</if>
  867. <if test = " q.sic_item_code!= null " >#{q.sic_item_code,jdbcType =VARCHAR},</if>
  868. <if test = " q.sic_item_desc!= null " >#{q.sic_item_desc,jdbcType =VARCHAR},</if>
  869. <if test = " q.plan_val!= null " >#{q.plan_val,jdbcType =VARCHAR},</if>
  870. <if test = " q.judge_val!= null " >#{q.judge_val,jdbcType =VARCHAR},</if>
  871. <if test = " q.memo!= null " >#{q.memo,jdbcType =VARCHAR},</if>
  872. </trim>
  873. </insert>
  874. <insert id= "insertQcmJudgePhysical" parameterType = "QCM.COMMUNAL.VO.QcmJudgePhysical">
  875. insert into QCM_JUDGE_PHYSICAL
  876. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  877. <if test = " qjc.phy_id!= null " >phy_id,</if>
  878. <if test = " qjc.smp_no!= null " >smp_no,</if>
  879. <if test = " qjc.heat_no!= null " >heat_no,</if>
  880. <if test = " qjc.batch_no!= null " >batch_no,</if>
  881. <if test = " qjc.inspection_lot!= null " >inspection_lot,</if>
  882. <if test = " qjc.board_no!= null " >board_no,</if>
  883. <if test = " qjc.design_key!= null " >design_key,</if>
  884. <if test = " qjc.psc!= null " >psc,</if>
  885. <if test = " qjc.delivery_state_code!= null " >delivery_state_code,</if>
  886. <if test = " qjc.delivery_state_desc!= null " >delivery_state_desc,</if>
  887. <if test = " qjc.thick!= null " >thick,</if>
  888. <if test = " qjc.width!= null " >width,</if>
  889. <if test = " qjc.length!= null " >length,</if>
  890. <if test = " qjc.cert_inst_code!= null " >cert_inst_code,</if>
  891. <if test = " qjc.cert_inst_name!= null " >cert_inst_name,</if>
  892. <if test = " qjc.smp_type_code!= null " >smp_type_code,</if>
  893. <if test = " qjc.smp_type_name!= null " >smp_type_name,</if>
  894. <if test = " qjc.pline_code!= null " >pline_code,</if>
  895. <if test = " qjc.pline_name!= null " >pline_name,</if>
  896. <if test = " qjc.phy_result_code!= null " >phy_result_code,</if>
  897. <if test = " qjc.phy_result_desc!= null " >phy_result_desc,</if>
  898. <if test = " qjc.phy_memo!= null " >phy_memo,</if>
  899. <if test = " qjc.judge_name!= null " >judge_name,</if>
  900. <if test = " qjc.judge_name!= null " >judge_ttime,</if>
  901. <if test = " qjc.psc_desc!= null " >psc_desc,</if>
  902. <if test = " qjc.prod_code!= null " >prod_code,</if>
  903. <if test = " qjc.prod_name!= null " >prod_name,</if>
  904. <if test = " qjc.steel_code!= null " >steel_code,</if>
  905. <if test = " qjc.steel_name!= null " >steel_name,</if>
  906. <if test = " qjc.std_code!= null " >std_code,</if>
  907. <if test = " qjc.std_name!= null " >std_name,</if>
  908. <if test = " qjc.cancel_memo!= null">cancel_memo,</if>
  909. </trim> values
  910. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  911. <if test = " qjc.phy_id!= null " >#{qjc.phy_id,jdbcType =VARCHAR},</if>
  912. <if test = " qjc.smp_no!= null " >#{qjc.smp_no,jdbcType =VARCHAR},</if>
  913. <if test = " qjc.heat_no!= null " >#{qjc.heat_no,jdbcType =VARCHAR},</if>
  914. <if test = " qjc.batch_no!= null " >#{qjc.batch_no,jdbcType =VARCHAR},</if>
  915. <if test = " qjc.inspection_lot!= null " >#{qjc.inspection_lot,jdbcType =VARCHAR},</if>
  916. <if test = " qjc.board_no!= null " >#{qjc.board_no,jdbcType =VARCHAR},</if>
  917. <if test = " qjc.design_key!= null " >#{qjc.design_key,jdbcType =VARCHAR},</if>
  918. <if test = " qjc.psc!= null " >#{qjc.psc,jdbcType =VARCHAR},</if>
  919. <if test = " qjc.delivery_state_code!= null " >#{qjc.delivery_state_code,jdbcType =VARCHAR},</if>
  920. <if test = " qjc.delivery_state_desc!= null " >#{qjc.delivery_state_desc,jdbcType =VARCHAR},</if>
  921. <if test = " qjc.thick!= null " >#{qjc.thick,jdbcType =NUMERIC},</if>
  922. <if test = " qjc.width!= null " >#{qjc.width,jdbcType =NUMERIC},</if>
  923. <if test = " qjc.length!= null " >#{qjc.length,jdbcType =NUMERIC},</if>
  924. <if test = " qjc.cert_inst_code!= null " >#{qjc.cert_inst_code,jdbcType =VARCHAR},</if>
  925. <if test = " qjc.cert_inst_name!= null " >#{qjc.cert_inst_name,jdbcType =VARCHAR},</if>
  926. <if test = " qjc.smp_type_code!= null " >#{qjc.smp_type_code,jdbcType =VARCHAR},</if>
  927. <if test = " qjc.smp_type_name!= null " >#{qjc.smp_type_name,jdbcType =VARCHAR},</if>
  928. <if test = " qjc.pline_code!= null " >#{qjc.pline_code,jdbcType =VARCHAR},</if>
  929. <if test = " qjc.pline_name!= null " >#{qjc.pline_name,jdbcType =VARCHAR},</if>
  930. <if test = " qjc.phy_result_code!= null " >#{qjc.phy_result_code,jdbcType =VARCHAR},</if>
  931. <if test = " qjc.phy_result_desc!= null " >#{qjc.phy_result_desc,jdbcType =VARCHAR},</if>
  932. <if test = " qjc.phy_memo!= null " >#{qjc.phy_memo,jdbcType =VARCHAR},</if>
  933. <if test = " qjc.judge_name!= null " >#{qjc.judge_name,jdbcType =VARCHAR},</if>
  934. <if test = " qjc.judge_name!= null " >sysdate,</if>
  935. <if test = " qjc.psc_desc!= null " >#{qjc.psc_desc,jdbcType =VARCHAR},</if>
  936. <if test = " qjc.prod_code!= null " >#{qjc.prod_code,jdbcType =VARCHAR},</if>
  937. <if test = " qjc.prod_name!= null " >#{qjc.prod_name,jdbcType =VARCHAR},</if>
  938. <if test = " qjc.steel_code!= null " >#{qjc.steel_code,jdbcType =VARCHAR},</if>
  939. <if test = " qjc.steel_name!= null " >#{qjc.steel_name,jdbcType =VARCHAR},</if>
  940. <if test = " qjc.std_code!= null " >#{qjc.std_code,jdbcType =VARCHAR},</if>
  941. <if test = " qjc.std_name!= null " >#{qjc.std_name,jdbcType =VARCHAR},</if>
  942. <if test = " qjc.cancel_memo != null">#{qjc.cancel_memo,jdbcType =VARCHAR},</if>
  943. </trim>
  944. </insert>
  945. <insert id="insertQcmJhySampleConsignDItem" parameterType = "QCM.COMMUNAL.VO.QcmJhySampleConsignDItem">
  946. </insert>
  947. <insert id ="insertQcmJhySampleConsignD" parameterType = "QCM.COMMUNAL.VO.QcmJhySampleConsignD">
  948. </insert>
  949. <insert id="insertQcmJudgePhysicalUtmM" parameterType = "QCM.COMMUNAL.VO.QcmJudgePhysicalUtmM">
  950. insert into QCM_JUDGE_PHYSICAL_UTM_M
  951. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  952. <if test = " qpu.pic_id!= null " >pic_id,</if>
  953. <if test = " qpu.inspection_lot!= null " >inspection_lot,</if>
  954. <if test = " qpu.design_key!= null " >design_key,</if>
  955. <if test = " qpu.pic_result_code!= null " >pic_result_code,</if>
  956. <if test = " qpu.pic_result_desc!= null " >pic_result_desc,</if>
  957. <if test = " qpu.pic_id!= null " >CREATE_TIME,</if>
  958. </trim> values
  959. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  960. <if test = " qpu.pic_id!= null " >#{qpu.pic_id,jdbcType =VARCHAR},</if>
  961. <if test = " qpu.inspection_lot!= null " >#{qpu.inspection_lot,jdbcType =VARCHAR},</if>
  962. <if test = " qpu.design_key!= null " >#{qpu.design_key,jdbcType =VARCHAR},</if>
  963. <if test = " qpu.pic_result_code!= null " >#{qpu.pic_result_code,jdbcType =VARCHAR},</if>
  964. <if test = " qpu.pic_result_desc!= null " >#{qpu.pic_result_desc,jdbcType =VARCHAR},</if>
  965. <if test = " qpu.pic_id!= null " >sysdate,</if>
  966. </trim>
  967. </insert>
  968. <insert id ="insertQcmJudgePhysicalUtmD" parameterType = "QCM.COMMUNAL.VO.QcmJudgePhysicalUtmD">
  969. insert into QCM_JUDGE_PHYSICAL_UTM_D
  970. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  971. <if test = " qpd.pic_id!= null " >pic_id,</if>
  972. <if test = " qpd.smp_no!= null " >smp_no,</if>
  973. <if test = " qpd.heat_no!= null " >heat_no,</if>
  974. <if test = " qpd.batch_no!= null " >batch_no,</if>
  975. <if test = " qpd.inspection_lot!= null " >inspection_lot,</if>
  976. <if test = " qpd.design_key!= null " >design_key,</if>
  977. <if test = " qpd.psc!= null " >psc,</if>
  978. <if test = " qpd.cert_inst_code!= null " >cert_inst_code,</if>
  979. <if test = " qpd.cert_inst_name!= null " >cert_inst_name,</if>
  980. <if test = " qpd.smp_type_code!= null " >smp_type_code,</if>
  981. <if test = " qpd.smp_type_name!= null " >smp_type_name,</if>
  982. <if test = " qpd.judge_result_code!= null " >judge_result_code,</if>
  983. <if test = " qpd.judge_result_desc!= null " >judge_result_desc,</if>
  984. <if test = " qpd.phy_id!= null " >phy_id,</if>
  985. <if test = " qpd.memo!= null " >memo,</if>
  986. <if test = " qpd.judge_name!= null " >judge_name,</if>
  987. <if test = " qpd.judge_name!= null " >judge_ttime,</if>
  988. <if test = " qpd.psc_desc!= null " >psc_desc,</if>
  989. <if test = " qpd.prod_code!= null " >prod_code,</if>
  990. <if test = " qpd.prod_name!= null " >prod_name,</if>
  991. <if test = " qpd.steel_code!= null " >steel_code,</if>
  992. <if test = " qpd.steel_name!= null " >steel_name,</if>
  993. <if test = " qpd.std_code!= null " >std_code,</if>
  994. <if test = " qpd.std_name!= null " >std_name,</if>
  995. </trim> values
  996. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  997. <if test = " qpd.pic_id!= null " >#{qpd.pic_id,jdbcType =VARCHAR},</if>
  998. <if test = " qpd.smp_no!= null " >#{qpd.smp_no,jdbcType =VARCHAR},</if>
  999. <if test = " qpd.heat_no!= null " >#{qpd.heat_no,jdbcType =VARCHAR},</if>
  1000. <if test = " qpd.batch_no!= null " >#{qpd.batch_no,jdbcType =VARCHAR},</if>
  1001. <if test = " qpd.inspection_lot!= null " >#{qpd.inspection_lot,jdbcType =VARCHAR},</if>
  1002. <if test = " qpd.design_key!= null " >#{qpd.design_key,jdbcType =VARCHAR},</if>
  1003. <if test = " qpd.psc!= null " >#{qpd.psc,jdbcType =VARCHAR},</if>
  1004. <if test = " qpd.cert_inst_code!= null " >#{qpd.cert_inst_code,jdbcType =VARCHAR},</if>
  1005. <if test = " qpd.cert_inst_name!= null " >#{qpd.cert_inst_name,jdbcType =VARCHAR},</if>
  1006. <if test = " qpd.smp_type_code!= null " >#{qpd.smp_type_code,jdbcType =VARCHAR},</if>
  1007. <if test = " qpd.smp_type_name!= null " >#{qpd.smp_type_name,jdbcType =VARCHAR},</if>
  1008. <if test = " qpd.judge_result_code!= null " >#{qpd.judge_result_code,jdbcType =VARCHAR},</if>
  1009. <if test = " qpd.judge_result_desc!= null " >#{qpd.judge_result_desc,jdbcType =VARCHAR},</if>
  1010. <if test = " qpd.phy_id!= null " >#{qpd.phy_id,jdbcType =VARCHAR},</if>
  1011. <if test = " qpd.memo!= null " >#{qpd.memo,jdbcType =VARCHAR},</if>
  1012. <if test = " qpd.judge_name!= null " >#{qpd.judge_name,jdbcType =VARCHAR},</if>
  1013. <if test = " qpd.judge_name!= null " >SYSDATE,</if>
  1014. <if test = " qpd.psc_desc!= null " >#{qpd.psc_desc,jdbcType =VARCHAR},</if>
  1015. <if test = " qpd.prod_code!= null " >#{qpd.prod_code,jdbcType =VARCHAR},</if>
  1016. <if test = " qpd.prod_name!= null " >#{qpd.prod_name,jdbcType =VARCHAR},</if>
  1017. <if test = " qpd.steel_code!= null " >#{qpd.steel_code,jdbcType =VARCHAR},</if>
  1018. <if test = " qpd.steel_name!= null " >#{qpd.steel_name,jdbcType =VARCHAR},</if>
  1019. <if test = " qpd.std_code!= null " >#{qpd.std_code,jdbcType =VARCHAR},</if>
  1020. <if test = " qpd.std_name!= null " >#{qpd.std_name,jdbcType =VARCHAR},</if>
  1021. </trim>
  1022. </insert>
  1023. <insert id = "insertQcmJudgeSurface" parameterType = "QCM.COMMUNAL.VO.QcmJudgeSurface">
  1024. insert into QCM_JUDGE_SURFACE
  1025. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1026. <if test = " q.surface_id!= null " >surface_id,</if>
  1027. <if test = " q.heat_no!= null " >heat_no,</if>
  1028. <if test = " q.batch_no!= null " >batch_no,</if>
  1029. <if test = " q.board_no!= null " >board_no,</if>
  1030. <if test = " q.inspection_lot!= null " >inspection_lot,</if>
  1031. <if test = " q.material_no!= null " >material_no,</if>
  1032. <if test = " q.sf_result_code!= null " >sf_result_code,</if>
  1033. <if test = " q.sf_result_desc!= null " >sf_result_desc,</if>
  1034. <if test = " q.level_code!= null " >level_code,</if>
  1035. <if test = " q.level_desc!= null " >level_desc,</if>
  1036. <if test = " q.sf_memo!= null " >sf_memo,</if>
  1037. <if test = " q.sf_type!= null " >sf_type,</if>
  1038. <if test = " q.roughness_val1!= null " >roughness_val1,</if>
  1039. <if test = " q.roughness_val2!= null " >roughness_val2,</if>
  1040. <if test = " q.roughness_val3!= null " >roughness_val3,</if>
  1041. <if test = " q.cop_section_code!= null " >cop_section_code,</if>
  1042. <if test = " q.cop_section_desc!= null " >cop_section_desc,</if>
  1043. <if test = " q.respon_section_code!= null " >respon_section_code,</if>
  1044. <if test = " q.respon_section_name!= null " >respon_section_name,</if>
  1045. <if test = " q.reason_code!= null " >reason_code,</if>
  1046. <if test = " q.reason_desc!= null " >reason_desc,</if>
  1047. <if test = " q.sfu_is_lock!= null " >sfu_is_lock,</if>
  1048. <if test = " q.sfd_is_lock!= null " >sfd_is_lock,</if>
  1049. <if test = " q.sfe_is_lock!= null " >sfe_is_lock,</if>
  1050. <if test = " q.design_key!= null " >design_key,</if>
  1051. <if test = " q.order_no!= null " >order_no,</if>
  1052. <if test = " q.psc!= null " >psc,</if>
  1053. <if test = " q.psc_desc!= null " >psc_desc,</if>
  1054. <if test = " q.pline_code!= null " >pline_code,</if>
  1055. <if test = " q.pline_name!= null " >pline_name,</if>
  1056. <if test = " q.wrk_ord!= null " >wrk_ord,</if>
  1057. <if test = " q.wrk_grp!= null " >wrk_grp,</if>
  1058. <if test = " q.judge_name!= null " >judge_name,</if>
  1059. <if test = " q.judge_name!= null " >judge_time,</if>
  1060. <if test = " q.prod_code!= null " >prod_code,</if>
  1061. <if test = " q.prod_name!= null " >prod_name,</if>
  1062. <if test = " q.steel_code!= null " >steel_code,</if>
  1063. <if test = " q.steel_name!= null " >steel_name,</if>
  1064. <if test = " q.std_code!= null " >std_code,</if>
  1065. <if test = " q.std_name!= null " >std_name,</if>
  1066. <if test = " q.thick!= null " >thick,</if>
  1067. <if test = " q.width!= null " >width,</if>
  1068. <if test = " q.length!= null " >length,</if>
  1069. </trim> values
  1070. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1071. <if test = " q.surface_id!= null " >#{q.surface_id,jdbcType =VARCHAR},</if>
  1072. <if test = " q.heat_no!= null " >#{q.heat_no,jdbcType =VARCHAR},</if>
  1073. <if test = " q.batch_no!= null " >#{q.batch_no,jdbcType =VARCHAR},</if>
  1074. <if test = " q.board_no!= null " >#{q.board_no,jdbcType =VARCHAR},</if>
  1075. <if test = " q.inspection_lot!= null " >#{q.inspection_lot,jdbcType =VARCHAR},</if>
  1076. <if test = " q.material_no!= null " >#{q.material_no,jdbcType =VARCHAR},</if>
  1077. <if test = " q.sf_result_code!= null " >#{q.sf_result_code,jdbcType =VARCHAR},</if>
  1078. <if test = " q.sf_result_desc!= null " >#{q.sf_result_desc,jdbcType =VARCHAR},</if>
  1079. <if test = " q.level_code!= null " >#{q.level_code,jdbcType =VARCHAR},</if>
  1080. <if test = " q.level_desc!= null " >#{q.level_desc,jdbcType =VARCHAR},</if>
  1081. <if test = " q.sf_memo!= null " >#{q.sf_memo,jdbcType =VARCHAR},</if>
  1082. <if test = " q.sf_type!= null " >#{q.sf_type,jdbcType =VARCHAR},</if>
  1083. <if test = " q.roughness_val1!= null " >#{q.roughness_val1,jdbcType =VARCHAR},</if>
  1084. <if test = " q.roughness_val2!= null " >#{q.roughness_val2,jdbcType =VARCHAR},</if>
  1085. <if test = " q.roughness_val3!= null " >#{q.roughness_val3,jdbcType =VARCHAR},</if>
  1086. <if test = " q.cop_section_code!= null " >#{q.cop_section_code,jdbcType =VARCHAR},</if>
  1087. <if test = " q.cop_section_desc!= null " >#{q.cop_section_desc,jdbcType =VARCHAR},</if>
  1088. <if test = " q.respon_section_code!= null " >#{q.respon_section_code,jdbcType =VARCHAR},</if>
  1089. <if test = " q.respon_section_name!= null " >#{q.respon_section_name,jdbcType =VARCHAR},</if>
  1090. <if test = " q.reason_code!= null " >#{q.reason_code,jdbcType =VARCHAR},</if>
  1091. <if test = " q.reason_desc!= null " >#{q.reason_desc,jdbcType =VARCHAR},</if>
  1092. <if test = " q.sfu_is_lock!= null " >#{q.sfu_is_lock,jdbcType =VARCHAR},</if>
  1093. <if test = " q.sfd_is_lock!= null " >#{q.sfd_is_lock,jdbcType =VARCHAR},</if>
  1094. <if test = " q.sfe_is_lock!= null " >#{q.sfe_is_lock,jdbcType =VARCHAR},</if>
  1095. <if test = " q.design_key!= null " >#{q.design_key,jdbcType =VARCHAR},</if>
  1096. <if test = " q.order_no!= null " >#{q.order_no,jdbcType =VARCHAR},</if>
  1097. <if test = " q.psc!= null " >#{q.psc,jdbcType =VARCHAR},</if>
  1098. <if test = " q.psc_desc!= null " >#{q.psc_desc,jdbcType =VARCHAR},</if>
  1099. <if test = " q.pline_code!= null " >#{q.pline_code,jdbcType =VARCHAR},</if>
  1100. <if test = " q.pline_name!= null " >#{q.pline_name,jdbcType =VARCHAR},</if>
  1101. <if test = " q.wrk_ord!= null " >#{q.wrk_ord,jdbcType =VARCHAR},</if>
  1102. <if test = " q.wrk_grp!= null " >#{q.wrk_grp,jdbcType =VARCHAR},</if>
  1103. <if test = " q.judge_name!= null " >#{q.judge_name,jdbcType =VARCHAR},</if>
  1104. <if test = " q.judge_name!= null " >sysdate,</if>
  1105. <if test = " q.prod_code!= null " >#{q.prod_code,jdbcType =VARCHAR},</if>
  1106. <if test = " q.prod_name!= null " >#{q.prod_name,jdbcType =VARCHAR},</if>
  1107. <if test = " q.steel_code!= null " >#{q.steel_code,jdbcType =VARCHAR},</if>
  1108. <if test = " q.steel_name!= null " >#{q.steel_name,jdbcType =VARCHAR},</if>
  1109. <if test = " q.std_code!= null " >#{q.std_code,jdbcType =VARCHAR},</if>
  1110. <if test = " q.std_name!= null " >#{q.std_name,jdbcType =VARCHAR},</if>
  1111. <if test = " q.thick!= null " >#{q.thick,jdbcType =VARCHAR},</if>
  1112. <if test = " q.width!= null " >#{q.width,jdbcType =VARCHAR},</if>
  1113. <if test = " q.length!= null " >#{q.length,jdbcType =VARCHAR},</if>
  1114. </trim>
  1115. </insert>
  1116. <insert id="insertQcmJudgeSurfaceFlaw" parameterType = "QCM.COMMUNAL.VO.QcmJudgeSurfaceFlaw">
  1117. insert into QCM_JUDGE_SURFACE_FLAW
  1118. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1119. <if test = " q.surface_id!= null " >surface_id,</if>
  1120. <if test = " q.primary_flag!= null " >primary_flag,</if>
  1121. <if test = " q.is_repair!= null " >is_repair,</if>
  1122. <if test = " q.flaw_seq!= null " >flaw_seq,</if>
  1123. <if test = " q.flaw_code!= null " >flaw_code,</if>
  1124. <if test = " q.flaw_desc!= null " >flaw_desc,</if>
  1125. <if test = " q.flaw_area!= null " >flaw_area,</if>
  1126. <if test = " q.flaw_type_code!= null " >flaw_type_code,</if>
  1127. <if test = " q.flaw_type_desc!= null " >flaw_type_desc,</if>
  1128. <if test = " q.flaw_pos_code!= null " >flaw_pos_code,</if>
  1129. <if test = " q.flaw_pos_desc!= null " >flaw_pos_desc,</if>
  1130. <if test = " q.flaw_dir_code!= null " >flaw_dir_code,</if>
  1131. <if test = " q.flaw_dir_desc!= null " >flaw_dir_desc,</if>
  1132. <if test = " q.flaw_size_code!= null " >flaw_size_code,</if>
  1133. <if test = " q.flaw_size_desc!= null " >flaw_size_desc,</if>
  1134. <if test = " q.flaw_lv_code!= null " >flaw_lv_code,</if>
  1135. <if test = " q.flaw_lv_desc!= null " >flaw_lv_desc,</if>
  1136. <if test = " q.flaw_weight!= null " >flaw_weight,</if>
  1137. <if test = " q.flaw_quantity!= null " >flaw_quantity,</if>
  1138. <if test = " q.memo!= null " >memo,</if>
  1139. <if test = " q.create_name!= null " >create_name,</if>
  1140. <if test = " q.create_name!= null " >create_time,</if>
  1141. <if test = "q.fixed_type_code!= null">fixed_type_code,</if>
  1142. <if test = "q.fixed_type_desc!= null">fixed_type_desc,</if>
  1143. <if test = "q.fixed_thick!= null">fixed_thick,</if>
  1144. <if test = "q.fixed_name!= null">fixed_name,</if>
  1145. <if test = "q.flaw_origin!= null">flaw_origin,</if>
  1146. </trim> values
  1147. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1148. <if test = " q.surface_id!= null " >#{q.surface_id,jdbcType =VARCHAR},</if>
  1149. <if test = " q.primary_flag!= null " >#{q.primary_flag,jdbcType =VARCHAR},</if>
  1150. <if test = " q.is_repair!= null " >#{q.is_repair,jdbcType =VARCHAR},</if>
  1151. <if test = " q.flaw_seq!= null " >#{q.flaw_seq,jdbcType =NUMERIC},</if>
  1152. <if test = " q.flaw_code!= null " >#{q.flaw_code,jdbcType =VARCHAR},</if>
  1153. <if test = " q.flaw_desc!= null " >#{q.flaw_desc,jdbcType =VARCHAR},</if>
  1154. <if test = " q.flaw_area!= null " >#{q.flaw_area,jdbcType =VARCHAR},</if>
  1155. <if test = " q.flaw_type_code!= null " >#{q.flaw_type_code,jdbcType =VARCHAR},</if>
  1156. <if test = " q.flaw_type_desc!= null " >#{q.flaw_type_desc,jdbcType =VARCHAR},</if>
  1157. <if test = " q.flaw_pos_code!= null " >#{q.flaw_pos_code,jdbcType =VARCHAR},</if>
  1158. <if test = " q.flaw_pos_desc!= null " >#{q.flaw_pos_desc,jdbcType =VARCHAR},</if>
  1159. <if test = " q.flaw_dir_code!= null " >#{q.flaw_dir_code,jdbcType =VARCHAR},</if>
  1160. <if test = " q.flaw_dir_desc!= null " >#{q.flaw_dir_desc,jdbcType =VARCHAR},</if>
  1161. <if test = " q.flaw_size_code!= null " >#{q.flaw_size_code,jdbcType =VARCHAR},</if>
  1162. <if test = " q.flaw_size_desc!= null " >#{q.flaw_size_desc,jdbcType =VARCHAR},</if>
  1163. <if test = " q.flaw_lv_code!= null " >#{q.flaw_lv_code,jdbcType =VARCHAR},</if>
  1164. <if test = " q.flaw_lv_desc!= null " >#{q.flaw_lv_desc,jdbcType =VARCHAR},</if>
  1165. <if test = " q.flaw_weight!= null " >#{q.flaw_weight,jdbcType =NUMERIC},</if>
  1166. <if test = " q.flaw_quantity!= null " >#{q.flaw_quantity,jdbcType =NUMERIC},</if>
  1167. <if test = " q.memo!= null " >#{q.memo,jdbcType =VARCHAR},</if>
  1168. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  1169. <if test = " q.create_name!= null " >#{q.create_time,jdbcType =TIMESTAMP},</if>
  1170. <if test = "q.fixed_type_code!= null">#{q.fixed_type_code,jdbcType =VARCHAR},</if>
  1171. <if test = "q.fixed_type_desc!= null">#{q.fixed_type_desc,jdbcType =VARCHAR},</if>
  1172. <if test = "q.fixed_thick!= null">#{q.fixed_thick,jdbcType =VARCHAR},</if>
  1173. <if test = "q.fixed_name!= null">#{q.fixed_name,jdbcType =VARCHAR},</if>
  1174. <if test = "q.flaw_origin!= null">#{q.flaw_origin,jdbcType =VARCHAR},</if>
  1175. </trim>
  1176. </insert>
  1177. <insert id= "insertQcmJudgeUltimateReason" parameterType= "QCM.COMMUNAL.VO.QcmJudgeUltimateReason">
  1178. insert into QCM_JUDGE_ULTIMATE_REASON
  1179. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1180. <if test = " q.material_no!= null " >material_no,</if>
  1181. <if test = " q.type_code!= null " >type_code,</if>
  1182. <if test = " q.record_id!= null " >record_id,</if>
  1183. <if test = " q.seq!= null " >seq,</if>
  1184. <if test = " q.phy_code_l!= null " >phy_code_l,</if>
  1185. <if test = " q.phy_name_l!= null " >phy_name_l,</if>
  1186. <if test = " q.phy_code_m!= null " >phy_code_m,</if>
  1187. <if test = " q.phy_name_m!= null " >phy_name_m,</if>
  1188. <if test = " q.phy_code_s!= null " >phy_code_s,</if>
  1189. <if test = " q.phy_name_s!= null " >phy_name_s,</if>
  1190. <if test = " q.item_code_d!= null " >item_code_d,</if>
  1191. <if test = " q.item_name_d!= null " >item_name_d,</if>
  1192. <if test = " q.item_code_t!= null " >item_code_t,</if>
  1193. <if test = " q.item_name_t!= null " >item_name_t,</if>
  1194. <if test = " q.item_code_s!= null " >item_code_s,</if>
  1195. <if test = " q.item_name_s!= null " >item_name_s,</if>
  1196. <if test = " q.val1!= null " >val1,</if>
  1197. <if test = " q.val2!= null " >val2,</if>
  1198. <if test = " q.val3!= null " >val3,</if>
  1199. <if test = " q.avg_val!= null " >avg_val,</if>
  1200. <if test = " q.stdmin_sign!= null " >stdmin_sign,</if>
  1201. <if test = " q.stdmin!= null " >stdmin,</if>
  1202. <if test = " q.stdmax_sign!= null " >stdmax_sign,</if>
  1203. <if test = " q.stdmax!= null " >stdmax,</if>
  1204. <if test = " q.create_name!= null " >create_name,</if>
  1205. <if test = " q.create_name!= null " >create_time,</if>
  1206. <if test = " q.item_code_l!= null " >item_code_l,</if>
  1207. <if test = " q.item_desc_l!= null " >item_desc_l,</if>
  1208. </trim> values
  1209. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1210. <if test = " q.material_no!= null " >#{q.material_no,jdbcType =VARCHAR},</if>
  1211. <if test = " q.type_code!= null " >#{q.type_code,jdbcType =VARCHAR},</if>
  1212. <if test = " q.record_id!= null " >#{q.record_id,jdbcType =VARCHAR},</if>
  1213. <if test = " q.seq!= null " >#{q.seq,jdbcType =NUMERIC},</if>
  1214. <if test = " q.phy_code_l!= null " >#{q.phy_code_l,jdbcType =VARCHAR},</if>
  1215. <if test = " q.phy_name_l!= null " >#{q.phy_name_l,jdbcType =VARCHAR},</if>
  1216. <if test = " q.phy_code_m!= null " >#{q.phy_code_m,jdbcType =VARCHAR},</if>
  1217. <if test = " q.phy_name_m!= null " >#{q.phy_name_m,jdbcType =VARCHAR},</if>
  1218. <if test = " q.phy_code_s!= null " >#{q.phy_code_s,jdbcType =VARCHAR},</if>
  1219. <if test = " q.phy_name_s!= null " >#{q.phy_name_s,jdbcType =VARCHAR},</if>
  1220. <if test = " q.item_code_d!= null " >#{q.item_code_d,jdbcType =VARCHAR},</if>
  1221. <if test = " q.item_name_d!= null " >#{q.item_name_d,jdbcType =VARCHAR},</if>
  1222. <if test = " q.item_code_t!= null " >#{q.item_code_t,jdbcType =VARCHAR},</if>
  1223. <if test = " q.item_name_t!= null " >#{q.item_name_t,jdbcType =VARCHAR},</if>
  1224. <if test = " q.item_code_s!= null " >#{q.item_code_s,jdbcType =VARCHAR},</if>
  1225. <if test = " q.item_name_s!= null " >#{q.item_name_s,jdbcType =VARCHAR},</if>
  1226. <if test = " q.val1!= null " >#{q.val1,jdbcType =VARCHAR},</if>
  1227. <if test = " q.val2!= null " >#{q.val2,jdbcType =VARCHAR},</if>
  1228. <if test = " q.val3!= null " >#{q.val3,jdbcType =VARCHAR},</if>
  1229. <if test = " q.avg_val!= null " >#{q.avg_val,jdbcType =VARCHAR},</if>
  1230. <if test = " q.stdmin_sign!= null " >#{q.stdmin_sign,jdbcType =VARCHAR},</if>
  1231. <if test = " q.stdmin!= null " >#{q.stdmin,jdbcType =VARCHAR},</if>
  1232. <if test = " q.stdmax_sign!= null " >#{q.stdmax_sign,jdbcType =VARCHAR},</if>
  1233. <if test = " q.stdmax!= null " >#{q.stdmax,jdbcType =VARCHAR},</if>
  1234. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  1235. <if test = " q.create_name!= null " >SYSDATE,</if>
  1236. <if test = " q.item_code_l!= null " >#{q.item_code_l,jdbcType =VARCHAR},</if>
  1237. <if test = " q.item_desc_l!= null " >#{q.item_desc_l,jdbcType =VARCHAR},</if>
  1238. </trim>
  1239. </insert>
  1240. <insert id="insertDealMemo" parameterType="QCM.COMMUNAL.VO.DealMemo">
  1241. insert into deal_memo
  1242. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1243. <if test = " list.memo_code!= null " >memo_code,</if>
  1244. <if test = " list.memo!= null " >memo,</if>
  1245. <if test = " list.pline_code!= null " >pline_code,</if>
  1246. <if test = " list.creat_name!= null " >creat_name,</if>
  1247. <if test = " list.creat_time!= null " >creat_time,</if>
  1248. <if test = " list.mod_id!= null " >mod_id,</if>
  1249. <if test = " list.mod_time!= null " >mod_time,</if>
  1250. </trim>
  1251. VALUES
  1252. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1253. <if test = " list.memo_code!= null " >#{list.memo_code,jdbcType =VARCHAR},</if>
  1254. <if test = " list.memo!= null " >#{list.memo,jdbcType =VARCHAR},</if>
  1255. <if test = " list.pline_code!= null " >#{list.pline_code,jdbcType =VARCHAR},</if>
  1256. <if test = " list.creat_name!= null " >#{list.creat_name,jdbcType =VARCHAR},</if>
  1257. <if test = " list.creat_time!= null " >#{list.creat_time,jdbcType =DATE},</if>
  1258. <if test = " list.mod_id!= null " >#{list.mod_id,jdbcType =VARCHAR},</if>
  1259. <if test = " list.mod_time!= null " >#{list.mod_time,jdbcType =DATE},</if>
  1260. </trim>
  1261. </insert>
  1262. <!-- <insert id="insertExcelWGJMain" parameterType="QCM.COMMUNAL.VO.ExcelWGJMain"> -->
  1263. <!-- insert into Excel_SZ -->
  1264. <!-- <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=","> -->
  1265. <!-- <if test = " list.coil_no!= null " >coil_no,</if> -->
  1266. <!-- <if test = " list.slab_no!= null " >slab_no,</if> -->
  1267. <!-- <if test = " list.old_sampl_no!= null " >old_sampl_no,</if> -->
  1268. <!-- <if test = " list.coil_stat!= null " >coil_stat,</if> -->
  1269. <!-- <if test = " list.cur_prog_cd!= null " >cur_prog_cd,</if> -->
  1270. <!-- <if test = " list.coil_len!= null " >coil_len,</if> -->
  1271. <!-- <if test = " list.coil_india!= null " >coil_india,</if> -->
  1272. <!-- <if test = " list.coil_outdia!= null " >coil_outdia,</if> -->
  1273. <!-- <if test = " list.coil_thk!= null " >coil_thk,</if> -->
  1274. <!-- <if test = " list.coil_wth!= null " >coil_wth,</if> -->
  1275. <!-- <if test = " list.act_wgt!= null " >act_wgt,</if> -->
  1276. <!-- <if test = " list.ord_fl!= null " >ord_fl,</if> -->
  1277. <!-- <if test = " list.ord_no!= null " >ord_no,</if> -->
  1278. <!-- <if test = " list.ord_seq!= null " >ord_seq,</if> -->
  1279. <!-- <if test = " list.spec_abbsym!= null " >spec_abbsym,</if> -->
  1280. <!-- <if test = " list.spec_stl_grd!= null " >spec_stl_grd,</if> -->
  1281. <!-- <if test = " list.stl_grd!= null " >stl_grd,</if> -->
  1282. <!-- </trim> -->
  1283. <!-- VALUES -->
  1284. <!-- <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=","> -->
  1285. <!-- <if test = " list.coil_no!= null " >#{list.coil_no,jdbcType =VARCHAR},</if> -->
  1286. <!-- <if test = " list.slab_no!= null " >#{list.slab_no,jdbcType =VARCHAR},</if> -->
  1287. <!-- <if test = " list.old_sampl_no!= null " >#{list.old_sampl_no,jdbcType =VARCHAR},</if> -->
  1288. <!-- <if test = " list.coil_stat!= null " >#{list.coil_stat,jdbcType =VARCHAR},</if> -->
  1289. <!-- <if test = " list.cur_prog_cd!= null " >#{list.cur_prog_cd,jdbcType =VARCHAR},</if> -->
  1290. <!-- <if test = " list.coil_len!= null " >#{list.coil_len,jdbcType =VARCHAR},</if> -->
  1291. <!-- <if test = " list.coil_india!= null " >#{list.coil_india,jdbcType =VARCHAR},</if> -->
  1292. <!-- <if test = " list.coil_outdia!= null " >#{list.coil_outdia,jdbcType =VARCHAR},</if> -->
  1293. <!-- <if test = " list.coil_thk!= null " >#{list.coil_thk,jdbcType =VARCHAR},</if> -->
  1294. <!-- <if test = " list.coil_wth!= null " >#{list.coil_wth,jdbcType =VARCHAR},</if> -->
  1295. <!-- <if test = " list.act_wgt!= null " >#{list.act_wgt,jdbcType =VARCHAR},</if> -->
  1296. <!-- <if test = " list.ord_fl!= null " >#{list.ord_fl,jdbcType =VARCHAR},</if> -->
  1297. <!-- <if test = " list.ord_no!= null " >#{list.ord_no,jdbcType =VARCHAR},</if> -->
  1298. <!-- <if test = " list.ord_seq!= null " >#{list.ord_seq,jdbcType =VARCHAR},</if> -->
  1299. <!-- <if test = " list.spec_abbsym!= null " >#{list.spec_abbsym,jdbcType =VARCHAR},</if> -->
  1300. <!-- <if test = " list.spec_stl_grd!= null " >#{list.spec_stl_grd,jdbcType =VARCHAR},</if> -->
  1301. <!-- <if test = " list.stl_grd!= null " >#{list.stl_grd,jdbcType =VARCHAR},</if> -->
  1302. <!-- </trim> -->
  1303. <!-- </insert> -->
  1304. <insert id="insertExcelWGJMain" parameterType="java.util.List">
  1305. insert into c_tbk02_coil_comm
  1306. (coil_no,slab_no,old_sampl_no,coil_stat,cur_prog_cd,coil_len,coil_india,coil_outdia,
  1307. coil_thk,coil_wth,act_wgt,ord_fl,ord_no,ord_seq,spec_abbsym,spec_stl_grd,stl_grd,cur_prog_cd_dtime,cur_prog_cd_pgm,CR_PLANT_TRS_DTIME)
  1308. <foreach collection="list" item="item" index="index" separator="union all">
  1309. select
  1310. #{item.coil_no,jdbcType =VARCHAR},#{item.slab_no,jdbcType =VARCHAR},#{item.old_sampl_no,jdbcType =VARCHAR},
  1311. '2',
  1312. #{item.cur_prog_cd,jdbcType =VARCHAR},#{item.coil_len,jdbcType =VARCHAR},#{item.coil_india,jdbcType =VARCHAR},
  1313. #{item.coil_outdia,jdbcType =VARCHAR},
  1314. #{item.coil_thk,jdbcType =VARCHAR},#{item.coil_wth,jdbcType =VARCHAR},#{item.act_wgt,jdbcType =VARCHAR},
  1315. #{item.ord_fl,jdbcType =VARCHAR},
  1316. #{item.ord_no,jdbcType =VARCHAR},#{item.ord_seq,jdbcType =VARCHAR},#{item.spec_abbsym,jdbcType =VARCHAR},
  1317. #{item.spec_stl_grd,jdbcType =VARCHAR},#{item.stl_grd,jdbcType =VARCHAR},TO_CHAR(SYSDATE,'YYYYMMDDHH24MISS'),'外购',TO_CHAR(SYSDATE,'YYYYMMDD')
  1318. from dual
  1319. </foreach>
  1320. </insert>
  1321. <!-- <insert id="insertExcelWGJCXN" parameterType="QCM.COMMUNAL.VO.ExcelWGJCXN"> -->
  1322. <!-- insert into Excel_LZ_XN -->
  1323. <!-- <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=","> -->
  1324. <!-- <if test = " list.specimen_no!= null " >specimen_no,</if> -->
  1325. <!-- <if test = " list.phy_name_s!= null " >phy_name_s,</if> -->
  1326. <!-- <if test = " list.val1!= null " >val1,</if> -->
  1327. <!-- </trim> -->
  1328. <!-- VALUES -->
  1329. <!-- <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=","> -->
  1330. <!-- <if test = " list.specimen_no!= null " >#{list.specimen_no,jdbcType =VARCHAR},</if> -->
  1331. <!-- <if test = " list.phy_name_s!= null " >#{list.phy_name_s,jdbcType =VARCHAR},</if> -->
  1332. <!-- <if test = " list.val1!= null " >#{list.val1,jdbcType =VARCHAR},</if> -->
  1333. <!-- </trim> -->
  1334. <!-- </insert> -->
  1335. <!-- <insert id="insertExcelWGJCXN" parameterType="java.util.List"> -->
  1336. <!-- insert into Excel_LZ_XN -->
  1337. <!-- (specimen_no,phy_name_s,val1) -->
  1338. <!-- <foreach collection="list" item="item" index="index" separator="union all"> -->
  1339. <!-- select #{item.specimen_no,jdbcType =VARCHAR},#{item.phy_name_s,jdbcType =VARCHAR},#{item.val1,jdbcType =VARCHAR} from dual -->
  1340. <!-- </foreach> -->
  1341. <!-- </insert> -->
  1342. <insert id="insertExcelWGJCXN" parameterType="java.util.List">
  1343. insert into Excel_LZ_XN
  1344. (COIL_NO,KLQD,QFQD,DHSCL)
  1345. <foreach collection="list" item="item" index="index" separator="union all">
  1346. select #{item.coil_no,jdbcType =VARCHAR},#{item.klqd,jdbcType =VARCHAR},
  1347. #{item.qfqd,jdbcType =VARCHAR},#{item.dhscl,jdbcType =VARCHAR} from dual
  1348. </foreach>
  1349. </insert>
  1350. <!-- <insert id="insertExcelWGJCF" parameterType="QCM.COMMUNAL.VO.ExcelWGJCF"> -->
  1351. <!-- insert into Excel_LZ_CF -->
  1352. <!-- <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=","> -->
  1353. <!-- <if test = " list.charge_no!= null " >charge_no,</if> -->
  1354. <!-- <if test = " list.chem_cd!= null " >chem_cd,</if> -->
  1355. <!-- <if test = " list.chem_val!= null " >chem_val,</if> -->
  1356. <!-- </trim> -->
  1357. <!-- VALUES -->
  1358. <!-- <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=","> -->
  1359. <!-- <if test = " list.charge_no!= null " >#{list.charge_no,jdbcType =VARCHAR},</if> -->
  1360. <!-- <if test = " list.chem_cd!= null " >#{list.chem_cd,jdbcType =VARCHAR},</if> -->
  1361. <!-- <if test = " list.chem_val!= null " >#{list.chem_val,jdbcType =VARCHAR},</if> -->
  1362. <!-- </trim> -->
  1363. <!-- </insert> -->
  1364. <!-- <insert id="insertExcelWGJCF" parameterType="java.util.List"> -->
  1365. <!-- insert into Excel_LZ_CF(charge_no,chem_cd,chem_value,proc_cd,chem_seq, -->
  1366. <!-- chem_val_tp,reg_id,reg_dtime) -->
  1367. <!-- <foreach collection="list" item="item" index="index" separator="union all"> -->
  1368. <!-- select #{item.charge_no,jdbcType =VARCHAR}, -->
  1369. <!-- #{item.chem_cd,jdbcType =VARCHAR},#{item.chem_val,jdbcType =VARCHAR}, -->
  1370. <!-- 'JJ','01','L','Excel',TO_CHAR(SYSDATE,'YYYYMMDDHH24MISS') from DUAL -->
  1371. <!-- </foreach> -->
  1372. <!-- </insert> -->
  1373. <insert id="insertExcelWGJCF" parameterType="java.util.List">
  1374. insert into QCM_JHY_INSP_ELEMENTS(assay_no,heat_no,chem_code,chem_name,chem_value,batch_no,material_no,
  1375. pline_code,pline_name,assay_type,source,create_time,create_name)
  1376. <foreach collection="list" item="item" index="index" separator="union all">
  1377. select #{item.assay_no,jdbcType =VARCHAR},#{item.heat_no,jdbcType =VARCHAR},
  1378. #{item.chem_cd,jdbcType =VARCHAR},#{item.chem_name,jdbcType =VARCHAR},
  1379. #{item.chem_value,jdbcType =VARCHAR},#{item.batch_no,jdbcType =VARCHAR},
  1380. #{item.material_no,jdbcType =VARCHAR},'RZ1','热轧','L', '0',SYSDATE,#{item.create_name,jdbcType =VARCHAR}
  1381. from DUAL
  1382. </foreach>
  1383. </insert>
  1384. <insert id="insertExcelWGJCF1" parameterType="java.util.List">
  1385. insert into tbb02_work_ingr(charge_no,chem_cd,chem_val,proc_cd,chem_seq,
  1386. chem_val_tp,reg_id,reg_dtime,chem_l2_val)
  1387. <foreach collection="list" item="item" index="index" separator="union all">
  1388. select #{item.charge_no,jdbcType =VARCHAR},
  1389. #{item.chem_cd,jdbcType =VARCHAR},#{item.chem_value,jdbcType =VARCHAR},
  1390. 'JJ','01','L','Excel',TO_CHAR(SYSDATE,'YYYYMMDDHH24MISS'),#{item.chem_value,jdbcType =VARCHAR} from DUAL
  1391. </foreach>
  1392. </insert>
  1393. <insert id = "insertQCMJudgeMeasure" parameterType ="QCM.COMMUNAL.VO.QCMJudgeMeasure">
  1394. insert into QCM_JUDGE_MEASURE
  1395. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1396. <if test = " qju.sic_id!= null " >sic_id,</if>
  1397. <if test = " qju.design_key!= null " >design_key,</if>
  1398. <if test = " qju.heat_no!= null " >heat_no,</if>
  1399. <if test = " qju.batch_no!= null " >batch_no,</if>
  1400. <if test = " qju.inspection_lot!= null " >inspection_lot,</if>
  1401. <if test = " qju.board_no!= null " >board_no,</if>
  1402. <if test = " qju.material_no!= null " >material_no,</if>
  1403. <if test = " qju.sic_result_code!= null " >sic_result_code,</if>
  1404. <if test = " qju.sic_result_desc!= null " >sic_result_desc,</if>
  1405. <if test = " qju.sic_memo!= null " >sic_memo,</if>
  1406. <if test = " qju.weight!= null " >weight,</if>
  1407. <if test = " qju.south_thick_val!= null " >south_thick_val,</if>
  1408. <if test = " qju.south_h_val!= null " >south_h_val,</if>
  1409. <if test = " qju.south_m_val!= null " >south_m_val,</if>
  1410. <if test = " qju.south_r_val!= null " >south_r_val,</if>
  1411. <if test = " qju.middle_thick_val!= null " >middle_thick_val,</if>
  1412. <if test = " qju.middle_h_val!= null " >middle_h_val,</if>
  1413. <if test = " qju.middle_m_val!= null " >middle_m_val,</if>
  1414. <if test = " qju.middle_r_val!= null " >middle_r_val,</if>
  1415. <if test = " qju.north_thick_val!= null " >north_thick_val,</if>
  1416. <if test = " qju.north_h_val!= null " >north_h_val,</if>
  1417. <if test = " qju.north_m_val!= null " >north_m_val,</if>
  1418. <if test = " qju.north_r_val!= null " >north_r_val,</if>
  1419. <if test = " qju.pline_code!= null " >pline_code,</if>
  1420. <if test = " qju.pline_name!= null " >pline_name,</if>
  1421. <if test = " qju.wrk_ord!= null " >wrk_ord,</if>
  1422. <if test = " qju.wrk_grp!= null " >wrk_grp,</if>
  1423. <if test = " qju.judge_name!= null " >judge_name,</if>
  1424. <if test = " qju.judge_name!= null " >judge_time,</if>
  1425. <if test = " qju.psc!= null " >psc,</if>
  1426. <if test = " qju.psc_desc!= null " >psc_desc,</if>
  1427. <if test = " qju.respon_section_code!= null " >respon_section_code,</if>
  1428. <if test = " qju.respon_section_name!= null " >respon_section_name,</if>
  1429. <if test = " qju.prod_code!= null " >prod_code,</if>
  1430. <if test = " qju.prod_name!= null " >prod_name,</if>
  1431. <if test = " qju.steel_code!= null " >steel_code,</if>
  1432. <if test = " qju.steel_name!= null " >steel_name,</if>
  1433. <if test = " qju.std_code!= null " >std_code,</if>
  1434. <if test = " qju.std_name!= null " >std_name,</if>
  1435. <if test = " qju.level_code!= null " >level_code,</if>
  1436. <if test = " qju.level_desc!= null " >level_desc,</if>
  1437. <if test = " qju.thick!= null " >thick,</if>
  1438. <if test = " qju.width!= null " >width,</if>
  1439. <if test = " qju.length!= null " >length,</if>
  1440. <if test = " qju.change_type_desc!= null " >change_type_desc,</if>
  1441. </trim> values
  1442. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1443. <if test = " qju.sic_id!= null " >#{qju.sic_id,jdbcType =VARCHAR},</if>
  1444. <if test = " qju.design_key!= null " >#{qju.design_key,jdbcType =VARCHAR},</if>
  1445. <if test = " qju.heat_no!= null " >#{qju.heat_no,jdbcType =VARCHAR},</if>
  1446. <if test = " qju.batch_no!= null " >#{qju.batch_no,jdbcType =VARCHAR},</if>
  1447. <if test = " qju.inspection_lot!= null " >#{qju.inspection_lot,jdbcType =VARCHAR},</if>
  1448. <if test = " qju.board_no!= null " >#{qju.board_no,jdbcType =VARCHAR},</if>
  1449. <if test = " qju.material_no!= null " >#{qju.material_no,jdbcType =VARCHAR},</if>
  1450. <if test = " qju.sic_result_code!= null " >#{qju.sic_result_code,jdbcType =VARCHAR},</if>
  1451. <if test = " qju.sic_result_desc!= null " >#{qju.sic_result_desc,jdbcType =VARCHAR},</if>
  1452. <if test = " qju.sic_memo!= null " >#{qju.sic_memo,jdbcType =VARCHAR},</if>
  1453. <if test = " qju.weight!= null " >#{qju.weight,jdbcType =NUMERIC},</if>
  1454. <if test = " qju.south_thick_val!= null " >#{qju.south_thick_val,jdbcType =NUMERIC},</if>
  1455. <if test = " qju.south_h_val!= null " >#{qju.south_h_val,jdbcType =NUMERIC},</if>
  1456. <if test = " qju.south_m_val!= null " >#{qju.south_m_val,jdbcType =NUMERIC},</if>
  1457. <if test = " qju.south_r_val!= null " >#{qju.south_r_val,jdbcType =NUMERIC},</if>
  1458. <if test = " qju.middle_thick_val!= null " >#{qju.middle_thick_val,jdbcType =NUMERIC},</if>
  1459. <if test = " qju.middle_h_val!= null " >#{qju.middle_h_val,jdbcType =NUMERIC},</if>
  1460. <if test = " qju.middle_m_val!= null " >#{qju.middle_m_val,jdbcType =NUMERIC},</if>
  1461. <if test = " qju.middle_r_val!= null " >#{qju.middle_r_val,jdbcType =NUMERIC},</if>
  1462. <if test = " qju.north_thick_val!= null " >#{qju.north_thick_val,jdbcType =NUMERIC},</if>
  1463. <if test = " qju.north_h_val!= null " >#{qju.north_h_val,jdbcType =NUMERIC},</if>
  1464. <if test = " qju.north_m_val!= null " >#{qju.north_m_val,jdbcType =NUMERIC},</if>
  1465. <if test = " qju.north_r_val!= null " >#{qju.north_r_val,jdbcType =NUMERIC},</if>
  1466. <if test = " qju.pline_code!= null " >#{qju.pline_code,jdbcType =VARCHAR},</if>
  1467. <if test = " qju.pline_name!= null " >#{qju.pline_name,jdbcType =VARCHAR},</if>
  1468. <if test = " qju.wrk_ord!= null " >#{qju.wrk_ord,jdbcType =VARCHAR},</if>
  1469. <if test = " qju.wrk_grp!= null " >#{qju.wrk_grp,jdbcType =VARCHAR},</if>
  1470. <if test = " qju.judge_name!= null " >#{qju.judge_name,jdbcType =VARCHAR},</if>
  1471. <if test = " qju.judge_name!= null " >sysdate,</if>
  1472. <if test = " qju.psc!= null " >#{qju.psc,jdbcType =VARCHAR},</if>
  1473. <if test = " qju.psc_desc!= null " >#{qju.psc_desc,jdbcType =VARCHAR},</if>
  1474. <if test = " qju.respon_section_code!= null " >#{qju.respon_section_code,jdbcType =VARCHAR},</if>
  1475. <if test = " qju.respon_section_name!= null " >#{qju.respon_section_name,jdbcType =VARCHAR},</if>
  1476. <if test = " qju.prod_code!= null " >#{qju.prod_code,jdbcType =VARCHAR},</if>
  1477. <if test = " qju.prod_name!= null " >#{qju.prod_name,jdbcType =VARCHAR},</if>
  1478. <if test = " qju.steel_code!= null " >#{qju.steel_code,jdbcType =VARCHAR},</if>
  1479. <if test = " qju.steel_name!= null " >#{qju.steel_name,jdbcType =VARCHAR},</if>
  1480. <if test = " qju.std_code!= null " >#{qju.std_code,jdbcType =VARCHAR},</if>
  1481. <if test = " qju.std_name!= null " >#{qju.std_name,jdbcType =VARCHAR},</if>
  1482. <if test = " qju.level_code!= null " >#{qju.level_code,jdbcType =VARCHAR},</if>
  1483. <if test = " qju.level_desc!= null " >#{qju.level_desc,jdbcType =VARCHAR},</if>
  1484. <if test = " qju.thick!= null " >#{qju.thick,jdbcType =VARCHAR},</if>
  1485. <if test = " qju.width!= null " >#{qju.width,jdbcType =VARCHAR},</if>
  1486. <if test = " qju.length!= null " >#{qju.length,jdbcType =VARCHAR},</if>
  1487. <if test = " qju.change_type_desc!= null " >#{qju.change_type_desc,jdbcType =VARCHAR},</if>
  1488. </trim>
  1489. </insert>
  1490. <insert id="insertQcmJudgeUltimate" parameterType= "QCM.COMMUNAL.VO.QcmJudgeUltimate">
  1491. insert into QCM_JUDGE_ULTIMATE
  1492. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1493. <if test = " qju.utm_id!= null " >utm_id,</if>
  1494. <if test = " qju.design_key!= null " >design_key,</if>
  1495. <if test = " qju.heat_no!= null " >heat_no,</if>
  1496. <if test = " qju.batch_no!= null " >batch_no,</if>
  1497. <if test = " qju.board_no!= null " >board_no,</if>
  1498. <if test = " qju.inspection_lot!= null " >inspection_lot,</if>
  1499. <if test = " qju.material_no!= null " >material_no,</if>
  1500. <if test = " qju.contract_line_no!= null " >contract_line_no,</if>
  1501. <if test = " qju.psc!= null " >psc,</if>
  1502. <if test = " qju.box_no!= null " >box_no,</if>
  1503. <if test = " qju.cic_id!= null " >cic_id,</if>
  1504. <if test = " qju.cic_result_code!= null " >cic_result_code,</if>
  1505. <if test = " qju.cic_result_desc!= null " >cic_result_desc,</if>
  1506. <if test = " qju.cic_memo!= null " >cic_memo,</if>
  1507. <if test = " qju.pic_id!= null " >pic_id,</if>
  1508. <if test = " qju.pic_result_code!= null " >pic_result_code,</if>
  1509. <if test = " qju.pic_result_desc!= null " >pic_result_desc,</if>
  1510. <if test = " qju.pic_memo!= null " >pic_memo,</if>
  1511. <if test = " qju.sic_id!= null " >sic_id,</if>
  1512. <if test = " qju.sic_result_code!= null " >sic_result_code,</if>
  1513. <if test = " qju.sic_result_desc!= null " >sic_result_desc,</if>
  1514. <if test = " qju.sic_memo!= null " >sic_memo,</if>
  1515. <if test = " qju.dic_id!= null " >dic_id,</if>
  1516. <if test = " qju.dic_result_code!= null " >dic_result_code,</if>
  1517. <if test = " qju.dic_result_desc!= null " >dic_result_desc,</if>
  1518. <if test = " qju.dic_memo!= null " >dic_memo,</if>
  1519. <if test = " qju.sfu_id!= null " >sfu_id,</if>
  1520. <if test = " qju.sfu_result_code!= null " >sfu_result_code,</if>
  1521. <if test = " qju.sfu_result_desc!= null " >sfu_result_desc,</if>
  1522. <if test = " qju.sfu_memo!= null " >sfu_memo,</if>
  1523. <if test = " qju.sfd_id!= null " >sfd_id,</if>
  1524. <if test = " qju.sfd_result_code!= null " >sfd_result_code,</if>
  1525. <if test = " qju.sfd_result_desc!= null " >sfd_result_desc,</if>
  1526. <if test = " qju.sfd_memo!= null " >sfd_memo,</if>
  1527. <if test = " qju.sfe_id!= null " >sfe_id,</if>
  1528. <if test = " qju.sfe_result_code!= null " >sfe_result_code,</if>
  1529. <if test = " qju.sfe_result_desc!= null " >sfe_result_desc,</if>
  1530. <if test = " qju.sfe_memo!= null " >sfe_memo,</if>
  1531. <if test = " qju.mst_id!= null " >mst_id,</if>
  1532. <if test = " qju.mst_result_code!= null " >mst_result_code,</if>
  1533. <if test = " qju.mst_result_desc!= null " >mst_result_desc,</if>
  1534. <if test = " qju.mst_memo!= null " >mst_memo,</if>
  1535. <if test = " qju.fst_id!= null " >fst_id,</if>
  1536. <if test = " qju.fst_result_code!= null " >fst_result_code,</if>
  1537. <if test = " qju.fst_result_desc!= null " >fst_result_desc,</if>
  1538. <if test = " qju.fst_memo!= null " >fst_memo,</if>
  1539. <if test = " qju.fst_reason!= null " >fst_reason,</if>
  1540. <if test = " qju.utm_result_code!= null " >utm_result_code,</if>
  1541. <if test = " qju.utm_result_desc!= null " >utm_result_desc,</if>
  1542. <if test = " qju.utm_reason!= null " >utm_reason,</if>
  1543. <if test = " qju.utm_memo!= null " >utm_memo,</if>
  1544. <if test = " qju.pline_code!= null " >pline_code,</if>
  1545. <if test = " qju.pline_name!= null " >pline_name,</if>
  1546. <if test = " qju.judge_name!= null " >judge_name,</if>
  1547. <if test = " qju.judge_name!= null " >judge_time,</if>
  1548. <if test = " qju.psc_desc!= null " >psc_desc,</if>
  1549. <if test = " qju.prod_code!= null " >prod_code,</if>
  1550. <if test = " qju.prod_name!= null " >prod_name,</if>
  1551. <if test = " qju.steel_code!= null " >steel_code,</if>
  1552. <if test = " qju.steel_name!= null " >steel_name,</if>
  1553. <if test = " qju.std_code!= null " >std_code,</if>
  1554. <if test = " qju.std_name!= null " >std_name,</if>
  1555. <if test = " qju.r_cic_id!= null " >r_cic_id,</if>
  1556. <if test = " qju.r_cic_result_code!= null " >r_cic_result_code,</if>
  1557. <if test = " qju.r_cic_result_desc!= null " >r_cic_result_desc,</if>
  1558. <if test = " qju.product_name!= null " >product_name,</if>
  1559. <if test = " qju.judge_reason!= null " >judge_reason,</if>
  1560. <if test = " qju.judge_memo!= null " >judge_memo,</if>
  1561. <if test = " qju.cancel_memo!= null">cancel_memo,</if>
  1562. <if test = " qju.check_remarks!= null " >check_remarks,</if>
  1563. <if test = " qju.fix_remarks!= null " >fix_remarks,</if>
  1564. <if test = " qju.tic_id!= null " >tic_id,</if>
  1565. <if test = " qju.tic_result_code!= null " >tic_result_code,</if>
  1566. <if test = " qju.tic_result_desc!= null " >tic_result_desc,</if>
  1567. </trim> values
  1568. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1569. <if test = " qju.utm_id!= null " >#{qju.utm_id,jdbcType =VARCHAR},</if>
  1570. <if test = " qju.design_key!= null " >#{qju.design_key,jdbcType =VARCHAR},</if>
  1571. <if test = " qju.heat_no!= null " >#{qju.heat_no,jdbcType =VARCHAR},</if>
  1572. <if test = " qju.batch_no!= null " >#{qju.batch_no,jdbcType =VARCHAR},</if>
  1573. <if test = " qju.board_no!= null " >#{qju.board_no,jdbcType =VARCHAR},</if>
  1574. <if test = " qju.inspection_lot!= null " >#{qju.inspection_lot,jdbcType =VARCHAR},</if>
  1575. <if test = " qju.material_no!= null " >#{qju.material_no,jdbcType =VARCHAR},</if>
  1576. <if test = " qju.contract_line_no!= null " >#{qju.contract_line_no,jdbcType =VARCHAR},</if>
  1577. <if test = " qju.psc!= null " >#{qju.psc,jdbcType =VARCHAR},</if>
  1578. <if test = " qju.box_no!= null " >#qju.box_no,jdbcType =VARCHAR},</if>
  1579. <if test = " qju.cic_id!= null " >#{qju.cic_id,jdbcType =VARCHAR},</if>
  1580. <if test = " qju.cic_result_code!= null " >#{qju.cic_result_code,jdbcType =VARCHAR},</if>
  1581. <if test = " qju.cic_result_desc!= null " >#{qju.cic_result_desc,jdbcType =VARCHAR},</if>
  1582. <if test = " qju.cic_memo!= null " >#{qju.cic_memo,jdbcType =VARCHAR},</if>
  1583. <if test = " qju.pic_id!= null " >#{qju.pic_id,jdbcType =VARCHAR},</if>
  1584. <if test = " qju.pic_result_code!= null " >#{qju.pic_result_code,jdbcType =VARCHAR},</if>
  1585. <if test = " qju.pic_result_desc!= null " >#{qju.pic_result_desc,jdbcType =VARCHAR},</if>
  1586. <if test = " qju.pic_memo!= null " >#{qju.pic_memo,jdbcType =VARCHAR},</if>
  1587. <if test = " qju.sic_id!= null " >#{qju.sic_id,jdbcType =VARCHAR},</if>
  1588. <if test = " qju.sic_result_code!= null " >#{qju.sic_result_code,jdbcType =VARCHAR},</if>
  1589. <if test = " qju.sic_result_desc!= null " >#{qju.sic_result_desc,jdbcType =VARCHAR},</if>
  1590. <if test = " qju.sic_memo!= null " >#{qju.sic_memo,jdbcType =VARCHAR},</if>
  1591. <if test = " qju.dic_id!= null " >#{qju.dic_id,jdbcType =VARCHAR},</if>
  1592. <if test = " qju.dic_result_code!= null " >#{qju.dic_result_code,jdbcType =VARCHAR},</if>
  1593. <if test = " qju.dic_result_desc!= null " >#{qju.dic_result_desc,jdbcType =VARCHAR},</if>
  1594. <if test = " qju.dic_memo!= null " >#{qju.dic_memo,jdbcType =VARCHAR}_MEMO,</if>
  1595. <if test = " qju.sfu_id!= null " >#{qju.sfu_id,jdbcType =VARCHAR},</if>
  1596. <if test = " qju.sfu_result_code!= null " >#{qju.sfu_result_code,jdbcType =VARCHAR},</if>
  1597. <if test = " qju.sfu_result_desc!= null " >#{qju.sfu_result_desc,jdbcType =VARCHAR},</if>
  1598. <if test = " qju.sfu_memo!= null " >#{qju.sfu_memo,jdbcType =VARCHAR},</if>
  1599. <if test = " qju.sfd_id!= null " >#{qju.sfd_id,jdbcType =VARCHAR},</if>
  1600. <if test = " qju.sfd_result_code!= null " >#{qju.sfd_result_code,jdbcType =VARCHAR},</if>
  1601. <if test = " qju.sfd_result_desc!= null " >#{qju.sfd_result_desc,jdbcType =VARCHAR},</if>
  1602. <if test = " qju.sfd_memo!= null " >#{qju.sfd_memo,jdbcType =VARCHAR},</if>
  1603. <if test = " qju.sfe_id!= null " >#{qju.sfe_id,jdbcType =VARCHAR},</if>
  1604. <if test = " qju.sfe_result_code!= null " >#{qju.sfe_result_code,jdbcType =VARCHAR},</if>
  1605. <if test = " qju.sfe_result_desc!= null " >#{qju.sfe_result_desc,jdbcType =VARCHAR},</if>
  1606. <if test = " qju.sfe_memo!= null " >#{qju.sfe_memo,jdbcType =VARCHAR},</if>
  1607. <if test = " qju.mst_id!= null " >#{qju.mst_id,jdbcType =VARCHAR},</if>
  1608. <if test = " qju.mst_result_code!= null " >#{qju.mst_result_code,jdbcType =VARCHAR},</if>
  1609. <if test = " qju.mst_result_desc!= null " >#{qju.mst_result_desc,jdbcType =VARCHAR},</if>
  1610. <if test = " qju.mst_memo!= null " >#{qju.mst_memo,jdbcType =VARCHAR},</if>
  1611. <if test = " qju.fst_id!= null " >#{qju.fst_id,jdbcType =VARCHAR},</if>
  1612. <if test = " qju.fst_result_code!= null " >#{qju.fst_result_code,jdbcType =VARCHAR},</if>
  1613. <if test = " qju.fst_result_desc!= null " >#{qju.fst_result_desc,jdbcType =VARCHAR},</if>
  1614. <if test = " qju.fst_memo!= null " >#{qju.fst_memo,jdbcType =VARCHAR},</if>
  1615. <if test = " qju.fst_reason!= null " >#{qju.fst_reason,jdbcType =VARCHAR},</if>
  1616. <if test = " qju.utm_result_code!= null " >#{qju.utm_result_code,jdbcType =VARCHAR},</if>
  1617. <if test = " qju.utm_result_desc!= null " >#{qju.utm_result_desc,jdbcType =VARCHAR},</if>
  1618. <if test = " qju.utm_reason!= null " >#{qju.utm_reason,jdbcType =VARCHAR},</if>
  1619. <if test = " qju.utm_memo!= null " >#{qju.utm_memo,jdbcType =VARCHAR},</if>
  1620. <if test = " qju.pline_code!= null " >#{qju.pline_code,jdbcType =VARCHAR},</if>
  1621. <if test = " qju.pline_name!= null " >#{qju.pline_name,jdbcType =VARCHAR},</if>
  1622. <if test = " qju.judge_name!= null " >#{qju.judge_name,jdbcType =VARCHAR},</if>
  1623. <if test = " qju.judge_name!= null " >sysdate,</if>
  1624. <if test = " qju.psc_desc!= null " >#{qju.psc_desc,jdbcType =VARCHAR},</if>
  1625. <if test = " qju.prod_code!= null " >#{qju.prod_code,jdbcType =VARCHAR},</if>
  1626. <if test = " qju.prod_name!= null " >#{qju.prod_name,jdbcType =VARCHAR},</if>
  1627. <if test = " qju.steel_code!= null " >#{qju.steel_code,jdbcType =VARCHAR},</if>
  1628. <if test = " qju.steel_name!= null " >#{qju.steel_name,jdbcType =VARCHAR},</if>
  1629. <if test = " qju.std_code!= null " >#{qju.std_code,jdbcType =VARCHAR},</if>
  1630. <if test = " qju.std_name!= null " >#{qju.std_name,jdbcType =VARCHAR},</if>
  1631. <if test = " qju.r_cic_id!= null " >#{qju.r_cic_id,jdbcType =VARCHAR},</if>
  1632. <if test = " qju.r_cic_result_code!= null " >#{qju.r_cic_result_code,jdbcType =VARCHAR},</if>
  1633. <if test = " qju.r_cic_result_desc!= null " >#{qju.r_cic_result_desc,jdbcType =VARCHAR},</if>
  1634. <if test = " qju.product_name!= null " >#{qju.product_name,jdbcType =VARCHAR},</if>
  1635. <if test = " qju.judge_reason!= null " >#{qju.judge_reason,jdbcType =VARCHAR},</if>
  1636. <if test = " qju.judge_memo!= null " >#{qju.judge_memo,jdbcType =VARCHAR},</if>
  1637. <if test = " qju.cancel_memo!= null ">#{qju.cancel_memo,jdbcType =VARCHAR},</if>
  1638. <if test = " qju.check_remarks!= null " >#{qju.check_remarks,jdbcType =VARCHAR},</if>
  1639. <if test = " qju.fix_remarks!= null " >#{qju.fix_remarks,jdbcType =VARCHAR},</if>
  1640. <if test = " qju.tic_id!= null " >#{qju.tic_id,jdbcType =VARCHAR},</if>
  1641. <if test = " qju.tic_result_code!= null " >#{qju.tic_result_code,jdbcType =VARCHAR},</if>
  1642. <if test = " qju.tic_result_desc!= null " >#{qju.tic_result_desc,jdbcType =VARCHAR},</if>
  1643. </trim>
  1644. </insert>
  1645. <insert id="insertQCMJudgeLocking" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  1646. insert into qcm_judge_locking
  1647. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1648. <if test = " q.material_no!= null " >material_no,</if>
  1649. <if test = " q.lock_seq!= null " >lock_seq,</if>
  1650. <if test = " q.lock_type_code!= null " >lock_type_code,</if>
  1651. <if test = " q.lock_type_desc!= null " >lock_type_desc,</if>
  1652. <if test = " q.lock_memo!= null " >lock_memo,</if>
  1653. <if test = " q.unlock_type_code!= null " >unlock_type_code,</if>
  1654. <if test = " q.unlock_type_desc!= null " >unlock_type_desc,</if>
  1655. <if test = " q.unlock_memo!= null " >unlock_memo,</if>
  1656. <if test = " q.target_design_key!= null " >target_design_key,</if>
  1657. <if test = " q.target_psc!= null " >target_psc,</if>
  1658. <if test = " q.heat_no!= null " >heat_no,</if>
  1659. <if test = " q.batch_no!= null " >batch_no,</if>
  1660. <if test = " q.board_no!= null " >board_no,</if>
  1661. <if test = " q.plan_no!= null " >plan_no,</if>
  1662. <if test = " q.ht_no!= null " >ht_no,</if>
  1663. <if test = " q.design_key!= null " >design_key,</if>
  1664. <if test = " q.psc!= null " >psc,</if>
  1665. <if test = " q.fic_locking!= null " >fic_locking,</if>
  1666. <if test = " q.sic_locking!= null " >sic_locking,</if>
  1667. <if test = " q.pic_locking!= null " >pic_locking,</if>
  1668. <if test = " q.dic_locking!= null " >dic_locking,</if>
  1669. <if test = " q.lock_name!= null " >lock_name,</if>
  1670. <if test = " q.lock_name!= null " >lock_time,</if>
  1671. <if test = " q.psc_desc!= null " >psc_desc,</if>
  1672. <if test = " q.pline_code!= null " >pline_code,</if>
  1673. <if test = " q.pline_name!= null " >pline_name,</if>
  1674. <if test = " q.cic_locking!= null " >cic_locking,</if>
  1675. <if test = " q.prod_code!= null " >prod_code,</if>
  1676. <if test = " q.prod_name!= null " >prod_name,</if>
  1677. <if test = " q.steel_code!= null " >steel_code,</if>
  1678. <if test = " q.steel_name!= null " >steel_name,</if>
  1679. <if test = " q.std_code!= null " >std_code,</if>
  1680. <if test = " q.std_name!= null " >std_name,</if>
  1681. <if test = " q.lock_id!= null " >lock_id,</if>
  1682. <if test = " q.reason_code!= null " >reason_code,</if>
  1683. <if test = " q.reason_desc!= null " >reason_desc,</if>
  1684. <if test = " q.flaw_code!= null " >flaw_code,</if>
  1685. <if test = " q.flaw_desc!= null " >flaw_desc,</if>
  1686. <if test = " q.lock_name!= null ">create_name,</if>
  1687. <if test = " q.unlock_name!= null ">unlock_name,</if>
  1688. <if test = " q.unlock_name!= null " >unlock_time,</if>
  1689. <if test = " q.check_remarks!= null " >check_remarks,</if>
  1690. <if test = " q.fix_remarks!= null " >fix_remarks,</if>
  1691. <if test = " q.height!= null">height,</if>
  1692. </trim> values
  1693. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1694. <if test = " q.material_no!= null " >#{q.material_no,jdbcType =VARCHAR},</if>
  1695. <if test = " q.lock_seq!= null " >#{q.lock_seq,jdbcType =NUMERIC},</if>
  1696. <if test = " q.lock_type_code!= null " >#{q.lock_type_code,jdbcType =VARCHAR},</if>
  1697. <if test = " q.lock_type_desc!= null " >#{q.lock_type_desc,jdbcType =VARCHAR},</if>
  1698. <if test = " q.lock_memo!= null " >#{q.lock_memo,jdbcType =VARCHAR},</if>
  1699. <if test = " q.unlock_type_code!= null " >#{q.unlock_type_code,jdbcType =VARCHAR},</if>
  1700. <if test = " q.unlock_type_desc!= null " >#{q.unlock_type_desc,jdbcType =VARCHAR},</if>
  1701. <if test = " q.unlock_memo!= null " >#{q.unlock_memo,jdbcType =VARCHAR},</if>
  1702. <if test = " q.target_design_key!= null " >#{q.target_design_key,jdbcType =VARCHAR},</if>
  1703. <if test = " q.target_psc!= null " >#{q.target_psc,jdbcType =VARCHAR},</if>
  1704. <if test = " q.heat_no!= null " >#{q.heat_no,jdbcType =VARCHAR},</if>
  1705. <if test = " q.batch_no!= null " >#{q.batch_no,jdbcType =VARCHAR},</if>
  1706. <if test = " q.board_no!= null " >#{q.board_no,jdbcType =VARCHAR},</if>
  1707. <if test = " q.plan_no!= null " >#{q.plan_no,jdbcType =VARCHAR},</if>
  1708. <if test = " q.ht_no!= null " >#{q.ht_no,jdbcType =VARCHAR},</if>
  1709. <if test = " q.design_key!= null " >#{q.design_key,jdbcType =VARCHAR},</if>
  1710. <if test = " q.psc!= null " >#{q.psc,jdbcType =VARCHAR},</if>
  1711. <if test = " q.fic_locking!= null " >#{q.fic_locking,jdbcType =VARCHAR},</if>
  1712. <if test = " q.sic_locking!= null " >#{q.sic_locking,jdbcType =VARCHAR},</if>
  1713. <if test = " q.pic_locking!= null " >#{q.pic_locking,jdbcType =VARCHAR},</if>
  1714. <if test = " q.dic_locking!= null " >#{q.dic_locking,jdbcType =VARCHAR},</if>
  1715. <if test = " q.lock_name!= null " >#{q.lock_name,jdbcType =VARCHAR},</if>
  1716. <if test = " q.lock_name!= null " >sysdate,</if>
  1717. <if test = " q.psc_desc!= null " >#{q.psc_desc,jdbcType =VARCHAR},</if>
  1718. <if test = " q.pline_code!= null " >#{q.pline_code,jdbcType =VARCHAR},</if>
  1719. <if test = " q.pline_name!= null " >#{q.pline_name,jdbcType =VARCHAR},</if>
  1720. <if test = " q.cic_locking!= null " >#{q.cic_locking,jdbcType =VARCHAR},</if>
  1721. <if test = " q.prod_code!= null " >#{q.prod_code,jdbcType =VARCHAR},</if>
  1722. <if test = " q.prod_name!= null " >#{q.prod_name,jdbcType =VARCHAR},</if>
  1723. <if test = " q.steel_code!= null " >#{q.steel_code,jdbcType =VARCHAR},</if>
  1724. <if test = " q.steel_name!= null " >#{q.steel_name,jdbcType =VARCHAR},</if>
  1725. <if test = " q.std_code!= null " >#{q.std_code,jdbcType =VARCHAR},</if>
  1726. <if test = " q.std_name!= null " >#{q.std_name,jdbcType =VARCHAR},</if>
  1727. <if test = " q.lock_id!= null " >#{q.lock_id,jdbcType =VARCHAR},</if>
  1728. <if test = " q.reason_code!= null " >#{q.reason_code,jdbcType =VARCHAR},</if>
  1729. <if test = " q.reason_desc!= null " >#{q.reason_desc,jdbcType =VARCHAR},</if>
  1730. <if test = " q.flaw_code!= null " >#{q.flaw_code,jdbcType =VARCHAR},</if>
  1731. <if test = " q.flaw_desc!= null " >#{q.flaw_desc,jdbcType =VARCHAR},</if>
  1732. <if test = " q.lock_name!= null ">#{q.lock_name,jdbcType =VARCHAR},</if>
  1733. <if test = " q.unlock_name!= null " >#{q.unlock_name,jdbcType =VARCHAR},</if>
  1734. <if test = " q.unlock_name!= null " >sysdate,</if>
  1735. <if test = " q.check_remarks!= null " >#{q.check_remarks,jdbcType =VARCHAR},</if>
  1736. <if test = " q.fix_remarks!= null " >#{q.fix_remarks,jdbcType =VARCHAR},</if>
  1737. <if test = " q.height!= null">#{q.height,jdbcType =VARCHAR},</if>
  1738. </trim>
  1739. </insert>
  1740. <insert id="insertQCMJudgeLockingApply" parameterType= "QCM.COMMUNAL.VO.QcmJudgeLockingApply">
  1741. insert into qcm_judge_locking_apply
  1742. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1743. <if test = " q.apply_id!= null " >apply_id,</if>
  1744. <if test = " q.material_no!= null " >material_no,</if>
  1745. <if test = " q.lock_seq!= null " >lock_seq,</if>
  1746. <if test = " q.lock_type_code!= null " >lock_type_code,</if>
  1747. <if test = " q.lock_type_desc!= null " >lock_type_desc,</if>
  1748. <if test = " q.lock_memo!= null " >lock_memo,</if>
  1749. <if test = " q.unlock_type_code!= null " >unlock_type_code,</if>
  1750. <if test = " q.unlock_type_desc!= null " >unlock_type_desc,</if>
  1751. <if test = " q.unlock_memo!= null " >unlock_memo,</if>
  1752. <if test = " q.heat_no!= null " >heat_no,</if>
  1753. <if test = " q.batch_no!= null " >batch_no,</if>
  1754. <if test = " q.board_no!= null " >board_no,</if>
  1755. <if test = " q.plan_no!= null " >plan_no,</if>
  1756. <if test = " q.ht_no!= null " >ht_no,</if>
  1757. <if test = " q.design_key!= null " >design_key,</if>
  1758. <if test = " q.psc!= null " >psc,</if>
  1759. <if test = " q.psc_desc!= null " >psc_desc,</if>
  1760. <if test = " q.pline_code!= null " >pline_code,</if>
  1761. <if test = " q.pline_name!= null " >pline_name,</if>
  1762. <if test = " q.prod_code!= null " >prod_code,</if>
  1763. <if test = " q.prod_name!= null " >prod_name,</if>
  1764. <if test = " q.steel_code!= null " >steel_code,</if>
  1765. <if test = " q.steel_name!= null " >steel_name,</if>
  1766. <if test = " q.std_code!= null " >std_code,</if>
  1767. <if test = " q.std_name!= null " >std_name,</if>
  1768. <if test = " q.lock_id!= null " >lock_id,</if>
  1769. <if test = " q.create_id!= null " >create_id,</if>
  1770. <if test = " q.create_name!= null " >create_name,</if>
  1771. <if test = " q.create_name!= null " >create_time,</if>
  1772. <if test = " q.height!= null " >height,</if>
  1773. <if test = " q.cancel_name!= null ">cancel_name,</if>
  1774. <if test = " q.cancel_time!= null ">cancel_time,</if>
  1775. <if test = " q.cancel_memo!= null " >cancel_memo,</if>
  1776. <if test = " q.status!= null " >status,</if>
  1777. <if test = " q.check_name!= null " >check_name,</if>
  1778. <if test = " q.check_name!= null">check_time,</if>
  1779. </trim> values
  1780. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  1781. <if test = " q.apply_id!= null " >#{q.apply_id,jdbcType =VARCHAR},</if>
  1782. <if test = " q.material_no!= null " >#{q.material_no,jdbcType =VARCHAR},</if>
  1783. <if test = " q.lock_seq!= null " >#{q.lock_seq,jdbcType =NUMERIC},</if>
  1784. <if test = " q.lock_type_code!= null " >#{q.lock_type_code,jdbcType =VARCHAR},</if>
  1785. <if test = " q.lock_type_desc!= null " >#{q.lock_type_desc,jdbcType =VARCHAR},</if>
  1786. <if test = " q.lock_memo!= null " >#{q.lock_memo,jdbcType =VARCHAR},</if>
  1787. <if test = " q.unlock_type_code!= null " >#{q.unlock_type_code,jdbcType =VARCHAR},</if>
  1788. <if test = " q.unlock_type_desc!= null " >#{q.unlock_type_desc,jdbcType =VARCHAR},</if>
  1789. <if test = " q.unlock_memo!= null " >#{q.unlock_memo,jdbcType =VARCHAR},</if>
  1790. <if test = " q.heat_no!= null " >#{q.heat_no,jdbcType =VARCHAR},</if>
  1791. <if test = " q.batch_no!= null " >#{q.batch_no,jdbcType =VARCHAR},</if>
  1792. <if test = " q.board_no!= null " >#{q.board_no,jdbcType =VARCHAR},</if>
  1793. <if test = " q.plan_no!= null " >#{q.plan_no,jdbcType =VARCHAR},</if>
  1794. <if test = " q.ht_no!= null " >#{q.ht_no,jdbcType =VARCHAR},</if>
  1795. <if test = " q.design_key!= null " >#{q.design_key,jdbcType =VARCHAR},</if>
  1796. <if test = " q.psc!= null " >#{q.psc,jdbcType =VARCHAR},</if>
  1797. <if test = " q.psc_desc!= null " >#{q.psc_desc,jdbcType =VARCHAR},</if>
  1798. <if test = " q.pline_code!= null " >#{q.pline_code,jdbcType =VARCHAR},</if>
  1799. <if test = " q.pline_name!= null " >#{q.pline_name,jdbcType =VARCHAR},</if>
  1800. <if test = " q.prod_code!= null " >#{q.prod_code,jdbcType =VARCHAR},</if>
  1801. <if test = " q.prod_name!= null " >#{q.prod_name,jdbcType =VARCHAR},</if>
  1802. <if test = " q.steel_code!= null " >#{q.steel_code,jdbcType =VARCHAR},</if>
  1803. <if test = " q.steel_name!= null " >#{q.steel_name,jdbcType =VARCHAR},</if>
  1804. <if test = " q.std_code!= null " >#{q.std_code,jdbcType =VARCHAR},</if>
  1805. <if test = " q.std_name!= null " >#{q.std_name,jdbcType =VARCHAR},</if>
  1806. <if test = " q.lock_id!= null " >#{q.lock_id,jdbcType =VARCHAR},</if>
  1807. <if test = " q.create_id!= null " >#{q.create_id,jdbcType =VARCHAR},</if>
  1808. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  1809. <if test = " q.create_name!= null " >sysdate,</if>
  1810. <if test = " q.height!= null">#{q.height,jdbcType =VARCHAR},</if>
  1811. <if test = " q.cancel_name!= null " >#{q.cancel_name,jdbcType =VARCHAR},</if>
  1812. <if test = " q.cancel_name!= null ">sysdate,</if>
  1813. <if test = " q.cancel_memo!= null " >#{q.cancel_memo,jdbcType =VARCHAR},</if>
  1814. <if test = " q.status!= null " >#{q.status,jdbcType =VARCHAR},</if>
  1815. <if test = " q.check_name!= null " >#{q.check_name,jdbcType =VARCHAR},</if>
  1816. <if test = " q.check_name!= null " >sysdate,</if>
  1817. </trim>
  1818. </insert>
  1819. <update id = "UpdateSurfaceFlaw">
  1820. update QCM_JUDGE_SURFACE_FLAW t
  1821. set t.IS_REPAIR = #{flag}
  1822. where t.SURFACE_ID = #{sufId}
  1823. and t.FLAW_SEQ = #{FlawSeq}
  1824. </update>
  1825. <update id = "UpdateSurfaceFlaws">
  1826. update QCM_JUDGE_SURFACE_FLAW t
  1827. set t.IS_REPAIR = #{flag},
  1828. t.fixed_type_desc = #{fixed_type_desc},
  1829. t.fixed_thick = #{fixed_thick}
  1830. where t.SURFACE_ID = #{sufId}
  1831. and t.FLAW_SEQ = #{FlawSeq}
  1832. </update>
  1833. <update id = "UpdateQcmJudgeLocking" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  1834. update qcm_judge_locking
  1835. set UNLOCK_TYPE_CODE = #{qjl.unlock_type_code,jdbcType =VARCHAR },
  1836. UNLOCK_TYPE_DESC = #{qjl.unlock_type_desc,jdbcType =VARCHAR },
  1837. UNLOCK_MEMO = #{qjl.unlock_memo,jdbcType =VARCHAR },
  1838. TARGET_DESIGN_KEY = #{qjl.target_design_key,jdbcType =VARCHAR },
  1839. TARGET_PSC = #{qjl.target_psc,jdbcType =VARCHAR },
  1840. CIC_LOCKING = #{qjl.cic_locking,jdbcType =VARCHAR },
  1841. FIC_LOCKING = #{qjl.fic_locking,jdbcType =VARCHAR },
  1842. SIC_LOCKING = #{qjl.sic_locking,jdbcType =VARCHAR },
  1843. PIC_LOCKING = #{qjl.pic_locking,jdbcType =VARCHAR },
  1844. DIC_LOCKING = #{qjl.dic_locking,jdbcType =VARCHAR },
  1845. UNLOCK_NAME = #{qjl.unlock_name,jdbcType =VARCHAR },
  1846. <if test = " qjl.status != null ">
  1847. status= #{qjl.status,jdbcType =VARCHAR},
  1848. </if>
  1849. <if test = " qjl.apply_id != null ">
  1850. apply_id = #{qjl.apply_id,jdbcType =VARCHAR },
  1851. </if>
  1852. UNLOCK_TIME = sysdate,
  1853. reason_code= #{qjl.reason_code,jdbcType =VARCHAR},
  1854. reason_desc= #{qjl.reason_desc,jdbcType =VARCHAR},
  1855. flaw_code= #{qjl.flaw_code,jdbcType =VARCHAR},
  1856. flaw_desc= #{qjl.flaw_desc,jdbcType =VARCHAR},
  1857. unlock_result = #{qjl.unlock_result,jdbcType =VARCHAR}
  1858. where MATERIAL_NO = #{qjl.material_no,jdbcType =VARCHAR }
  1859. and LOCK_SEQ = #{qjl.lock_seq,jdbcType =VARCHAR }
  1860. </update>
  1861. <update id = "UpdateQcmJudgeLocking4" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  1862. update qcm_judge_locking
  1863. set steel_code = #{qjl.steel_code,jdbcType =VARCHAR },
  1864. steel_name = #{qjl.steel_name,jdbcType =VARCHAR }
  1865. where MATERIAL_NO = #{qjl.material_no,jdbcType =VARCHAR }
  1866. and LOCK_SEQ = #{qjl.lock_seq,jdbcType =VARCHAR }
  1867. </update>
  1868. <update id = "UpdateQcmJudgeLocking5" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  1869. update qcm_judge_locking
  1870. set unlock_type_code = #{qjl.unlock_type_code,jdbcType =VARCHAR },
  1871. unlock_type_desc = #{qjl.unlock_type_desc,jdbcType =VARCHAR }
  1872. where MATERIAL_NO = #{qjl.material_no,jdbcType =VARCHAR }
  1873. and LOCK_SEQ = #{qjl.lock_seq,jdbcType =VARCHAR }
  1874. </update>
  1875. <update id = "UpdateQcmJudgeLocking9" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  1876. update qcm_judge_locking
  1877. set valid_flag = #{qjl.valid_flag,jdbcType =VARCHAR },
  1878. cancel_name = #{qjl.cancel_name,jdbcType =VARCHAR },
  1879. cancel_memo = #{qjl.cancel_memo,jdbcType =VARCHAR },
  1880. cancel_time = sysdate
  1881. where MATERIAL_NO = #{qjl.material_no,jdbcType =VARCHAR }
  1882. and LOCK_SEQ = #{qjl.lock_seq,jdbcType =VARCHAR }
  1883. </update>
  1884. <update id = "UpdateQcmJudgeLocking2" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  1885. update qcm_judge_locking
  1886. set UNLOCK_TYPE_CODE = #{qjl.unlock_type_code,jdbcType =VARCHAR },
  1887. UNLOCK_TYPE_DESC = #{qjl.unlock_type_desc,jdbcType =VARCHAR },
  1888. UNLOCK_MEMO = #{qjl.unlock_memo,jdbcType =VARCHAR },
  1889. TARGET_DESIGN_KEY = #{qjl.target_design_key,jdbcType =VARCHAR },
  1890. TARGET_PSC = #{qjl.target_psc,jdbcType =VARCHAR },
  1891. CIC_LOCKING = #{qjl.cic_locking,jdbcType =VARCHAR },
  1892. FIC_LOCKING = #{qjl.fic_locking,jdbcType =VARCHAR },
  1893. SIC_LOCKING = #{qjl.sic_locking,jdbcType =VARCHAR },
  1894. PIC_LOCKING = #{qjl.pic_locking,jdbcType =VARCHAR },
  1895. DIC_LOCKING = #{qjl.dic_locking,jdbcType =VARCHAR },
  1896. UNLOCK_NAME = #{qjl.unlock_name,jdbcType =VARCHAR },
  1897. UNLOCK_TIME = sysdate,
  1898. <if test = " qjl.apply_id != null ">
  1899. apply_id = #{qjl.apply_id,jdbcType =VARCHAR },
  1900. </if>
  1901. reason_code= #{qjl.reason_code,jdbcType =VARCHAR},
  1902. reason_desc= #{qjl.reason_desc,jdbcType =VARCHAR},
  1903. flaw_code= #{qjl.flaw_code,jdbcType =VARCHAR},
  1904. flaw_desc= #{qjl.flaw_desc,jdbcType =VARCHAR},
  1905. check_remarks= #{qjl.check_remarks,jdbcType =VARCHAR},
  1906. fix_remarks= #{qjl.fix_remarks,jdbcType =VARCHAR},
  1907. unlock_result = #{qjl.unlock_result,jdbcType =VARCHAR}
  1908. where MATERIAL_NO = #{qjl.material_no,jdbcType =VARCHAR }
  1909. and LOCK_TYPE_CODE = #{qjl.lock_type_code,jdbcType =VARCHAR }
  1910. and unlock_type_code is null
  1911. </update>
  1912. <update id = "UpdateQcmJudgeLocking1" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  1913. update qcm_judge_locking
  1914. set UNLOCK_TYPE_CODE = #{qjl.unlock_type_code,jdbcType =VARCHAR },
  1915. UNLOCK_TYPE_DESC = #{qjl.unlock_type_desc,jdbcType =VARCHAR },
  1916. UNLOCK_MEMO = #{qjl.unlock_memo,jdbcType =VARCHAR },
  1917. TARGET_DESIGN_KEY = #{qjl.target_design_key,jdbcType =VARCHAR },
  1918. TARGET_PSC = #{qjl.target_psc,jdbcType =VARCHAR },
  1919. CIC_LOCKING = #{qjl.cic_locking,jdbcType =VARCHAR },
  1920. FIC_LOCKING = #{qjl.fic_locking,jdbcType =VARCHAR },
  1921. SIC_LOCKING = #{qjl.sic_locking,jdbcType =VARCHAR },
  1922. PIC_LOCKING = #{qjl.pic_locking,jdbcType =VARCHAR },
  1923. DIC_LOCKING = #{qjl.dic_locking,jdbcType =VARCHAR },
  1924. UNLOCK_NAME = #{qjl.unlock_name,jdbcType =VARCHAR },
  1925. UNLOCK_TIME = sysdate,
  1926. reason_code= #{qjl.reason_code,jdbcType =VARCHAR},
  1927. reason_desc= #{qjl.reason_desc,jdbcType =VARCHAR},
  1928. flaw_code= #{qjl.flaw_code,jdbcType =VARCHAR},
  1929. flaw_desc= #{qjl.flaw_desc,jdbcType =VARCHAR},
  1930. unlock_result = #{qjl.unlock_result,jdbcType =VARCHAR}
  1931. where 1= 1
  1932. and batch_no = #{qjl.batch_no,jdbcType =VARCHAR}
  1933. <if test = " qjl.material_no!= null " >
  1934. and material_no = #{qjl.material_no,jdbcType =VARCHAR}
  1935. </if>
  1936. <if test = " qjl.lock_id!= null " >
  1937. and lock_id = #{qjl.lock_id,jdbcType =VARCHAR}
  1938. </if>
  1939. and unlock_type_code is null
  1940. and LOCK_TYPE_CODE = #{qjl.lock_type_code,jdbcType =VARCHAR }
  1941. </update>
  1942. <update id = "UpdateQcmJudgeLocking7" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  1943. update qcm_judge_locking
  1944. set UNLOCK_TYPE_CODE = #{qjl.unlock_type_code,jdbcType =VARCHAR },
  1945. UNLOCK_TYPE_DESC = #{qjl.unlock_type_desc,jdbcType =VARCHAR },
  1946. UNLOCK_MEMO = #{qjl.unlock_memo,jdbcType =VARCHAR },
  1947. TARGET_DESIGN_KEY = #{qjl.target_design_key,jdbcType =VARCHAR },
  1948. TARGET_PSC = #{qjl.target_psc,jdbcType =VARCHAR },
  1949. CIC_LOCKING = #{qjl.cic_locking,jdbcType =VARCHAR },
  1950. FIC_LOCKING = #{qjl.fic_locking,jdbcType =VARCHAR },
  1951. SIC_LOCKING = #{qjl.sic_locking,jdbcType =VARCHAR },
  1952. PIC_LOCKING = #{qjl.pic_locking,jdbcType =VARCHAR },
  1953. DIC_LOCKING = #{qjl.dic_locking,jdbcType =VARCHAR },
  1954. UNLOCK_NAME = #{qjl.unlock_name,jdbcType =VARCHAR },
  1955. UNLOCK_TIME = sysdate,
  1956. reason_code= #{qjl.reason_code,jdbcType =VARCHAR},
  1957. reason_desc= #{qjl.reason_desc,jdbcType =VARCHAR},
  1958. flaw_code= #{qjl.flaw_code,jdbcType =VARCHAR},
  1959. flaw_desc= #{qjl.flaw_desc,jdbcType =VARCHAR},
  1960. unlock_result = #{qjl.unlock_result,jdbcType =VARCHAR}
  1961. where 1= 1
  1962. and batch_no != #{qjl.batch_no,jdbcType =VARCHAR}
  1963. <if test=" qjl.heat_no != null">
  1964. and heat_no = #{qjl.heat_no,jdbcType =VARCHAR}
  1965. </if>
  1966. <if test = " qjl.material_no!= null " >
  1967. and material_no = #{qjl.material_no,jdbcType =VARCHAR}
  1968. </if>
  1969. and unlock_type_code is null
  1970. and LOCK_TYPE_CODE = #{qjl.lock_type_code,jdbcType =VARCHAR }
  1971. </update>
  1972. <update id = "UpdateQcmJudgeLocking3" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  1973. update qcm_judge_locking
  1974. set UNLOCK_TYPE_CODE = #{qjl.unlock_type_code,jdbcType =VARCHAR },
  1975. UNLOCK_TYPE_DESC = #{qjl.unlock_type_desc,jdbcType =VARCHAR },
  1976. <if test = " qjl.unlock_memo != null ">
  1977. UNLOCK_MEMO = #{qjl.unlock_memo,jdbcType =VARCHAR },
  1978. </if>
  1979. <if test = " qjl.apply_id != null ">
  1980. apply_id = #{qjl.apply_id,jdbcType =VARCHAR },
  1981. </if>
  1982. TARGET_DESIGN_KEY = #{qjl.target_design_key,jdbcType =VARCHAR },
  1983. TARGET_PSC = #{qjl.target_psc,jdbcType =VARCHAR },
  1984. CIC_LOCKING = #{qjl.cic_locking,jdbcType =VARCHAR },
  1985. FIC_LOCKING = #{qjl.fic_locking,jdbcType =VARCHAR },
  1986. SIC_LOCKING = #{qjl.sic_locking,jdbcType =VARCHAR },
  1987. PIC_LOCKING = #{qjl.pic_locking,jdbcType =VARCHAR },
  1988. DIC_LOCKING = #{qjl.dic_locking,jdbcType =VARCHAR },
  1989. <if test = " qjl.unlock_name != null ">
  1990. UNLOCK_NAME = #{qjl.unlock_name,jdbcType =VARCHAR },
  1991. </if>
  1992. <if test = " qjl.unlock_name != null ">
  1993. UNLOCK_TIME = sysdate,
  1994. </if>
  1995. <if test = " qjl.reason_code != null ">
  1996. reason_code= #{qjl.reason_code,jdbcType =VARCHAR},
  1997. </if>
  1998. <if test = " qjl.reason_desc != null ">
  1999. reason_desc= #{qjl.reason_desc,jdbcType =VARCHAR},
  2000. </if>
  2001. flaw_code= #{qjl.flaw_code,jdbcType =VARCHAR},
  2002. flaw_desc= #{qjl.flaw_desc,jdbcType =VARCHAR},
  2003. <if test = " qjl.status != null ">
  2004. status= #{qjl.status,jdbcType =VARCHAR},
  2005. </if>
  2006. <if test = " qjl.check_name != null ">
  2007. check_name= #{qjl.check_name,jdbcType =VARCHAR},
  2008. </if>
  2009. <if test = " qjl.check_name != null ">
  2010. check_time= sysdate,
  2011. </if>
  2012. unlock_result = #{qjl.unlock_result,jdbcType =VARCHAR}
  2013. where 1= 1
  2014. and batch_no = #{qjl.batch_no,jdbcType =VARCHAR}
  2015. <if test = " qjl.material_no!= null " >
  2016. and material_no = #{qjl.material_no,jdbcType =VARCHAR}
  2017. </if>
  2018. <if test = " qjl.lock_id!= null " >
  2019. and lock_id = #{qjl.lock_id,jdbcType =VARCHAR}
  2020. </if>
  2021. and unlock_type_code is null
  2022. and LOCK_TYPE_CODE = #{qjl.lock_type_code,jdbcType =VARCHAR }
  2023. </update>
  2024. <update id = "UpdateQcmJudgeLocking6" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  2025. update qcm_judge_locking
  2026. set UNLOCK_TYPE_CODE = #{qjl.unlock_type_code,jdbcType =VARCHAR },
  2027. UNLOCK_TYPE_DESC = #{qjl.unlock_type_desc,jdbcType =VARCHAR },
  2028. UNLOCK_MEMO = #{qjl.unlock_memo,jdbcType =VARCHAR },
  2029. TARGET_DESIGN_KEY = #{qjl.target_design_key,jdbcType =VARCHAR },
  2030. TARGET_PSC = #{qjl.target_psc,jdbcType =VARCHAR },
  2031. CIC_LOCKING = #{qjl.cic_locking,jdbcType =VARCHAR },
  2032. FIC_LOCKING = #{qjl.fic_locking,jdbcType =VARCHAR },
  2033. SIC_LOCKING = #{qjl.sic_locking,jdbcType =VARCHAR },
  2034. PIC_LOCKING = #{qjl.pic_locking,jdbcType =VARCHAR },
  2035. DIC_LOCKING = #{qjl.dic_locking,jdbcType =VARCHAR },
  2036. UNLOCK_NAME = #{qjl.unlock_name,jdbcType =VARCHAR },
  2037. UNLOCK_TIME = sysdate,
  2038. reason_code= #{qjl.reason_code,jdbcType =VARCHAR},
  2039. reason_desc= #{qjl.reason_desc,jdbcType =VARCHAR},
  2040. flaw_code= #{qjl.flaw_code,jdbcType =VARCHAR},
  2041. flaw_desc= #{qjl.flaw_desc,jdbcType =VARCHAR},
  2042. unlock_result = #{qjl.unlock_result,jdbcType =VARCHAR}
  2043. where 1= 1
  2044. and batch_no = #{qjl.batch_no,jdbcType =VARCHAR}
  2045. <if test = " qjl.material_no!= null " >
  2046. and material_no like #{qjl.material_no,jdbcType =VARCHAR} || '%'
  2047. </if>
  2048. <if test = " qjl.lock_id!= null " >
  2049. and lock_id = #{qjl.lock_id,jdbcType =VARCHAR}
  2050. </if>
  2051. and unlock_type_code is null
  2052. and LOCK_TYPE_CODE = #{qjl.lock_type_code,jdbcType =VARCHAR }
  2053. </update>
  2054. <update id="UpdateQcmJhySampleROrd" parameterType = "QCM.COMMUNAL.VO.QcmJhySampleROrd">
  2055. update QCM_JHY_SAMPLE_R_ORD
  2056. set CIC_ID = null,
  2057. JUDGE_STATUS = '0',
  2058. JUDGE_RESULT_CODE = null,
  2059. JUDGE_RESULT_DESC = null,
  2060. JUDGE_NAME = null,
  2061. JUDGE_TIME = null,
  2062. JUDGE_MEMO = null
  2063. where 1=1
  2064. <if test = " q.smp_no!= null " >
  2065. and smp_no = #{q.smp_no,jdbcType =VARCHAR}
  2066. </if>
  2067. <if test = " q.inspection_lot!= null " >
  2068. and inspection_lot = #{q.inspection_lot,jdbcType =VARCHAR}
  2069. </if>
  2070. and cic_id is not null
  2071. </update>
  2072. <update id="UpdateQcmJhySampleROrd1" parameterType = "QCM.COMMUNAL.VO.QcmJhySampleROrd">
  2073. update QCM_JHY_SAMPLE_R_ORD
  2074. set phy_id = null,
  2075. JUDGE_STATUS = '0',
  2076. JUDGE_RESULT_CODE = null,
  2077. JUDGE_RESULT_DESC = null,
  2078. JUDGE_NAME = null,
  2079. JUDGE_TIME = null,
  2080. JUDGE_MEMO = null
  2081. where 1=1
  2082. <if test = " q.smp_no!= null " >
  2083. and smp_no = #{q.smp_no,jdbcType =VARCHAR}
  2084. </if>
  2085. <if test = " q.inspection_lot!= null " >
  2086. and inspection_lot = #{q.inspection_lot,jdbcType =VARCHAR}
  2087. </if>
  2088. and phy_id is not null
  2089. </update>
  2090. <update id="UpdateQcmJudgeSurface" parameterType = "QCM.COMMUNAL.VO.QcmJudgeSurface">
  2091. update qcm_judge_surface
  2092. set SFU_IS_LOCK = #{q.sfu_is_lock,jdbcType =VARCHAR},
  2093. SFD_IS_LOCK = #{q.sfd_is_lock,jdbcType =VARCHAR},
  2094. SFE_IS_LOCK = #{q.sfe_is_lock,jdbcType =VARCHAR}
  2095. where SURFACE_ID = #{q.surface_id,jdbcType =VARCHAR}
  2096. </update>
  2097. <update id="UpdateQcmJudgeSurface1" parameterType = "QCM.COMMUNAL.VO.QcmJudgeSurface">
  2098. update qcm_judge_surface
  2099. set SFU_IS_LOCK = #{q.sfu_is_lock,jdbcType =VARCHAR},
  2100. SFD_IS_LOCK = #{q.sfd_is_lock,jdbcType =VARCHAR},
  2101. SFE_IS_LOCK = #{q.sfe_is_lock,jdbcType =VARCHAR},
  2102. sf_result_code = #{q.sf_result_code,jdbcType =VARCHAR},
  2103. sf_result_desc = #{q.sf_result_desc,jdbcType =VARCHAR},
  2104. level_code = #{q.level_code,jdbcType =VARCHAR},
  2105. level_desc = #{q.level_desc,jdbcType =VARCHAR}
  2106. where SURFACE_ID = #{q.surface_id,jdbcType =VARCHAR}
  2107. </update>
  2108. <update id="UpdateQcmJudgeUltimateByUtmid">
  2109. update qcm_judge_ultimate
  2110. set <!-- UTM_RESULT_CODE = null,
  2111. UTM_RESULT_DESC = null,
  2112. UTM_REASON = null,
  2113. UTM_MEMO = null,
  2114. -->JUDGE_NAME = null,
  2115. JUDGE_TIME = null
  2116. where UTM_ID = #{utm_id}
  2117. </update>
  2118. <update id="clearCHEMRESULT">
  2119. update ZJ_RESULT_ALL@xgcx
  2120. set CHEMRESULT_DESC = null,
  2121. CHEMRESULT = '0',
  2122. CHEMID = null,
  2123. CIC_IS_LOCK = '0'
  2124. where BILLETID_JY = #{inspection_lot}
  2125. </update>
  2126. <!-- <update id="updateCHEMRESULT2">
  2127. update ZJ_RESULT_ALL@xgcx
  2128. set CHEMRESULT_DESC = #{CHEMRESULT_DESC},
  2129. CHEMRESULT = #{CHEMRESULT},
  2130. CHEMID = #{CHEMID},
  2131. CIC_IS_LOCK = #{CIC_IS_LOCK}
  2132. where BILLETID_JY = #{inspection_lot}
  2133. </update> -->
  2134. <update id="cancelLoad">
  2135. update QCM_MAT_CERT_D t
  2136. set t.validflag = '1',
  2137. t.JUDGERESULT_NAME = #{username},
  2138. t.JUDGERESULT_MEMO = #{remark}
  2139. where t.material_no = #{material_no}
  2140. and t.validflag is null
  2141. </update>
  2142. <update id="clearCHEMRESULT1">
  2143. update QCM_JUDGE_COIL_RESULT
  2144. set CHEMRESULT_DESC = null,
  2145. CHEMRESULT = '0',
  2146. CHEMID = null,
  2147. CIC_IS_LOCK = '0'
  2148. where INSPECTION_LOT = #{inspection_lot}
  2149. </update>
  2150. <update id="clearJUDGERESULT">
  2151. update ZJ_RESULT_ALL@xgcx
  2152. set JUDGERESULT = '0',
  2153. JUDGERESULT_DESC = null,
  2154. JUDGEID = null,
  2155. billetid_jy = #{inspection_lot}
  2156. where BILLETID = #{material_no}
  2157. </update>
  2158. <update id="clearJUDGERESULT1">
  2159. update QCM_JUDGE_COIL_RESULT
  2160. set JUDGERESULT = '0',
  2161. JUDGERESULT_DESC = null,
  2162. JUDGEID = null,
  2163. inspection_lot = #{inspection_lot}
  2164. where coil_no = #{material_no}
  2165. </update>
  2166. <update id="clearJUDGERESULT2">
  2167. update QCM_JUDGE_YT_COIL_RESULT
  2168. set JUDGERESULT = '0',
  2169. JUDGERESULT_DESC = null,
  2170. JUDGEID = null,
  2171. R_CHEMRESULT = '0',
  2172. R_CHEMRESULT_DESC = null,
  2173. R_CHEMID = null,
  2174. R_CIC_IS_LOCK = '0',
  2175. inspection_lot = #{inspection_lot}
  2176. where coil_no = #{material_no}
  2177. </update>
  2178. <!-- <update id="updateCHEMRESULT3">
  2179. update QCM_JUDGE_COIL_RESULT
  2180. set CHEMRESULT_DESC = #{CHEMRESULT_DESC},
  2181. CHEMRESULT = #{CHEMRESULT},
  2182. CHEMID = #{CHEMID},
  2183. CIC_IS_LOCK = #{CIC_IS_LOCK}
  2184. where INSPECTION_LOT = #{inspection_lot}
  2185. </update> -->
  2186. <update id="updateCHEMRESULT4">
  2187. update ZJ_RESULT_ALL@xgcx
  2188. set judgeresult_desc = #{judgeresult},
  2189. judgeresult = #{judgeresultid},
  2190. judgeid = #{CHEMID}
  2191. where BILLETID = #{material_no}
  2192. </update>
  2193. <update id="updateCHEMRESULT5">
  2194. update QCM_JUDGE_COIL_RESULT
  2195. set judgeresult_desc = #{judgeresult},
  2196. judgeresult = #{judgeresultid},
  2197. judgeid = #{utm_id}
  2198. where coil_no = #{material_no}
  2199. </update>
  2200. <!-- <update id="uptdateSurfaceResult">
  2201. update ZJ_RESULT_ALL@xgcx
  2202. set surfaceresult = '1',
  2203. surfaceid = #{surface_id},
  2204. up_surface_result = '1',
  2205. ud_surface_result = '1',
  2206. marginal_result = '1',
  2207. up_surface_result_desc = '合格',
  2208. ud_surface_result_desc = '合格',
  2209. marginal_result_desc = '合格'
  2210. surfaceresult_desc = '合格'
  2211. where BILLETID = #{material_no}
  2212. </update> -->
  2213. <!-- <update id="uptdateSurfaceResult1">
  2214. update QCM_JUDGE_COIL_RESULT
  2215. set surfaceresult = '1',
  2216. surfaceid = #{surface_id},
  2217. up_surface_result = '1',
  2218. ud_surface_result = '1',
  2219. marginal_result = '1',
  2220. up_surface_result_desc = '合格',
  2221. ud_surface_result_desc = '合格',
  2222. marginal_result_desc = '合格'
  2223. surfaceresult_desc = '合格'
  2224. where coil_no = #{material_no}
  2225. </update> -->
  2226. <!-- <update id="uptdateSurfaceResult2">
  2227. update ZJ_RESULT_ALL@xgcx
  2228. set surfaceresult = '0',
  2229. up_surface_result = '0',
  2230. ud_surface_result = '0',
  2231. marginal_result = '0',
  2232. sfu_is_lock = '0',
  2233. sfd_is_lock = '0',
  2234. sfe_is_lock = '0',
  2235. up_surface_result_desc = '待判',
  2236. ud_surface_result_desc = '待判',
  2237. marginal_result_desc = '待判'
  2238. surfaceresult_desc = '待判'
  2239. where BILLETID = #{material_no}
  2240. </update> -->
  2241. <!-- <update id="uptdateSurfaceResult3">
  2242. update QCM_JUDGE_COIL_RESULT
  2243. set surfaceresult = '0',
  2244. up_surface_result = '0',
  2245. ud_surface_result = '0',
  2246. marginal_result = '0',
  2247. sfu_is_lock = '0',
  2248. sfd_is_lock = '0',
  2249. sfe_is_lock = '0',
  2250. up_surface_result_desc = '待判',
  2251. ud_surface_result_desc = '待判',
  2252. marginal_result_desc = '待判'
  2253. surfaceresult_desc = '待判'
  2254. where coil_no = #{material_no}
  2255. </update> -->
  2256. <!-- <update id="UpdateSurfaceResults">
  2257. update ZJ_RESULT_ALL@xgcx
  2258. set surfaceresult = #{is_pass},
  2259. surfaceid = #{sid},
  2260. up_surface_result = case when #{is_sfu_lock} = '0' then '1' else '2' end,
  2261. ud_surface_result = case when #{is_sfd_lock} = '0' then '1' else '2' end,
  2262. marginal_result = case when #{is_sfe_lock} = '0' then '1' else '2' end,
  2263. sfu_is_lock = #{is_sfu_lock},
  2264. sfd_is_lock = #{is_sfd_lock},
  2265. sfe_is_lock = #{is_sfe_lock},
  2266. up_surface_result_desc = case when #{is_sfu_lock} = '0' then '合格' else '不合格' end,
  2267. ud_surface_result_desc = case when #{is_sfd_lock} = '0' then '合格' else '不合格' end,
  2268. marginal_result_desc = case when #{is_sfe_lock} = '0' then '合格' else '不合格' end,
  2269. surfaceresult_desc = case when #{is_pass} = '1' then '合格' else '不合格' end
  2270. where BILLETID = #{material_no}
  2271. </update> -->
  2272. <!-- <update id="UpdateSurfaceResultss">
  2273. update QCM_JUDGE_COIL_RESULT
  2274. set surfaceresult = #{is_pass},
  2275. surfaceid = #{sid},
  2276. up_surface_result = case when #{is_sfu_lock} = '0' then '1' else '2' end,
  2277. ud_surface_result = case when #{is_sfd_lock} = '0' then '1' else '2' end,
  2278. marginal_result = case when #{is_sfe_lock} = '0' then '1' else '2' end,
  2279. sfu_is_lock = #{is_sfu_lock},
  2280. sfd_is_lock = #{is_sfd_lock},
  2281. sfe_is_lock = #{is_sfe_lock},
  2282. up_surface_result_desc = case when #{is_sfu_lock} = '0' then '合格' else '不合格' end,
  2283. ud_surface_result_desc = case when #{is_sfd_lock} = '0' then '合格' else '不合格' end,
  2284. marginal_result_desc = case when #{is_sfe_lock} = '0' then '合格' else '不合格' end,
  2285. surfaceresult_desc = case when #{is_pass} = '1' then '合格' else '不合格' end
  2286. where coil_no = #{material_no}
  2287. </update> -->
  2288. <insert id="insertSampleM" parameterType = "QCM.JHY01.VO.JhySampleMMdoel">
  2289. insert into QCM_JHY_SAMPLE_CONSIGN_M
  2290. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2291. <if test = " q.smp_no!= null " >smp_no,</if>
  2292. <if test = " q.heat_no!= null " >heat_no,</if>
  2293. <if test = " q.batch_no!= null " >batch_no,</if>
  2294. <if test = " q.inspection_lot!= null " >inspection_lot,</if>
  2295. <if test = " q.board_no!= null " >board_no,</if>
  2296. <if test = " q.material_no!= null " >material_no,</if>
  2297. <if test = " q.smp_catg!= null " >smp_catg,</if>
  2298. <if test = " q.psc!= null " >psc,</if>
  2299. <if test = " q.psc_desc!= null " >psc_desc,</if>
  2300. <if test = " q.cert_inst_code!= null " >cert_inst_code,</if>
  2301. <if test = " q.cert_inst_name!= null " >cert_inst_name,</if>
  2302. <if test = " q.smp_type_code!= null " >smp_type_code,</if>
  2303. <if test = " q.smp_type_name!= null " >smp_type_name,</if>
  2304. <if test = " q.grade_code!= null " >grade_code,</if>
  2305. <if test = " q.grade_name!= null " >grade_name,</if>
  2306. <if test = " q.pline_code!= null " >pline_code,</if>
  2307. <if test = " q.pline_name!= null " >pline_name,</if>
  2308. <if test = " q.validflag!= null " >validflag,</if>
  2309. <if test = " q.memo!= null " >memo,</if>
  2310. <if test = " q.create_id!= null " >create_id,</if>
  2311. <if test = " q.create_name!= null " >create_name,</if>
  2312. <if test = " q.create_time!= null " >create_time,</if>
  2313. <if test = " q.item_flag!= null " >item_flag,</if>
  2314. </trim>
  2315. values
  2316. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2317. <if test = " q.smp_no!= null " >#{q.smp_no,jdbcType =VARCHAR},</if>
  2318. <if test = " q.heat_no!= null " >#{q.heat_no,jdbcType =VARCHAR},</if>
  2319. <if test = " q.batch_no!= null " >#{q.batch_no,jdbcType =VARCHAR},</if>
  2320. <if test = " q.inspection_lot!= null " >#{q.inspection_lot,jdbcType =VARCHAR},</if>
  2321. <if test = " q.board_no!= null " >#{q.board_no,jdbcType =VARCHAR},</if>
  2322. <if test = " q.material_no!= null " >#{q.material_no,jdbcType =VARCHAR},</if>
  2323. <if test = " q.smp_catg!= null " >#{q.smp_catg,jdbcType =VARCHAR},</if>
  2324. <if test = " q.psc!= null " >#{q.psc,jdbcType =VARCHAR},</if>
  2325. <if test = " q.psc_desc!= null " >#{q.psc_desc,jdbcType =VARCHAR},</if>
  2326. <if test = " q.cert_inst_code!= null " >#{q.cert_inst_code,jdbcType =VARCHAR},</if>
  2327. <if test = " q.cert_inst_name!= null " >#{q.cert_inst_name,jdbcType =VARCHAR},</if>
  2328. <if test = " q.smp_type_code!= null " >#{q.smp_type_code,jdbcType =VARCHAR},</if>
  2329. <if test = " q.smp_type_name!= null " >#{q.smp_type_name,jdbcType =VARCHAR},</if>
  2330. <if test = " q.grade_code!= null " >#{q.grade_code,jdbcType =VARCHAR},</if>
  2331. <if test = " q.grade_name!= null " >#{q.grade_name,jdbcType =VARCHAR},</if>
  2332. <if test = " q.pline_code!= null " >#{q.pline_code,jdbcType =VARCHAR},</if>
  2333. <if test = " q.pline_name!= null " >#{q.pline_name,jdbcType =VARCHAR},</if>
  2334. <if test = " q.validflag!= null " >#{q.validflag,jdbcType =VARCHAR},</if>
  2335. <if test = " q.memo!= null " >#{q.memo,jdbcType =VARCHAR},</if>
  2336. <if test = " q.create_id!= null " >#{q.create_id,jdbcType =VARCHAR},</if>
  2337. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  2338. <if test = " q.create_time!= null " >#{q.create_time,jdbcType =TIMESTAMP},</if>
  2339. <if test = " q.item_flag!= null " >#{q.item_flag,jdbcType =VARCHAR},</if>
  2340. </trim>
  2341. </insert>
  2342. <insert id="insertSampleD" parameterType = "QCM.JHY01.VO.JhySampleDModel">
  2343. insert into QCM_JHY_SAMPLE_CONSIGN_D
  2344. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2345. <if test = " q.smp_no!= null " >smp_no,</if>
  2346. <if test = " q.specimen_no!= null " >specimen_no,</if>
  2347. <if test = " q.heat_no!= null " >heat_no,</if>
  2348. <if test = " q.batch_no!= null " >batch_no,</if>
  2349. <if test = " q.inspection_lot!= null " >inspection_lot,</if>
  2350. <if test = " q.board_no!= null " >board_no,</if>
  2351. <if test = " q.material_no!= null " >material_no,</if>
  2352. <if test = " q.freq_code!= null " >freq_code,</if>
  2353. <if test = " q.freq_name!= null " >freq_name,</if>
  2354. <if test = " q.smp_type_code!= null " >smp_type_code,</if>
  2355. <if test = " q.smp_type_name!= null " >smp_type_name,</if>
  2356. <if test = " q.consign_no!= null " >consign_no,</if>
  2357. <if test = " q.consign_no_seq!= null " >consign_no_seq,</if>
  2358. <if test = " q.test_qty!= null " >test_qty,</if>
  2359. <if test = " q.smp_qty!= null " >smp_qty,</if>
  2360. <if test = " q.smp_location!= null " >smp_location,</if>
  2361. <if test = " q.quote_consign_no!= null " >quote_consign_no,</if>
  2362. <if test = " q.old_consign_no!= null " >old_consign_no,</if>
  2363. <if test = " q.pline_code!= null " >pline_code,</if>
  2364. <if test = " q.pline_name!= null " >pline_name,</if>
  2365. <if test = " q.status!= null " >status,</if>
  2366. <if test = " q.validflag!= null " >validflag,</if>
  2367. <if test = " q.source!= null " >source,</if>
  2368. <if test = " q.guid!= null " >guid,</if>
  2369. <if test = " q.send_id!= null " >send_id,</if>
  2370. <if test = " q.send_name!= null " >send_name,</if>
  2371. <if test = " q.send_time!= null " >send_time,</if>
  2372. <if test = " q.chem_item!= null " >chem_item,</if>
  2373. <if test = " q.product_cnt!= null " >product_cnt,</if>
  2374. <if test = " q.create_time!= null " >create_time,</if>
  2375. <if test = " q.smp_location_code!= null " >smp_location_code,</if>
  2376. <if test = " q.memo!= null " >memo,</if>
  2377. <if test = " q.weight!= null " >weight,</if>
  2378. <if test = " q.weight_std!= null " >weight_std,</if>
  2379. <if test = " q.weight_sfd!= null " >weight_sfd,</if>
  2380. <if test = " q.item_flag!= null " >item_flag,</if>
  2381. <if test = " q.send_memo!= null " >send_memo,</if>
  2382. <if test = " q.improve_memo!= null " >improve_memo,</if>
  2383. <if test = " q.process_no!= null " >process_no,</if>
  2384. <if test = " q.process_nos!= null " >process_nos,</if>
  2385. <if test = " q.artificial_memo!= null " >artificial_memo,</if>
  2386. <if test = " q.process_code!= null " >process_code,</if>
  2387. </trim>
  2388. values
  2389. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2390. <if test = " q.smp_no!= null " >#{q.smp_no,jdbcType =VARCHAR},</if>
  2391. <if test = " q.specimen_no!= null " >#{q.specimen_no,jdbcType =VARCHAR},</if>
  2392. <if test = " q.heat_no!= null " >#{q.heat_no,jdbcType =VARCHAR},</if>
  2393. <if test = " q.batch_no!= null " >#{q.batch_no,jdbcType =VARCHAR},</if>
  2394. <if test = " q.inspection_lot!= null " >#{q.inspection_lot,jdbcType =VARCHAR},</if>
  2395. <if test = " q.board_no!= null " >#{q.board_no,jdbcType =VARCHAR},</if>
  2396. <if test = " q.material_no!= null " >#{q.material_no,jdbcType =VARCHAR},</if>
  2397. <if test = " q.freq_code!= null " >#{q.freq_code,jdbcType =VARCHAR},</if>
  2398. <if test = " q.freq_name!= null " >#{q.freq_name,jdbcType =VARCHAR},</if>
  2399. <if test = " q.smp_type_code!= null " >#{q.smp_type_code,jdbcType =VARCHAR},</if>
  2400. <if test = " q.smp_type_name!= null " >#{q.smp_type_name,jdbcType =VARCHAR},</if>
  2401. <if test = " q.consign_no!= null " >#{q.consign_no,jdbcType =VARCHAR},</if>
  2402. <if test = " q.consign_no_seq!= null " >#{q.consign_no_seq,jdbcType =INTEGER},</if>
  2403. <if test = " q.test_qty!= null " >#{q.test_qty,jdbcType =DECIMAL},</if>
  2404. <if test = " q.smp_qty!= null " >#{q.smp_qty,jdbcType= DECIMAL},</if>
  2405. <if test = " q.smp_location!= null " >#{q.smp_location,jdbcType =VARCHAR},</if>
  2406. <if test = " q.quote_consign_no!= null " >#{q.quote_consign_no,jdbcType =VARCHAR},</if>
  2407. <if test = " q.old_consign_no!= null " >#{q.old_consign_no,jdbcType =VARCHAR},</if>
  2408. <if test = " q.pline_code!= null " >#{q.pline_code,jdbcType =VARCHAR},</if>
  2409. <if test = " q.pline_name!= null " >#{q.pline_name,jdbcType =VARCHAR},</if>
  2410. <if test = " q.status!= null " >#{q.status,jdbcType =VARCHAR},</if>
  2411. <if test = " q.validflag!= null " >#{q.validflag,jdbcType =VARCHAR},</if>
  2412. <if test = " q.source!= null " >#{q.source,jdbcType =VARCHAR},</if>
  2413. <if test = " q.guid!= null " >#{q.guid,jdbcType =VARCHAR},</if>
  2414. <if test = " q.send_id!= null " >#{q.send_id,jdbcType =VARCHAR},</if>
  2415. <if test = " q.send_name!= null " >#{q.send_name,jdbcType =VARCHAR},</if>
  2416. <if test = " q.send_time!= null " >sysdate,</if>
  2417. <if test = " q.chem_item!= null " >#{q.chem_item,jdbcType =VARCHAR},</if>
  2418. <if test = " q.product_cnt!= null " >#{q.product_cnt,jdbcType =VARCHAR},</if>
  2419. <if test = " q.create_time!= null " >#{q.create_time,jdbcType =TIMESTAMP},</if>
  2420. <if test = " q.smp_location_code!= null " >#{q.smp_location_code,jdbcType =VARCHAR},</if>
  2421. <if test = " q.memo!= null " >#{q.memo,jdbcType =VARCHAR},</if>
  2422. <if test = " q.weight!= null " >#{q.weight,jdbcType =VARCHAR},</if>
  2423. <if test = " q.weight_std!= null " >#{q.weight_std,jdbcType =VARCHAR},</if>
  2424. <if test = " q.weight_sfd!= null " >#{q.weight_sfd,jdbcType =VARCHAR},</if>
  2425. <if test = " q.item_flag!= null " >#{q.item_flag,jdbcType =VARCHAR},</if>
  2426. <if test = " q.send_memo!= null " >#{q.send_memo,jdbcType =VARCHAR},</if>
  2427. <if test = " q.improve_memo!= null " >#{q.improve_memo,jdbcType =VARCHAR},</if>
  2428. <if test = " q.process_no!= null " >#{q.process_no,jdbcType =VARCHAR},</if>
  2429. <if test = " q.process_nos!= null " >#{q.process_nos,jdbcType =VARCHAR},</if>
  2430. <if test = " q.artificial_memo!= null " >#{q.artificial_memo,jdbcType =VARCHAR},</if>
  2431. <if test = " q.process_code!= null " >#{q.process_code,jdbcType =VARCHAR},</if>
  2432. </trim>
  2433. </insert>
  2434. <insert id="insertSampleItem" parameterType = "QCM.JHY01.VO.JhySampleDItemModel">
  2435. insert into QCM_JHY_SAMPLE_CONSIGN_D_ITEM
  2436. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2437. <if test = " q.specimen_no!= null " >specimen_no,</if>
  2438. <if test = " q.seq!= null " >seq,</if>
  2439. <if test = " q.smp_no!= null " >smp_no,</if>
  2440. <if test = " q.phy_name_l!= null " >phy_name_l,</if>
  2441. <if test = " q.phy_code_l!= null " >phy_code_l,</if>
  2442. <if test = " q.phy_code_m!= null " >phy_code_m,</if>
  2443. <if test = " q.phy_name_m!= null " >phy_name_m,</if>
  2444. <if test = " q.phy_code_s!= null " >phy_code_s,</if>
  2445. <if test = " q.phy_name_s!= null " >phy_name_s,</if>
  2446. <if test = " q.item_code_d!= null " >item_code_d,</if>
  2447. <if test = " q.item_name_d!= null " >item_name_d,</if>
  2448. <if test = " q.item_code_t!= null " >item_code_t,</if>
  2449. <if test = " q.item_name_t!= null " >item_name_t,</if>
  2450. <if test = " q.item_code_s!= null " >item_code_s,</if>
  2451. <if test = " q.item_name_s!= null " >item_name_s,</if>
  2452. <if test = " q.isjudge!= null " >isjudge,</if>
  2453. <if test = " q.judge_basis!= null " >judge_basis,</if>
  2454. <if test = " q.phy_unit!= null " >phy_unit,</if>
  2455. <if test = " q.group_seq!= null " >group_seq,</if>
  2456. <if test = " q.quote_specimen_no!= null " >quote_specimen_no,</if>
  2457. <if test = " q.quote_seq!= null " >quote_seq,</if>
  2458. <if test = " q.memo!= null " >memo,</if>
  2459. <if test = " q.item_code_l!= null " >item_code_l,</if>
  2460. <if test = " q.item_desc_l!= null " >item_desc_l,</if>
  2461. <if test = " q.test_qty!= null " >test_qty,</if>
  2462. <if test = " q.smp_qty!= null " >smp_qty,</if>
  2463. <if test = " q.create_time!= null " >create_time,</if>
  2464. <if test = " q.create_id!= null " >create_id,</if>
  2465. <if test = " q.create_name!= null " >create_name,</if>
  2466. <if test = " q.specl_fl!= null " >specl_fl,</if>
  2467. <if test = " q.item_flag!= null " >item_flag,</if>
  2468. <if test = " q.stdmemo!= null " >stdmemo,</if>
  2469. <if test = " q.stdmin_sign!= null " >stdmin_sign,</if>
  2470. <if test = " q.stdmin!= null " >stdmin,</if>
  2471. <if test = " q.stdmax_sign!= null " >stdmax_sign,</if>
  2472. <if test = " q.stdmax!= null " >stdmax,</if>
  2473. <if test = " q.phy_group_code!= null " >phy_group_code,</if>
  2474. <if test = " q.resmp_seq!= null " >resmp_seq</if>
  2475. </trim>
  2476. values
  2477. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2478. <if test = " q.specimen_no!= null " >#{q.specimen_no,jdbcType =VARCHAR},</if>
  2479. <if test = " q.seq!= null " >#{q.seq,jdbcType =INTEGER},</if>
  2480. <if test = " q.smp_no!= null " >#{q.smp_no,jdbcType =VARCHAR},</if>
  2481. <if test = " q.phy_name_l!= null " >#{q.phy_name_l,jdbcType =VARCHAR},</if>
  2482. <if test = " q.phy_code_l!= null " >#{q.phy_code_l,jdbcType =VARCHAR},</if>
  2483. <if test = " q.phy_code_m!= null " >#{q.phy_code_m,jdbcType =VARCHAR},</if>
  2484. <if test = " q.phy_name_m!= null " >#{q.phy_name_m,jdbcType =VARCHAR},</if>
  2485. <if test = " q.phy_code_s!= null " >#{q.phy_code_s,jdbcType =VARCHAR},</if>
  2486. <if test = " q.phy_name_s!= null " >#{q.phy_name_s,jdbcType =VARCHAR},</if>
  2487. <if test = " q.item_code_d!= null " >#{q.item_code_d,jdbcType =VARCHAR},</if>
  2488. <if test = " q.item_name_d!= null " >#{q.item_name_d,jdbcType =VARCHAR},</if>
  2489. <if test = " q.item_code_t!= null " >#{q.item_code_t,jdbcType =VARCHAR},</if>
  2490. <if test = " q.item_name_t!= null " >#{q.item_name_t,jdbcType =VARCHAR},</if>
  2491. <if test = " q.item_code_s!= null " >#{q.item_code_s,jdbcType =VARCHAR},</if>
  2492. <if test = " q.item_name_s!= null " >#{q.item_name_s,jdbcType =VARCHAR},</if>
  2493. <if test = " q.isjudge!= null " >#{q.isjudge,jdbcType =VARCHAR},</if>
  2494. <if test = " q.judge_basis!= null " >#{q.judge_basis,jdbcType =VARCHAR},</if>
  2495. <if test = " q.phy_unit!= null " >#{q.phy_unit,jdbcType =VARCHAR},</if>
  2496. <if test = " q.group_seq!= null " >#{q.group_seq,jdbcType =VARCHAR},</if>
  2497. <if test = " q.quote_specimen_no!= null " >#{q.quote_specimen_no,jdbcType =VARCHAR},</if>
  2498. <if test = " q.quote_seq!= null " >#{q.quote_seq,jdbcType =INTEGER},</if>
  2499. <if test = " q.memo!= null " >#{q.memo,jdbcType =VARCHAR},</if>
  2500. <if test = " q.item_code_l!= null " >#{q.item_code_l,jdbcType =VARCHAR},</if>
  2501. <if test = " q.item_desc_l!= null " >#{q.item_desc_l,jdbcType =VARCHAR},</if>
  2502. <if test = " q.test_qty!= null " >#{q.test_qty,jdbcType = DECIMAL},</if>
  2503. <if test = " q.smp_qty!= null " >#{q.smp_qty,jdbcType= DECIMAL},</if>
  2504. <if test = " q.create_time!= null " >#{q.create_time,jdbcType =TIMESTAMP},</if>
  2505. <if test = " q.create_id!= null " >#{q.create_id,jdbcType =VARCHAR},</if>
  2506. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  2507. <if test = " q.specl_fl!= null " >#{q.specl_fl,jdbcType =VARCHAR},</if>
  2508. <if test = " q.item_flag!= null " >#{q.item_flag,jdbcType =VARCHAR},</if>
  2509. <if test = " q.stdmemo!= null " >#{q.stdmemo,jdbcType =VARCHAR},</if>
  2510. <if test = " q.stdmin_sign!= null " >#{q.stdmin_sign,jdbcType =VARCHAR},</if>
  2511. <if test = " q.stdmin!= null " >#{q.stdmin,jdbcType =VARCHAR},</if>
  2512. <if test = " q.stdmax_sign!= null " >#{q.stdmax_sign,jdbcType =VARCHAR},</if>
  2513. <if test = " q.stdmax!= null " >#{q.stdmax,jdbcType =VARCHAR},</if>
  2514. <if test = " q.phy_group_code!= null " >#{q.phy_group_code,jdbcType =VARCHAR},</if>
  2515. <if test = " q.resmp_seq!= null " >#{q.resmp_seq,jdbcType =VARCHAR},</if>
  2516. </trim>
  2517. </insert>
  2518. <insert id="insertSampleOrd" parameterType = "QCM.JHY01.VO.JhySampleOrdMdoel">
  2519. insert into QCM_JHY_SAMPLE_R_ORD
  2520. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2521. <if test = " q.design_key!= null " >design_key,</if>
  2522. <if test = " q.smp_no!= null " >smp_no,</if>
  2523. <if test = " q.psc!= null " >psc,</if>
  2524. <if test = " q.psc_desc!= null " >psc_desc,</if>
  2525. <if test = " q.heat_no!= null " >heat_no,</if>
  2526. <if test = " q.batch_no!= null " >batch_no,</if>
  2527. <if test = " q.inspection_lot!= null " >inspection_lot,</if>
  2528. <if test = " q.delivery_state_code!= null " >delivery_state_code,</if>
  2529. <if test = " q.delivery_state_desc!= null " >delivery_state_desc,</if>
  2530. <if test = " q.thick!= null " >thick,</if>
  2531. <if test = " q.width!= null " >width,</if>
  2532. <if test = " q.length!= null " >length,</if>
  2533. <if test = " q.pline_code!= null " >pline_code,</if>
  2534. <if test = " q.pline_name!= null " >pline_name,</if>
  2535. <if test = " q.msc_pline!= null " >msc_pline,</if>
  2536. <if test = " q.process_code!= null " >process_code,</if>
  2537. <if test = " q.cert_inst_code!= null " >cert_inst_code,</if>
  2538. <if test = " q.cert_inst_name!= null " >cert_inst_name,</if>
  2539. <if test = " q.smp_type_code!= null " >smp_type_code,</if>
  2540. <if test = " q.smp_type_name!= null " >smp_type_name,</if>
  2541. <if test = " q.smelting_cnt!= null " >smelting_cnt,</if>
  2542. <if test = " q.product_cnt!= null " >product_cnt,</if>
  2543. <if test = " q.assay_no_cp!= null " >assay_no_cp,</if>
  2544. <if test = " q.assay_no_rl!= null " >assay_no_rl,</if>
  2545. <if test = " q.cic_id!= null " >cic_id,</if>
  2546. <if test = " q.phy_id!= null " >phy_id,</if>
  2547. <if test = " q.judge_status!= null " >judge_status,</if>
  2548. <if test = " q.judge_result_code!= null " >judge_result_code,</if>
  2549. <if test = " q.judge_result_desc!= null " >judge_result_desc,</if>
  2550. <if test = " q.judge_name!= null " >judge_name,</if>
  2551. <if test = " q.judge_time!= null " >judge_time,</if>
  2552. <if test = " q.judge_memo!= null " >judge_memo,</if>
  2553. <if test = " q.prod_code!= null " >prod_code,</if>
  2554. <if test = " q.prod_name!= null " >prod_name,</if>
  2555. <if test = " q.steel_code!= null " >steel_code,</if>
  2556. <if test = " q.steel_name!= null " >steel_name,</if>
  2557. <if test = " q.std_code!= null " >std_code,</if>
  2558. <if test = " q.std_name!= null " >std_name,</if>
  2559. <if test = " q.create_time!= null " >create_time,</if>
  2560. <if test = " q.create_id!= null " >create_id,</if>
  2561. <if test = " q.create_name!= null " >create_name,</if>
  2562. <if test = " q.item_flag!= null " >item_flag,</if>
  2563. <if test = " q.improve_memo!= null " >improve_memo,</if>
  2564. </trim>
  2565. values
  2566. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2567. <if test = " q.design_key!= null " >#{q.design_key,jdbcType =VARCHAR},</if>
  2568. <if test = " q.smp_no!= null " >#{q.smp_no,jdbcType =VARCHAR},</if>
  2569. <if test = " q.psc!= null " >#{q.psc,jdbcType =VARCHAR},</if>
  2570. <if test = " q.psc_desc!= null " >#{q.psc_desc,jdbcType =VARCHAR},</if>
  2571. <if test = " q.heat_no!= null " >#{q.heat_no,jdbcType =VARCHAR},</if>
  2572. <if test = " q.batch_no!= null " >#{q.batch_no,jdbcType =VARCHAR},</if>
  2573. <if test = " q.inspection_lot!= null " >#{q.inspection_lot,jdbcType =VARCHAR},</if>
  2574. <if test = " q.delivery_state_code!= null " >#{q.delivery_state_code,jdbcType =VARCHAR},</if>
  2575. <if test = " q.delivery_state_desc!= null " >#{q.delivery_state_desc,jdbcType =VARCHAR},</if>
  2576. <if test = " q.thick!= null " >#{q.thick,jdbcType =VARCHAR},</if>
  2577. <if test = " q.width!= null " >#{q.width,jdbcType =VARCHAR},</if>
  2578. <if test = " q.length!= null " >#{q.length,jdbcType =VARCHAR},</if>
  2579. <if test = " q.pline_code!= null " >#{q.pline_code,jdbcType =VARCHAR},</if>
  2580. <if test = " q.pline_name!= null " >#{q.pline_name,jdbcType =VARCHAR},</if>
  2581. <if test = " q.msc_pline!= null " >#{q.msc_pline,jdbcType =VARCHAR},</if>
  2582. <if test = " q.process_code!= null " >#{q.process_code,jdbcType =VARCHAR},</if>
  2583. <if test = " q.cert_inst_code!= null " >#{q.cert_inst_code,jdbcType =VARCHAR},</if>
  2584. <if test = " q.cert_inst_name!= null " >#{q.cert_inst_name,jdbcType =VARCHAR},</if>
  2585. <if test = " q.smp_type_code!= null " >#{q.smp_type_code,jdbcType =VARCHAR},</if>
  2586. <if test = " q.smp_type_name!= null " >#{q.smp_type_name,jdbcType =VARCHAR},</if>
  2587. <if test = " q.smelting_cnt!= null " >#{q.smelting_cnt,jdbcType =DECIMAL},</if>
  2588. <if test = " q.product_cnt!= null " >#{q.product_cnt,jdbcType =DECIMAL},</if>
  2589. <if test = " q.assay_no_cp!= null " >#{q.assay_no_cp,jdbcType =VARCHAR},</if>
  2590. <if test = " q.assay_no_rl!= null " >#{q.assay_no_rl,jdbcType =VARCHAR},</if>
  2591. <if test = " q.cic_id!= null " >#{q.cic_id,jdbcType =VARCHAR},</if>
  2592. <if test = " q.phy_id!= null " >#{q.phy_id,jdbcType =VARCHAR},</if>
  2593. <if test = " q.judge_status!= null " >#{q.judge_status,jdbcType =VARCHAR},</if>
  2594. <if test = " q.judge_result_code!= null " >#{q.judge_result_code,jdbcType =VARCHAR},</if>
  2595. <if test = " q.judge_result_desc!= null " >#{q.judge_result_desc,jdbcType =VARCHAR},</if>
  2596. <if test = " q.judge_name!= null " >#{q.judge_name,jdbcType =VARCHAR},</if>
  2597. <if test = " q.judge_time!= null " >#{q.judge_time,jdbcType =TIMESTAMP},</if>
  2598. <if test = " q.judge_memo!= null " >#{q.judge_memo,jdbcType =VARCHAR},</if>
  2599. <if test = " q.prod_code!= null " >#{q.prod_code,jdbcType =VARCHAR},</if>
  2600. <if test = " q.prod_name!= null " >#{q.prod_name,jdbcType =VARCHAR},</if>
  2601. <if test = " q.steel_code!= null " >#{q.steel_code,jdbcType =VARCHAR},</if>
  2602. <if test = " q.steel_name!= null " >#{q.steel_name,jdbcType =VARCHAR},</if>
  2603. <if test = " q.std_code!= null " >#{q.std_code,jdbcType =VARCHAR},</if>
  2604. <if test = " q.std_name!= null " >#{q.std_name,jdbcType =VARCHAR},</if>
  2605. <if test = " q.create_time!= null " >#{q.create_time,jdbcType =TIMESTAMP},</if>
  2606. <if test = " q.create_id!= null " >#{q.create_id,jdbcType =VARCHAR},</if>
  2607. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  2608. <if test = " q.item_flag!= null " >#{q.item_flag,jdbcType =VARCHAR},</if>
  2609. <if test = " q.improve_memo!= null " >#{q.improve_memo,jdbcType =VARCHAR},</if>
  2610. </trim>
  2611. </insert>
  2612. <insert id="insertPhyResults" parameterType = "QCM.JHY01.VO.QcmJhyPhyresult">
  2613. insert into QCM_JHY_INSP_PHYSICS
  2614. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2615. <if test = " q.specimen_no!= null " >specimen_no,</if>
  2616. <if test = " q.seq!= null " >seq,</if>
  2617. <if test = " q.test_qty!= null " >test_qty,</if>
  2618. <if test = " q.phy_code_l!= null " >phy_code_l,</if>
  2619. <if test = " q.phy_name_l!= null " >phy_name_l,</if>
  2620. <if test = " q.phy_code_m!= null " >phy_code_m,</if>
  2621. <if test = " q.phy_name_m!= null " >phy_name_m,</if>
  2622. <if test = " q.phy_code_s!= null " >phy_code_s,</if>
  2623. <if test = " q.phy_name_s!= null " >phy_name_s,</if>
  2624. <if test = " q.item_code_d!= null " >item_code_d,</if>
  2625. <if test = " q.item_name_d!= null " >item_name_d,</if>
  2626. <if test = " q.item_code_t!= null " >item_code_t,</if>
  2627. <if test = " q.item_name_t!= null " >item_name_t,</if>
  2628. <if test = " q.item_code_s!= null " >item_code_s,</if>
  2629. <if test = " q.item_name_s!= null " >item_name_s,</if>
  2630. <if test = " q.val1!= null " >val1,</if>
  2631. <if test = " q.val2!= null " >val2,</if>
  2632. <if test = " q.val3!= null " >val3,</if>
  2633. <if test = " q.val4!= null " >val4,</if>
  2634. <if test = " q.val5!= null " >val5,</if>
  2635. <if test = " q.val6!= null " >val6,</if>
  2636. <if test = " q.val7!= null " >val7,</if>
  2637. <if test = " q.val8!= null " >val8,</if>
  2638. <if test = " q.val9!= null " >val9,</if>
  2639. <if test = " q.val10!= null " >val10,</if>
  2640. <if test = " q.val11!= null " >val11,</if>
  2641. <if test = " q.val12!= null " >val12,</if>
  2642. <if test = " q.val13!= null " >val13,</if>
  2643. <if test = " q.val14!= null " >val14,</if>
  2644. <if test = " q.val15!= null " >val15,</if>
  2645. <if test = " q.avg_val!= null " >avg_val,</if>
  2646. <!-- <if test = " q.guid!= null " >guid,</if> -->
  2647. <if test = " q.create_name!= null " >create_name,</if>
  2648. <if test = " q.create_time!= null " >create_time,</if>
  2649. <if test = " q.group_seq!= null " >group_seq,</if>
  2650. <if test = " q.defect_flag!= null " >defect_flag,</if>
  2651. <if test = " q.max_val!= null " >max_val,</if>
  2652. <if test = " q.min_val!= null " >min_val,</if>
  2653. <if test = " q.item_code_l!= null " >item_code_l,</if>
  2654. <if test = " q.item_desc_l!= null " >item_desc_l,</if>
  2655. <if test = " q.phy_unit!= null " >phy_unit,</if>
  2656. <if test = " q.memo!= null " >memo,</if>
  2657. </trim>
  2658. values
  2659. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2660. <if test = " q.specimen_no!= null " >#{q.specimen_no,jdbcType =VARCHAR},</if>
  2661. <if test = " q.seq!= null " >#{q.seq,jdbcType =INTEGER},</if>
  2662. <if test = " q.test_qty!= null " >#{q.test_qty,jdbcType =DECIMAL},</if>
  2663. <if test = " q.phy_code_l!= null " >#{q.phy_code_l,jdbcType =VARCHAR},</if>
  2664. <if test = " q.phy_name_l!= null " >#{q.phy_name_l,jdbcType =VARCHAR},</if>
  2665. <if test = " q.phy_code_m!= null " >#{q.phy_code_m,jdbcType =VARCHAR},</if>
  2666. <if test = " q.phy_name_m!= null " >#{q.phy_name_m,jdbcType =VARCHAR},</if>
  2667. <if test = " q.phy_code_s!= null " >#{q.phy_code_s,jdbcType =VARCHAR},</if>
  2668. <if test = " q.phy_name_s!= null " >#{q.phy_name_s,jdbcType =VARCHAR},</if>
  2669. <if test = " q.item_code_d!= null " >#{q.item_code_d,jdbcType =VARCHAR},</if>
  2670. <if test = " q.item_name_d!= null " >#{q.item_name_d,jdbcType =VARCHAR},</if>
  2671. <if test = " q.item_code_t!= null " >#{q.item_code_t,jdbcType =VARCHAR},</if>
  2672. <if test = " q.item_name_t!= null " >#{q.item_name_t,jdbcType =VARCHAR},</if>
  2673. <if test = " q.item_code_s!= null " >#{q.item_code_s,jdbcType =VARCHAR},</if>
  2674. <if test = " q.item_name_s!= null " >#{q.item_name_s,jdbcType =VARCHAR},</if>
  2675. <if test = " q.val1!= null " >#{q.val1,jdbcType =VARCHAR},</if>
  2676. <if test = " q.val2!= null " >#{q.val2,jdbcType =VARCHAR},</if>
  2677. <if test = " q.val3!= null " >#{q.val3,jdbcType =VARCHAR},</if>
  2678. <if test = " q.val4!= null " >#{q.val4,jdbcType =VARCHAR},</if>
  2679. <if test = " q.val5!= null " >#{q.val5,jdbcType =VARCHAR},</if>
  2680. <if test = " q.val6!= null " >#{q.val6,jdbcType =VARCHAR},</if>
  2681. <if test = " q.val7!= null " >#{q.val7,jdbcType =VARCHAR},</if>
  2682. <if test = " q.val8!= null " >#{q.val8,jdbcType =VARCHAR},</if>
  2683. <if test = " q.val9!= null " >#{q.val9,jdbcType =VARCHAR},</if>
  2684. <if test = " q.val10!= null " >#{q.val10,jdbcType =VARCHAR},</if>
  2685. <if test = " q.val11!= null " >#{q.val11,jdbcType =VARCHAR},</if>
  2686. <if test = " q.val12!= null " >#{q.val12,jdbcType =VARCHAR},</if>
  2687. <if test = " q.val13!= null " >#{q.val13,jdbcType =VARCHAR},</if>
  2688. <if test = " q.val14!= null " >#{q.val14,jdbcType =VARCHAR},</if>
  2689. <if test = " q.val15!= null " >#{q.val15,jdbcType =VARCHAR},</if>
  2690. <if test = " q.avg_val!= null " >#{q.avg_val,jdbcType =VARCHAR},</if>
  2691. <!-- <if test = " q.guid!= null " >#{q.guid,jdbcType =VARCHAR},</if> -->
  2692. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  2693. <if test = " q.create_time!= null " >#{q.create_time,jdbcType =TIMESTAMP},</if>
  2694. <if test = " q.group_seq!= null " >#{q.group_seq,jdbcType =VARCHAR},</if>
  2695. <if test = " q.defect_flag!= null " >#{q.defect_flag,jdbcType =VARCHAR},</if>
  2696. <if test = " q.max_val!= null " >#{q.max_val,jdbcType =VARCHAR},</if>
  2697. <if test = " q.min_val!= null " >#{q.min_val,jdbcType =VARCHAR},</if>
  2698. <if test = " q.item_code_l!= null " >#{q.item_code_l,jdbcType =VARCHAR},</if>
  2699. <if test = " q.item_desc_l!= null " >#{q.item_desc_l,jdbcType =VARCHAR},</if>
  2700. <if test = " q.phy_unit!= null " >#{q.phy_unit,jdbcType =VARCHAR},</if>
  2701. <if test = " q.memo!= null " >#{q.memo,jdbcType =VARCHAR},</if>
  2702. </trim>
  2703. </insert>
  2704. <insert id = "insertQcmJudgeUltimateSendinfo" parameterType = "QCM.COMMUNAL.VO.QcmJudgeUltimateSendinfo">
  2705. insert into QCM_JUDGE_ULTIMATE_SENDINFO
  2706. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2707. <if test = " q.guid!= null " >guid,</if>
  2708. <if test = " q.material_no!= null " >material_no,</if>
  2709. <if test = " q.design_key!= null " >design_key,</if>
  2710. <if test = " q.send_flag!= null " >send_flag,</if>
  2711. <if test = " q.result_type!= null " >result_type,</if>
  2712. <if test = " q.judge_id!= null " >judge_id,</if>
  2713. <if test = " q.memo!= null " >memo,</if>
  2714. <if test = " q.create_id!= null " >create_id,</if>
  2715. <if test = " q.create_name!= null " >create_name,</if>
  2716. <if test = " q.create_name!= null " >create_time,</if>
  2717. <!-- <if test = " q.json_text!= null">json_text,</if> -->
  2718. </trim> values
  2719. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2720. <if test = " q.guid!= null " >#{q.guid,jdbcType =VARCHAR},</if>
  2721. <if test = " q.material_no!= null " >#{q.material_no,jdbcType =VARCHAR},</if>
  2722. <if test = " q.design_key!= null " >#{q.design_key,jdbcType =VARCHAR},</if>
  2723. <if test = " q.send_flag!= null " >#{q.send_flag,jdbcType =VARCHAR},</if>
  2724. <if test = " q.result_type!= null " >#{q.result_type,jdbcType =VARCHAR},</if>
  2725. <if test = " q.judge_id!= null " >#{q.judge_id,jdbcType =VARCHAR},</if>
  2726. <if test = " q.memo!= null " >#{q.memo,jdbcType =VARCHAR},</if>
  2727. <if test = " q.create_id!= null " >#{q.create_id,jdbcType =VARCHAR},</if>
  2728. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  2729. <if test = " q.create_name!= null " >sysdate,</if>
  2730. <!-- <if test = " q.json_text!= null">#{q.json_text,jdbcType =VARCHAR},</if> -->
  2731. </trim>
  2732. </insert>
  2733. <insert id = "insertQcmJudgeLog" parameterType = "QCM.COMMUNAL.VO.QcmJudgeLog">
  2734. insert into QCM_JUDGE_LOG
  2735. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2736. <if test = " q.judge_type!= null " >judge_type,</if>
  2737. <if test = " q.material_no!= null " >material_no,</if>
  2738. <if test = " q.create_name!= null " >create_name,</if>
  2739. <if test = " q.create_name!= null " >create_time,</if>
  2740. <if test = " q.material_type!= null " >material_type,</if>
  2741. <if test = " q.prod_line!= null " >prod_line,</if>
  2742. </trim> values
  2743. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2744. <if test = " q.judge_type!= null " >#{q.judge_type,jdbcType =VARCHAR},</if>
  2745. <if test = " q.material_no!= null " >#{q.material_no,jdbcType =VARCHAR},</if>
  2746. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  2747. <if test = " q.create_name!= null " >sysdate,</if>
  2748. <if test = " q.material_type!= null " >#{q.material_type,jdbcType =VARCHAR},</if>
  2749. <if test = " q.prod_line!= null " >#{q.prod_line,jdbcType =VARCHAR},</if>
  2750. </trim>
  2751. </insert>
  2752. <insert id="insertQcmJudgeOperateLog" parameterType = "QCM.COMMUNAL.VO.QcmJudgeOperateLog">
  2753. insert into QCM_JUDGE_OPERATE_LOG
  2754. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2755. <if test = " q.guid!= null " >guid,</if>
  2756. <if test = " q.operate_type!= null " >operate_type,</if>
  2757. <if test = " q.operate_name!= null " >operate_name,</if>
  2758. <if test = " q.operate_name!= null " >operate_time,</if>
  2759. <if test = " q.params!= null " >params,</if>
  2760. <if test = " q.prod_line!= null " >prod_line,</if>
  2761. <if test = " q.operation_interface!= null " >operation_interface,</if>
  2762. <if test = " q.batchno!= null " >batchno,</if>
  2763. <if test = " q.judge_result!= null " >judge_result,</if>
  2764. <if test = " q.memo!= null " >memo,</if>
  2765. </trim> values
  2766. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2767. <if test = " q.guid!= null " >#{q.guid,jdbcType =VARCHAR},</if>
  2768. <if test = " q.operate_type!= null " >#{q.operate_type,jdbcType =VARCHAR},</if>
  2769. <if test = " q.operate_name!= null " >#{q.operate_name,jdbcType =VARCHAR},</if>
  2770. <if test = " q.operate_name!= null " >sysdate,</if>
  2771. <if test = " q.params!= null " >#{q.params,jdbcType =VARCHAR},</if>
  2772. <if test = " q.prod_line!= null " >#{q.prod_line,jdbcType =VARCHAR},</if>
  2773. <if test = " q.operation_interface!= null " >#{q.operation_interface,jdbcType =VARCHAR},</if>
  2774. <if test = " q.batchno!= null " >#{q.batchno,jdbcType =VARCHAR},</if>
  2775. <if test = " q.judge_result!= null " >#{q.judge_result,jdbcType =VARCHAR},</if>
  2776. <if test = " q.memo!= null " >#{q.memo,jdbcType =VARCHAR},</if>
  2777. </trim>
  2778. </insert>
  2779. <update id="updateQcmJhyInspElements" parameterType="QCM.COMMUNAL.VO.QcmJhyElementsEditLog">
  2780. update qcm_jhy_insp_elements
  2781. <trim prefix="set" suffixOverrides=",">
  2782. <if test="q.a_assay_no!=null">
  2783. assay_no=#{q.a_assay_no},
  2784. </if>
  2785. <if test="q.a_heat_no!=null">
  2786. heat_no=#{q.a_heat_no},
  2787. </if>
  2788. </trim>
  2789. <where>
  2790. 1=1
  2791. AND assay_no=#{q.b_assay_no}
  2792. AND heat_no=#{q.b_heat_no}
  2793. AND pline_code=#{q.pline_code}
  2794. </where>
  2795. </update>
  2796. <update id="UpdateQcmJudgeUltimate" parameterType = "QCM.COMMUNAL.VO.QcmJudgeUltimate">
  2797. update qcm_judge_ultimate
  2798. <trim prefix="set" suffixOverrides=",">
  2799. <if test="q.utm_memo!=null">
  2800. utm_memo=#{q.utm_memo},
  2801. </if>
  2802. </trim>
  2803. <where>
  2804. 1=1
  2805. AND utm_id=#{q.utm_id}
  2806. </where>
  2807. </update>
  2808. <insert id = "insertQcmJhyElementsEditLog" parameterType = "QCM.COMMUNAL.VO.QcmJhyElementsEditLog">
  2809. insert into QCM_JHY_ELEMENTS_EDIT_LOG
  2810. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2811. <if test = " q.b_heat_no!= null " >b_heat_no,</if>
  2812. <if test = " q.b_assay_no!= null " >b_assay_no,</if>
  2813. <if test = " q.a_heat_no!= null " >a_heat_no,</if>
  2814. <if test = " q.a_assay_no!= null " >a_assay_no,</if>
  2815. <if test = " q.create_name!= null " >create_name,</if>
  2816. <if test = " q.create_time!= null " >create_time,</if>
  2817. <if test = " q.pline_code!= null " >pline_code,</if>
  2818. <if test = " q.h!= null " >h,</if>
  2819. <if test = " q.o!= null " >o,</if>
  2820. </trim> values
  2821. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2822. <if test = " q.b_heat_no!= null " >#{q.b_heat_no,jdbcType =VARCHAR},</if>
  2823. <if test = " q.b_assay_no!= null " >#{q.b_assay_no,jdbcType =VARCHAR},</if>
  2824. <if test = " q.a_heat_no!= null " >#{q.a_heat_no,jdbcType =VARCHAR},</if>
  2825. <if test = " q.a_assay_no!= null " >#{q.a_assay_no,jdbcType =VARCHAR},</if>
  2826. <if test = " q.create_name!= null " >#{q.create_name,jdbcType =VARCHAR},</if>
  2827. <if test = " q.create_time!= null " >sysdate,</if>
  2828. <if test = " q.pline_code!= null " >#{q.pline_code,jdbcType =VARCHAR},</if>
  2829. <if test = " q.h!= null " >#{q.h,jdbcType =VARCHAR},</if>
  2830. <if test = " q.o!= null " >#{q.o,jdbcType =VARCHAR},</if>
  2831. </trim>
  2832. </insert>
  2833. <insert id="insertQcmJudgeGpInfo" parameterType = "QCM.COMMUNAL.VO.QcmJudgeGpInfo">
  2834. insert into qcm_judge_gpinfo
  2835. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2836. <if test = " q.gp_id!= null " >gp_id,</if>
  2837. <if test = " q.material_no!= null " >material_no,</if>
  2838. <if test = " q.steel_name!= null " >steel_name,</if>
  2839. <if test = " q.thick!= null " >thick,</if>
  2840. <if test = " q.width!= null " >width,</if>
  2841. <if test = " q.length!= null " >length,</if>
  2842. <if test = " q.orderno!= null " >orderno,</if>
  2843. <if test = " q.gp_name!= null " >gp_name,</if>
  2844. <if test = " q.gp_name!= null " >gp_time,</if>
  2845. <if test = " q.old_orderno!= null " >old_orderno,</if>
  2846. <if test = " q.weight!= null " >weight,</if>
  2847. <if test = " q.prod_line!= null " >prod_line,</if>
  2848. <if test = " q.gp_steel_name!= null " >gp_steel_name,</if>
  2849. <if test = " q.gp_type!= null " >gp_type,</if>
  2850. </trim> values
  2851. <trim prefix="(" prefixOverrides="," suffix=")" suffixOverrides=",">
  2852. <if test = " q.gp_id!= null " >#{q.gp_id,jdbcType =VARCHAR},</if>
  2853. <if test = " q.material_no!= null " >#{q.material_no,jdbcType =VARCHAR},</if>
  2854. <if test = " q.steel_name!= null " >#{q.steel_name,jdbcType =VARCHAR},</if>
  2855. <if test = " q.thick!= null " >#{q.thick,jdbcType =VARCHAR},</if>
  2856. <if test = " q.width!= null " >#{q.width,jdbcType =VARCHAR},</if>
  2857. <if test = " q.length!= null " >#{q.length,jdbcType =VARCHAR},</if>
  2858. <if test = " q.orderno!= null " >#{q.orderno,jdbcType =VARCHAR},</if>
  2859. <if test = " q.gp_name!= null " >#{q.gp_name,jdbcType =VARCHAR},</if>
  2860. <if test = " q.gp_name!= null " >sysdate,</if>
  2861. <if test = " q.old_orderno!= null " >#{q.old_orderno,jdbcType =VARCHAR},</if>
  2862. <if test = " q.weight!= null " >#{q.weight,jdbcType =VARCHAR},</if>
  2863. <if test = " q.prod_line!= null " >#{q.prod_line,jdbcType =VARCHAR},</if>
  2864. <if test = " q.gp_steel_name!= null " >#{q.gp_steel_name,jdbcType =VARCHAR},</if>
  2865. <if test = " q.gp_type!= null " >#{q.gp_type,jdbcType =VARCHAR},</if>
  2866. </trim>
  2867. </insert>
  2868. <update id="LockP">
  2869. update ZJ_RESULT_ALL@xgcx
  2870. set PIC_IS_LOCK = '1'
  2871. where BILLETID = #{material_no}
  2872. AND JUDGERESULT = '0'
  2873. </update>
  2874. <update id = "UpdateQcmJudgeLocking8" parameterType= "QCM.COMMUNAL.VO.QCMJudgeLocking">
  2875. update qcm_judge_locking
  2876. set UNLOCK_TYPE_CODE = #{qjl.unlock_type_code,jdbcType =VARCHAR },
  2877. UNLOCK_TYPE_DESC = #{qjl.unlock_type_desc,jdbcType =VARCHAR },
  2878. UNLOCK_MEMO = #{qjl.unlock_memo,jdbcType =VARCHAR },
  2879. TARGET_DESIGN_KEY = #{qjl.target_design_key,jdbcType =VARCHAR },
  2880. TARGET_PSC = #{qjl.target_psc,jdbcType =VARCHAR },
  2881. CIC_LOCKING = #{qjl.cic_locking,jdbcType =VARCHAR },
  2882. FIC_LOCKING = #{qjl.fic_locking,jdbcType =VARCHAR },
  2883. SIC_LOCKING = #{qjl.sic_locking,jdbcType =VARCHAR },
  2884. PIC_LOCKING = #{qjl.pic_locking,jdbcType =VARCHAR },
  2885. DIC_LOCKING = #{qjl.dic_locking,jdbcType =VARCHAR },
  2886. UNLOCK_NAME = #{qjl.unlock_name,jdbcType =VARCHAR },
  2887. UNLOCK_TIME = sysdate,
  2888. reason_code= #{qjl.reason_code,jdbcType =VARCHAR},
  2889. reason_desc= #{qjl.reason_desc,jdbcType =VARCHAR},
  2890. flaw_code= #{qjl.flaw_code,jdbcType =VARCHAR},
  2891. flaw_desc= #{qjl.flaw_desc,jdbcType =VARCHAR},
  2892. unlock_result = #{qjl.unlock_result,jdbcType =VARCHAR}
  2893. where 1= 1
  2894. and batch_no = #{qjl.batch_no,jdbcType =VARCHAR}
  2895. <if test = " qjl.material_no!= null " >
  2896. and material_no = #{qjl.material_no,jdbcType =VARCHAR}
  2897. </if>
  2898. and unlock_type_code is null
  2899. and LOCK_TYPE_CODE = #{qjl.lock_type_code,jdbcType =VARCHAR }
  2900. </update>
  2901. <update id="zjResultAllZHB">
  2902. update ZJ_RESULT_ALL@xgcx
  2903. set billetid_jy = #{inspection_lot},PHYSRESULT='0',PHYSRESULT_DESC='',PHYSID=''
  2904. where BILLETID = #{material_no} and JUDGERESULT='0'
  2905. </update>
  2906. </mapper>