QueryLgResMgt.xml 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454
  1. <?xml version="1.0" encoding='UTF-8'?>
  2. <queryMap desc="实绩管理">
  3. <query id="GetLgshift.select" desc=" " fetchSize="10">
  4. <![CDATA[
  5. select mes_lg_common.getlgshift1(sysdate) from dual
  6. ]]>
  7. </query>
  8. <query id="GetStoveInfo_Load.select" desc="获取加热炉信息_加载" fetchSize="10">
  9. <![CDATA[
  10. select HEATPROCESSNO, HEATNO
  11. from (select HEATPROCESSNO, HEATNO, optdate
  12. from stl_Bof_Optinfo where 1=1 and STATIONCODE = '0'||? and
  13. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  14. union
  15. select HEATPROCESSNO, HEATNO, optdate
  16. from J#stl_Bof_Optinfo where 1=1 and STATIONCODE = '0'||? and
  17. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?)
  18. ORDER BY optdate DESC
  19. ]]>
  20. </query>
  21. <query id="GetBofOperateInfo.select" desc="获取转炉实绩信息" fetchSize="10">
  22. <![CDATA[
  23. select HEATPROCESSNO,
  24. HEATNO,
  25. STATIONCODE,
  26. DISPOSALTIME,
  27. WOID,
  28. OPTDATE,
  29. SHIFTCODE,
  30. MOLIRNSOURCE,
  31. IRONPOTID,
  32. IRONPOTWGT,
  33. IRONTEMPERATURE,
  34. PIGIRONWGT,
  35. WSTEELWGT,
  36. CHANGESTARTTIME,
  37. CHANGEENDTIME,
  38. CHANGETIME,
  39. OPENOXYGENTIME,
  40. STOPOXYGENTIME,
  41. SUPPLYOXYGENTIME,
  42. O2PRESS,
  43. O2CONSUME,
  44. MOLSTLTEMPERATURE,
  45. B1STARTTIME,
  46. B1ENDTIME,
  47. B1TIME,
  48. B1TEMPERATURE,
  49. B2STARTTIME,
  50. B2ENDTIME,
  51. B2TIME,
  52. B2TEMPERATURE,
  53. B3STARTTIME,
  54. B3ENDTIME,
  55. B3TIME,
  56. B3TEMPERATURE,
  57. B4STARTTIME,
  58. B4ENDTIME,
  59. B4TIME,
  60. B4TEMPERATURE,
  61. B5STARTTIME,
  62. B5ENDTIME,
  63. B5TIME,
  64. B5TEMPERATURE,
  65. TERMINUSTEPT,
  66. TERMINUSC,
  67. TERMINUSO2,
  68. BLOWO2TIMES,
  69. BLOWARTIMES,
  70. BLOWN2TIMES,
  71. TAPPINGSTARTTIME,
  72. TAPPINGENDTIME,
  73. TAPPINGTIME,
  74. BLKREDMODE,
  75. BLKREDEFFECTS,
  76. OGGNUMID,
  77. PSSTARTTIME,
  78. PSENDTIME,
  79. BRPSTIME,
  80. BRPSTIMES,
  81. N2PRESS,
  82. N2FLUX,
  83. N2CONSUME,
  84. ARPRESS,
  85. ARFLUX,
  86. ARCONSUME,
  87. BRWGT,
  88. DRWGT,
  89. RSSTOVENO,
  90. RSWGT,
  91. POTNO,
  92. POTAGE,
  93. POTDISTINCTION,
  94. POTWRAPSTATE,
  95. TAPPINGWGT,
  96. GAGE,
  97. SAGE,
  98. VFLAG,
  99. EMOLSTLTIME,
  100. PLANSTEEL,
  101. MOLSTLWGT,
  102. IRONWGT,
  103. CCMFLAG,
  104. FOLDFLAG,
  105. DFRFLAG,
  106. PRFLAG,
  107. ADDFLAG,
  108. TOPN2CONSUME,
  109. IRONCOMPONENTID,
  110. FIRSTCOMPONENTID,
  111. ENDCOMPONENTID,
  112. NUMID,
  113. WSID,
  114. O2FLUX,
  115. OPTTYPE,
  116. MOLSTLLEAVE,
  117. MOLIRNTYPE,
  118. OPTPERSONNEL,
  119. SUBAGE,
  120. SUBHEIGHT,
  121. OGGNO,
  122. POTTEMP,
  123. MEMO,
  124. UPDATETIME
  125. from (select *
  126. from stl_bof_optinfo where 1=1 and HEATPROCESSNO = ?
  127. union
  128. select * from J#stl_bof_optinfo) where 1=1 and HEATPROCESSNO= ?
  129. ]]>
  130. </query>
  131. <query id="GetCaSStoveInfo_Load.select" desc="加载吹氩炉号信息" fetchSize="10">
  132. <![CDATA[
  133. select HEATPROCESSNO, HEATNO, DisposalTime
  134. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  135. from stl_CAS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  136. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  137. union
  138. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  139. from J#stl_CAS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  140. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ? )
  141. ORDER BY OPTDATE DESC
  142. ]]>
  143. </query>
  144. <query id="GetCaSStoveInfo.select" desc="获取吹氩炉号信息" fetchSize="10">
  145. <![CDATA[
  146. select HEATPROCESSNO, HEATNO, DisposalTime
  147. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  148. from stl_CAS_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  149. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  150. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  151. union
  152. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  153. from J#stl_CAS_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  154. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  155. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ? )
  156. ORDER BY OPTDATE DESC
  157. ]]>
  158. </query>
  159. <query id="GetCasOperateInfo.select" desc="获取吹氩实绩信息" fetchSize="10">
  160. <![CDATA[
  161. select HEATPROCESSNO
  162. ,HEATNO
  163. ,STATIONCODE
  164. ,DISPOSALTIME
  165. ,WOID
  166. ,OPTDATE
  167. ,SHIFTCODE
  168. ,BLOWARSTARTTIME
  169. ,BLOWARENDTIME
  170. ,BLOWARTIME
  171. ,FEEDSILKBEGINTIME
  172. ,FEEDSILKCLOSETIME
  173. ,ARRIVEWGT
  174. ,ARCONSUME
  175. ,BLOWARMODE
  176. ,BLOWARPRESS
  177. ,USEDPRESS
  178. ,ARRIVETIME
  179. ,LEAVETIME
  180. ,STAYTIME
  181. ,ARFTEMPT
  182. ,ARITEMPT
  183. ,ARBTEMPT
  184. ,CASUSETIME
  185. ,CASSTARTTIME
  186. ,CASENDTIME
  187. ,CASTIME
  188. ,FEEDINGSPEED
  189. ,LEAVEWGT
  190. ,FEEDSILKTIME
  191. ,ARRIVEO2
  192. ,LEAVEO2
  193. ,HPCONSUME
  194. ,RESIDUETHICKNESS
  195. ,TWSTEELWGT
  196. ,MANTLEFLAG
  197. ,MANTLENUM
  198. ,POTNO
  199. ,POTDISTINCTION
  200. ,POTAGE
  201. ,POTWRAPSTATE
  202. ,GUNNO
  203. ,BLOWARTIMES
  204. ,ODERO2TIMES
  205. ,MOLSTLLEAVE
  206. ,PLANSTEEL
  207. ,MOLSTLTAREWGT
  208. ,MOLSTLWGT
  209. ,WSID
  210. ,OPTPERSONNEL
  211. ,MEMO
  212. ,UPDATETIME
  213. from (select * from stl_cas_optinfo where 1=1 and HEATPROCESSNO= ?
  214. union select * from J#stl_Cas_Optinfo) where 1=1 and HEATPROCESSNO= ?
  215. ]]>
  216. </query>
  217. <query id="GetBofSampling.select" desc="获取转炉采样数据 " fetchSize="10">
  218. <![CDATA[
  219. select samplingvalue,
  220. to_char(samplingdate, 'yyyy-MM-dd HH24:mi:ss') samplingdate
  221. from (select *
  222. from stl_Bof_Sampling
  223. union
  224. select * from J#stl_Bof_Sampling)
  225. WHERE HEATNO = decode(?,null,HEATNO,?)
  226. AND STATIONCODE = decode(?,null,STATIONCODE,?)
  227. AND DISPOSALTIME = decode(?,null,DISPOSALTIME,?)
  228. and (samplingname = 'GUNAHIGH' or samplingname = 'GUNBHIGH')
  229. order by samplingdate desc
  230. ]]>
  231. </query>
  232. <query id="GetBofO2Times.select" desc="获取转炉吹氧次数信息 " fetchSize="10">
  233. <![CDATA[
  234. select B1STARTTIME,
  235. B1ENDTIME,
  236. B1TIME,
  237. B2STARTTIME,
  238. B2ENDTIME,
  239. B2TIME,
  240. B3STARTTIME,
  241. B3ENDTIME,
  242. B3TIME,
  243. B4STARTTIME,
  244. B4ENDTIME,
  245. B4TIME,
  246. B5STARTTIME,
  247. B5ENDTIME,
  248. B5TIME
  249. from (select *
  250. from stl_bof_optinfo
  251. union
  252. select * from J#stl_bof_optinfo)
  253. where b1starttime is not null
  254. and HEATNO = decode(?, null, HEATNO, ?)
  255. AND STATIONCODE = decode(?, null, STATIONCODE, ?)
  256. AND DISPOSALTIME = decode(?, null, DISPOSALTIME, ?)
  257. ]]>
  258. </query>
  259. <query id="GetLFStoveInfo_Load.select" desc="加载精炼炉信息" fetchSize="10">
  260. <![CDATA[
  261. select HEATPROCESSNO, HEATNO, DisposalTime
  262. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  263. from STL_LFS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  264. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  265. union
  266. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  267. from J#STL_LFS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  268. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?)
  269. ORDER BY OPTDATE DESC
  270. ]]>
  271. </query>
  272. <query id="GetLFStoveInfo.select" desc="获取精炼炉号信息" fetchSize="10">
  273. <![CDATA[
  274. SELECT HEATPROCESSNO, HEATNO, DISPOSALTIME
  275. FROM (SELECT HEATPROCESSNO, HEATNO, DISPOSALTIME, OPTDATE
  276. FROM STL_LFS_OPTINFO
  277. WHERE 1 = 1
  278. AND STATIONCODE = '0' || ?
  279. AND SUBSTR(SHIFTCODE, 2, 1) =
  280. DECODE(?, NULL, SUBSTR(SHIFTCODE, 2, 1), ?)
  281. AND PLANSTEEL = DECODE(?, NULL, PLANSTEEL, ?)
  282. AND HEATNO = DECODE(?, NULL, HEATNO, ?)
  283. AND TO_CHAR(OPTDATE, 'YYYY-MM-DD') BETWEEN ? AND ?
  284. UNION ALL
  285. SELECT HEATPROCESSNO, HEATNO, DISPOSALTIME, OPTDATE
  286. FROM J#STL_LFS_OPTINFO
  287. WHERE 1 = 1
  288. AND STATIONCODE = '0' || ?
  289. AND SUBSTR(SHIFTCODE, 2, 1) =
  290. DECODE(?, NULL, SUBSTR(SHIFTCODE, 2, 1), ?)
  291. AND PLANSTEEL = DECODE(?, NULL, PLANSTEEL, ?)
  292. AND HEATNO = DECODE(?, NULL, HEATNO, ?)
  293. AND TO_CHAR(OPTDATE, 'YYYY-MM-DD') BETWEEN ? AND ?)
  294. ORDER BY OPTDATE DESC
  295. ]]>
  296. </query>
  297. <query id="GetLfsEtyInfo.select" desc="获取精炼炉送电档位信息" fetchSize="10">
  298. <![CDATA[
  299. select SELESTATE,
  300. SELENUMID,
  301. HEATPROCESSNO,
  302. SELETIME,
  303. SELESTARTTIME,
  304. SELEENDTIME
  305. from (SELECT *
  306. FROM STL_LFS_ELECTRICITY
  307. UNION
  308. SELECT * FROM STL_LFS_ELECTRICITY)
  309. where HEATNO = decode(?, null, HEATNO, ?) and STATIONCODE = ? and
  310. DisposalTime = decode(?, null, DisposalTime, ?)
  311. order by SELESTATE, SELENUMID desc
  312. ]]>
  313. </query>
  314. <query id="GetLFSOperateInfo.select" desc="获取LFS精炼实绩信息 " fetchSize="10">
  315. <![CDATA[
  316. select HEATPROCESSNO
  317. ,HEATNO
  318. ,STATIONCODE
  319. ,DISPOSALTIME
  320. ,WOID
  321. ,OPTDATE
  322. ,SHIFTCODE
  323. ,BEGINBLOWAR
  324. ,ENDBLOWAR
  325. ,BLOWARTIME
  326. ,ARCONSUME
  327. ,BLOWARPRESS
  328. ,BLOWARMODE
  329. ,ARRIVETIME
  330. ,LEAVETIME
  331. ,ARRIVETEMPT
  332. ,LEAVETEMPT
  333. ,SEATDSTARTTIME
  334. ,SEATDENDTIME
  335. ,SEATDTIME
  336. ,SELESTARTTIME
  337. ,SELEENDTIME
  338. ,SELETIME
  339. ,ELETRICITYCONSUME
  340. ,ELETRICITYTIMES
  341. ,FEEDINGSPEED
  342. ,ARRIVEWGT
  343. ,LEAVEWGT
  344. ,REFINETIME
  345. ,ARRIVEO2
  346. ,LEAVEO2
  347. ,MRTCONSUME
  348. ,NMRTCONSUME
  349. ,BESTROWDOSAGE
  350. ,RESIDUETHICKNESS
  351. ,POTNO
  352. ,POTDISTINCTION
  353. ,POTAGE
  354. ,POTWRAPSTATE
  355. ,ODERO2TIMES
  356. ,BLOWARTIMES
  357. ,REPOSEBEGINTIME
  358. ,REPOSECLOSETIME
  359. ,REPOSETIME
  360. ,COVERUPPERTIME
  361. ,COVERDOWNTIME
  362. ,FEEDSILKBEGINTIME
  363. ,FEEDSILKCLOSETIME
  364. ,MOLSTLLEAVE
  365. ,PLANSTEEL
  366. ,CCMTEMPT
  367. ,FLEXIBLEBLOWTIME
  368. ,TEMPTNUM
  369. ,MOLSTLWGT
  370. ,POLE_A
  371. ,POLE_C
  372. ,POLE_B
  373. ,OPTPERSONNEL
  374. ,WSID
  375. ,MEMO
  376. ,UPDATETIME
  377. ,AGE
  378. ,LFSNO
  379. ,CLEARENCELHEIGHT
  380. ,LADLECOVERAGE
  381. ,SOFTBLOWBEGINTIME
  382. ,DILUTEDRESIDUEDOSE
  383. from (select * from stl_lfs_optinfo where 1=1 and HEATPROCESSNO= ?
  384. union select * from j#stl_lfs_optinfo where 1=1 and HEATPROCESSNO= ? )
  385. ]]>
  386. </query>
  387. <query id="GetRHStoveInfo_Load.select" desc="加载RH炉信息" fetchSize="10">
  388. <![CDATA[
  389. select HEATPROCESSNO, HEATNO, DisposalTime
  390. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  391. from STL_RHS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  392. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  393. union
  394. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  395. from J#STL_RHS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  396. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?)
  397. ORDER BY OPTDATE DESC
  398. ]]>
  399. </query>
  400. <query id="GetRHStoveInfo.select" desc="获取RH炉号信息" fetchSize="10">
  401. <![CDATA[
  402. select HEATPROCESSNO, HEATNO, DisposalTime
  403. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  404. from STL_RHS_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  405. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  406. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  407. union
  408. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  409. from J#STL_RHS_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  410. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  411. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ? )
  412. ORDER BY OPTDATE DESC
  413. ]]>
  414. </query>
  415. <query id="GetRhsObInfo.select" desc="获取RH炉吹氧信息" fetchSize="10">
  416. <![CDATA[
  417. select o2numid,
  418. heatprocessno,
  419. stationcode,
  420. disposaltime,
  421. heatno,
  422. o2time,
  423. o2consume,
  424. o2starttime,
  425. o2endtime
  426. from (SELECT *
  427. FROM STL_rhs_oxygenblowing
  428. where 1 = 1
  429. and HEATNO = decode(?, null, HEATNO, ?)
  430. and STATIONCODE = decode(?, null, STATIONCODE, ?)
  431. and disposaltime = decode(?, null, disposaltime, ?)
  432. UNION
  433. SELECT * FROM STL_rhs_oxygenblowing
  434. where 1 = 1
  435. and HEATNO = decode(?, null, HEATNO, ?)
  436. and STATIONCODE = decode(?, null, STATIONCODE, ?)
  437. and disposaltime = decode(?, null, disposaltime, ?))
  438. order by o2starttime desc
  439. ]]>
  440. </query>
  441. <query id="GetRHsOperateInfo.select" desc="获取RH炉操作信息" fetchSize="10">
  442. <![CDATA[
  443. select HEATPROCESSNO,
  444. HEATNO,
  445. STATIONCODE,
  446. DISPOSALTIME,
  447. WOID,
  448. SHIFTCODE,
  449. OPTDATE,
  450. ARCONSUME,
  451. O2CONSUME,
  452. STEAMCONSUME,
  453. ARRIVETIME,
  454. LEAVETIME,
  455. REFINETIME,
  456. ARFTEMPT,
  457. ARBTEMPT,
  458. FEEDINGSPEED,
  459. ARRIVEWGT,
  460. LEAVEWGT,
  461. HPCONSUME,
  462. RESIDUETHICKNESS,
  463. TWSTEELWGT,
  464. MANTLEFLAG,
  465. MANTLENUM,
  466. N2_CONS_C,
  467. AR_CONS_S,
  468. N2_CONS_S,
  469. REPOSEBEGINTIME,
  470. REPOSECLOSETIME,
  471. SUM_TIME,
  472. PURE_TIME,
  473. LANCE_NO,
  474. LANCE_TIMES,
  475. VES_NO,
  476. BEF_VAC_TIME,
  477. VACBEGINTIME,
  478. VACLOSETIME,
  479. VAC_TIME,
  480. O2BEGINTIME,
  481. O2CLOSETIME,
  482. O2_TIME,
  483. O2USEDTOTALAL,
  484. O2USEDTOTALC,
  485. RHSNO,
  486. RHSNO2,
  487. FEEDBEGINTIME,
  488. FEEDCLOSETIME,
  489. FEED_TIME,
  490. ARBEGINTIME,
  491. ARCLOSETIME,
  492. AR_TIME,
  493. WATER_CONS_LNQ,
  494. WATER_CONS_JX,
  495. VAC_MIN,
  496. POTNO,
  497. POTDISTINCTION,
  498. POTAGE,
  499. POTWRAPSTATE,
  500. COMPONENTCODE1,
  501. COMPONENTCODE2,
  502. COMPONENTCODE3,
  503. COMPONENTCODE4,
  504. COMPONENTCODE5,
  505. ARRIVECPTCODE,
  506. LEAVECPTCODE,
  507. PRODUCTCPTCODE,
  508. MOLSTLWGT,
  509. MOLSTLLEAVE,
  510. PLANSTEEL,
  511. OPTPERSONNEL,
  512. CLEARENCELHEIGHT,
  513. WSID,
  514. MEMO,
  515. UPDATETIME,
  516. ARRIVEO2,
  517. LEAVEO2
  518. from (select * from stl_Rhs_optinfo where 1=1 and HEATPROCESSNO= decode(?, null, HEATPROCESSNO, ?)
  519. union
  520. select * from j#stl_Rhs_optinfo where 1=1 and HEATPROCESSNO= decode(?, null, HEATPROCESSNO, ?) )
  521. ]]>
  522. </query>
  523. <query id="GetVDStoveInfo_Load.select" desc="加载VD炉信息" fetchSize="10">
  524. <![CDATA[
  525. select HEATPROCESSNO, HEATNO, DisposalTime
  526. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  527. from STL_VDS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  528. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  529. union
  530. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  531. from J#STL_VDS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  532. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?)
  533. ORDER BY OPTDATE DESC
  534. ]]>
  535. </query>
  536. <query id="GetVDStoveInfo.select" desc="获取VD炉号信息" fetchSize="10">
  537. <![CDATA[
  538. select HEATPROCESSNO, HEATNO, DisposalTime
  539. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  540. from STL_VDS_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  541. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  542. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  543. union
  544. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  545. from J#STL_VDS_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  546. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  547. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ? )
  548. ORDER BY OPTDATE DESC
  549. ]]>
  550. </query>
  551. <query id="GetVDsObInfo.select" desc="获取VD炉吹氧信息" fetchSize="10">
  552. <![CDATA[
  553. select o2numid,
  554. heatprocessno,
  555. stationcode,
  556. disposaltime,
  557. heatno,
  558. o2time,
  559. o2consume,
  560. o2starttime,
  561. o2endtime
  562. from (SELECT *
  563. FROM STL_rhs_oxygenblowing
  564. where 1 = 1
  565. and HEATNO = decode(?, null, HEATNO, ?)
  566. and STATIONCODE = decode(?, null, STATIONCODE, ?)
  567. and disposaltime = decode(?, null, disposaltime, ?)
  568. UNION
  569. SELECT * FROM STL_rhs_oxygenblowing
  570. where 1 = 1
  571. and HEATNO = decode(?, null, HEATNO, ?)
  572. and STATIONCODE = decode(?, null, STATIONCODE, ?)
  573. and disposaltime = decode(?, null, disposaltime, ?))
  574. order by o2starttime desc
  575. ]]>
  576. </query>
  577. <query id="GetVDsOperateInfo.select" desc="获取VD炉操作信息" fetchSize="10">
  578. <![CDATA[
  579. select heatprocessno,
  580. heatno,
  581. stationcode,
  582. disposaltime,
  583. plansteel,
  584. woid,
  585. shiftcode,
  586. optdate,
  587. arrivetime,
  588. leavetime,
  589. refinetime,
  590. reposebegintime,
  591. reposeclosetime,
  592. treattime,
  593. oxygenstarttime,
  594. oxygenendtime,
  595. oxygentime,
  596. hydgenstarttime,
  597. hydgenendtime,
  598. hydgentime,
  599. mixstarttime,
  600. mixendtime,
  601. mixtime,
  602. vacbegintime,
  603. vaclosetime,
  604. vac_time,
  605. feedbegintime,
  606. feedclosetime,
  607. feed_time,
  608. feedingspeed,
  609. sum_time,
  610. arftempt,
  611. arbtempt,
  612. arrivewgt,
  613. leavewgt,
  614. hpconsume,
  615. mantleflag,
  616. mantlenum,
  617. vdage,
  618. vdno,
  619. vacuumpress,
  620. stop_date,
  621. slag_wgt,
  622. vac_min,
  623. o2consume,
  624. steamconsume,
  625. steam_tem,
  626. steam_pres,
  627. potno,
  628. potdistinction,
  629. potage,
  630. potwrapstate,
  631. cover,
  632. molstlwgt,
  633. isrs,
  634. optpersonnel,
  635. wsid,
  636. arriveo2,
  637. leaveo2,
  638. updatetime,
  639. memo,
  640. ARRIVEH,
  641. LEAVEH,
  642. RESIDUETHICKNESS,
  643. CLEARENCELHEIGHT,
  644. ARBEGINTIME,
  645. ARCLOSETIME,
  646. VAC_KEEP_TIME,
  647. AR_TIME
  648. from (select * from stl_Vds_optinfo where 1=1 and HEATPROCESSNO= decode(?, null, HEATPROCESSNO, ?)
  649. union
  650. select * from j#stl_Vds_optinfo where 1=1 and HEATPROCESSNO= decode(?, null, HEATPROCESSNO, ?) )
  651. ]]>
  652. </query>
  653. <query id="GetCcmMouldInfo.select" desc="获取浇次信息" fetchSize="10">
  654. <![CDATA[
  655. select MOULDNO,
  656. MWRAPNO,
  657. BALESTARTTIME,
  658. BALEENDTIME,
  659. BALEENDDATE,
  660. ACCIDENTENDTIME,
  661. MWRAPINFUSE,
  662. MWRAPREMAIN,
  663. S1CRYSTALCODE,
  664. S2CRYSTALCODE,
  665. S3CRYSTALCODE,
  666. S4CRYSTALCODE,
  667. S5CRYSTALCODE,
  668. S6CRYSTALCODE,
  669. CRYSTALWIDE,
  670. CRYSTALTHICK,
  671. S1STARTTIME,
  672. S2STARTTIME,
  673. S3STARTTIME,
  674. S4STARTTIME,
  675. S5STARTTIME,
  676. S6STARTTIME,
  677. S1ENDTIME,
  678. S2ENDTIME,
  679. S3ENDTIME,
  680. S4ENDTIME,
  681. S5ENDTIME,
  682. S6ENDTIME,
  683. S1ENDCAUSE,
  684. S2ENDCAUSE,
  685. S3ENDCAUSE,
  686. S4ENDCAUSE,
  687. S5ENDCAUSE,
  688. S6ENDCAUSE,
  689. S1PLANENDTIME,
  690. S2PLANENDTIME,
  691. S3PLANENDTIME,
  692. S4PLANENDTIME,
  693. S5PLANENDTIME,
  694. S6PLANENDTIME,
  695. S1ENDOVERTIME,
  696. S2ENDOVERTIME,
  697. S3ENDOVERTIME,
  698. S4ENDOVERTIME,
  699. S5ENDOVERTIME,
  700. S6ENDOVERTIME,
  701. S1CUTFRONT,
  702. S2CUTFRONT,
  703. S3CUTFRONT,
  704. S4CUTFRONT,
  705. S5CUTFRONT,
  706. S6CUTFRONT,
  707. S1CUTBACK,
  708. S2CUTBACK,
  709. S3CUTBACK,
  710. S4CUTBACK,
  711. S5CUTBACK,
  712. S6CUTBACK,
  713. MOULDPLAN,
  714. LONGGAP,
  715. UPGAP,
  716. DOWNGAP,
  717. DIPGAP,
  718. STUFFSTICK,
  719. PROTECTDTEG,
  720. S1CRPASSSTEELWEIGHT,
  721. S2CRPASSSTEELWEIGHT,
  722. MWRAPFIRINGBEGINTIME1,
  723. MWRAPFIRINGENDTIME1,
  724. MWRAPNO2,
  725. MWRAPFIRINGBEGINTIME2,
  726. MWRAPFIRINGENDTIME2,
  727. MEMO,
  728. UPDATETIME,
  729. MWRAPNO3,
  730. MWRAPFIRINGBEGINTIME3,
  731. MWRAPFIRINGENDTIME3,
  732. S3CRPASSSTEELWEIGHT,
  733. S4CRPASSSTEELWEIGHT,
  734. S5CRPASSSTEELWEIGHT,
  735. MWRAPBESTROWNAME,
  736. MWRAPBESTROWDOSAGE,
  737. PROTECTDTEGDOSAGE,
  738. MINFIREBEGINTIME,
  739. MIDDLEFIREBEGINTIME,
  740. MAXBEGINTIME
  741. from stl_ccm_mouldinfo where 1=1 and MouldNo=decode(?, null, MouldNo, ?)
  742. ]]>
  743. </query>
  744. <query id="GetCcmOperateInfo.select" desc="获取连铸机实绩操作信息" fetchSize="10">
  745. <![CDATA[
  746. select HEATPROCESSNO
  747. ,HEATNO
  748. ,STATIONCODE
  749. ,DISPOSALTIME
  750. ,CCMSTOVENO
  751. ,WOID
  752. ,BILLETSECTION
  753. ,BILLETFIXSIZE
  754. ,OPTDATE
  755. ,SHIFTCODE
  756. ,POTNO
  757. ,POTDISTINCTION
  758. ,POTAGE
  759. ,POTWRAPSTATE
  760. ,MOULDSTOVENUM
  761. ,PFBALETEMPT
  762. ,PFBALEWGT
  763. ,BALEPFTIME
  764. ,MOULDINGPOTNO
  765. ,MOULDINGPOTRANK
  766. ,MOULDBALEWGT
  767. ,MOULDBALETEMPT
  768. ,BALESTARTTIME
  769. ,BALEENDTIME
  770. ,BALELEAVETIME
  771. ,BALELEAVEWGT
  772. ,PLANPFTIME
  773. ,WAITMOULDTIME
  774. ,MOULDTIME
  775. ,BALEFLOWFLAG
  776. ,BALEMOULDFLAG
  777. ,BALEFLOWTIEMS
  778. ,RSMOLSTLWGT
  779. ,MWRAPNO
  780. ,MWRAPTEMPT
  781. ,MWRAPWGT
  782. ,MWRAPSTARTTIME
  783. ,MWRAPENDTIME
  784. ,HEAT_SEQ
  785. ,BIGPOTARM1WEIGHT
  786. ,BIGPOTARM2WEIGHT
  787. ,CRYSTALLIZERID
  788. ,CRYSTALLIZERTIMES
  789. ,MOULDNUMID
  790. ,MOULDNO
  791. ,PLANSTEEL
  792. ,METERODDWGT
  793. ,LMLTEMPT
  794. ,SWRAPREMAINWGT
  795. ,SWRAPENDCAUSE
  796. ,MOULDWAITTIME
  797. ,MWRAPTEMPT05
  798. ,MWRAPTEMPT20
  799. ,MWRAPLIQUID
  800. ,MWRAPLIQUID15
  801. ,SMWRAPLIQUID
  802. ,SMWRAPWGT
  803. ,BILLETLENGTH
  804. ,BILLETWGT
  805. ,BILLETNUM
  806. ,PRODUCTCPTCODE
  807. ,0 S1FBLENGTH
  808. ,0 S2FBLENGTH
  809. ,0 S3FBLENGTH
  810. ,0 S4FBLENGTH
  811. ,0 S5FBLENGTH
  812. ,0 S6FBLENGTH
  813. ,0 S7FBLENGTH
  814. ,0 S8FBLENGTH
  815. ,BAKEO2TIEMS
  816. ,FLAG
  817. ,0 为没拉成罐数
  818. ,FBTOTALWGT
  819. ,HOTPITCH
  820. ,WSID
  821. ,OPTPERSONNEL
  822. ,MEMO
  823. ,S2BILLETLENGTH
  824. ,S1BILLETLENGTH
  825. ,RESIDUETHICKNESS
  826. ,UPDATETIME
  827. ,BALEMOULDTIME
  828. from (select * from stl_ccm_optinfo where 1=1 and HEATPROCESSNO =decode(?, null, HEATPROCESSNO, ?)
  829. union select * from J#stl_ccm_optinfo where 1=1 and HEATPROCESSNO =decode(?, null, HEATPROCESSNO, ?))
  830. ]]>
  831. </query>
  832. <query id="GetCmmBMvalue.select" desc="连铸实绩取S1,S2的水流量、压力和水温差" fetchSize="10">
  833. <![CDATA[
  834. select t.S1cetempt,
  835. t.S2CETEMPT,
  836. t.S1CEWRTRPLUX,
  837. t.S2CEWRTRPLUX,
  838. t.S1CETEMPTPRESS,
  839. S2CETEMPTPRESS
  840. from scm_CCM_BMILLSAMPLING t
  841. where t.samplingid = (select max(samplingid)
  842. from JOB_CCM_BMILLSAMPLING
  843. where t.heatprocessno = decode(?, null, heatprocessno, ?))
  844. and t.heatprocessno = decode(?, null, heatprocessno, ?)
  845. union
  846. select t.S1cetempt,
  847. t.S2CETEMPT,
  848. t.S1CEWRTRPLUX,
  849. t.S2CEWRTRPLUX,
  850. t.S1CETEMPTPRESS,
  851. S2CETEMPTPRESS
  852. from Y#JOB_CCM_BMILLSAMPLING t
  853. where t.samplingid = (select max(samplingid)
  854. from Y#JOB_CCM_BMILLSAMPLING
  855. where t.heatprocessno = decode(?, null, heatprocessno, ?))
  856. and t.heatprocessno = decode(?, null, heatprocessno, ?)
  857. ]]>
  858. </query>
  859. <query id="GetCCMHNoData_Load.select" desc="获取连铸机炉号信息_加载" fetchSize="10">
  860. <![CDATA[
  861. select HEATPROCESSNO, HEATNO,DisposalTime
  862. from (select HEATPROCESSNO, HEATNO,DisposalTime,OPTDATE,BALESTARTTIME
  863. from STL_CCM_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  864. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  865. union
  866. select HEATPROCESSNO, HEATNO,DisposalTime,OPTDATE,BALESTARTTIME
  867. from J#STL_CCM_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  868. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?)
  869. ORDER BY optdate DESC
  870. ]]>
  871. </query>
  872. <query id="GetCCMHeatNoData.select" desc="获取连铸机炉号信息" fetchSize="10">
  873. <![CDATA[
  874. select HEATPROCESSNO, HEATNO,DisposalTime
  875. from (select HEATPROCESSNO, HEATNO,DisposalTime,OPTDATE,BALESTARTTIME
  876. from STL_CCM_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  877. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  878. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  879. union
  880. select HEATPROCESSNO, HEATNO, DisposalTime,OPTDATE,BALESTARTTIME
  881. from J#STL_CCM_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  882. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  883. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ? )
  884. ORDER BY OPTDATE DESC
  885. ]]>
  886. </query>
  887. <query id="GetSampleDataOne.select" desc="返回指定SQL语句" fetchSize="10">
  888. - <![CDATA[
  889. select temp,
  890. to_char(samplingTime, 'yyyy-MM-dd HH24:mi:ss') samplingTime,
  891. round(S1CASTSPEED, 2) S1CASTSPEED,
  892. round(S2CASTSPEED, 2) S2CASTSPEED,
  893. round(S3CASTSPEED, 2) S3CASTSPEED,
  894. round(S4CASTSPEED, 2) S4CASTSPEED,
  895. round(S5CASTSPEED, 2) S5CASTSPEED,
  896. round(mes_lg_sampling.maxval(nvl(midladle1weight, 0),
  897. nvl(midladle2weight, 0))) midladle1weight,
  898. round(mes_lg_sampling.maxval(nvl(ARMLADLEAWEIGHT, 0),
  899. nvl(ARMLADLEBWEIGHT, 0))) ARMBIGPOTTOTALWEIGHT
  900. from (select *
  901. from stl_ccm_f1sampling
  902. where heatno = ?
  903. and disposaltime = ?
  904. union
  905. select *
  906. from J#stl_ccm_f1sampling
  907. where heatno = ?
  908. and disposaltime = ?) a,
  909. (select temp, min(samplingtime) samplingTime, heatno, disposaltime
  910. from (select round(MIDLADLETEMP) temp,
  911. min(lastfreshtime) samplingTime,
  912. heatno,
  913. disposaltime
  914. from (select *
  915. from stl_ccm_f1sampling
  916. where heatno = ?
  917. and disposaltime = ?
  918. union
  919. select *
  920. from J#stl_ccm_f1sampling
  921. where heatno = ?
  922. and disposaltime = ?)
  923. group by MIDLADLETEMP, heatno, disposaltime)
  924. group by temp, heatno, disposaltime) t
  925. where a.heatno = t.heatno
  926. and a.disposaltime = t.disposaltime
  927. and a.lastfreshtime = t.samplingTime
  928. and temp > 1390
  929. order by samplingTime asc
  930. ]]>
  931. </query>
  932. - <query id="GetSampleDataTwo.select" desc="返回指定SQL语句" fetchSize="10">
  933. - <![CDATA[
  934. select temp,
  935. to_char(samplingTime, 'yyyy-MM-dd HH24:mi:ss') samplingTime,
  936. round(S1CASTSPEED, 2) S1CASTSPEED,
  937. round(S2CASTSPEED, 2) S2CASTSPEED,
  938. round(S3CASTSPEED, 2) S3CASTSPEED,
  939. round(S4CASTSPEED, 2) S4CASTSPEED,
  940. round(S5CASTSPEED, 2) S5CASTSPEED,
  941. round(mes_lg_sampling.maxval(nvl(midladle1weight, 0),
  942. nvl(midladle2weight, 0))) midladle1weight,
  943. round(mes_lg_sampling.maxval(nvl(ARMLADLEAWEIGHT, 0),
  944. nvl(ARMLADLEBWEIGHT, 0))) ARMBIGPOTTOTALWEIGHT
  945. from (select *
  946. from stl_ccm_f2sampling
  947. where heatno = ?
  948. and disposaltime = ?
  949. union
  950. select *
  951. from J#stl_ccm_f2sampling
  952. where heatno = ?
  953. and disposaltime = ?) a,
  954. (select temp, min(samplingtime) samplingTime, heatno, disposaltime
  955. from (select round(MIDLADLETEMP) temp,
  956. min(lastfreshtime) samplingTime,
  957. heatno,
  958. disposaltime
  959. from (select *
  960. from stl_ccm_f2sampling
  961. where heatno = ?
  962. and disposaltime = ?
  963. union
  964. select *
  965. from J#stl_ccm_f2sampling
  966. where heatno = ?
  967. and disposaltime = ?)
  968. group by MIDLADLETEMP, heatno, disposaltime)
  969. group by temp, heatno, disposaltime) t
  970. where a.heatno = t.heatno
  971. and a.disposaltime = t.disposaltime
  972. and a.lastfreshtime = t.samplingTime
  973. and temp > 1390
  974. order by samplingTime asc
  975. ]]>
  976. </query>
  977. - <query id="GetSampleDataThree.select" desc="返回指定SQL语句" fetchSize="10">
  978. - <![CDATA[
  979. select temp,
  980. to_char(samplingTime, 'yyyy-MM-dd HH24:mi:ss') samplingTime,
  981. round(S1CASTSPEED, 2) S1CASTSPEED,
  982. round(S2CASTSPEED, 2) S2CASTSPEED,
  983. round(S3CASTSPEED, 2) S3CASTSPEED,
  984. round(S4CASTSPEED, 2) S4CASTSPEED,
  985. round(S5CASTSPEED, 2) S5CASTSPEED,
  986. round(mes_lg_sampling.maxval(nvl(midladle1weight, 0),
  987. nvl(midladle2weight, 0))) midladle1weight,
  988. round(mes_lg_sampling.maxval(nvl(ARMLADLEAWEIGHT, 0),
  989. nvl(ARMLADLEBWEIGHT, 0))) ARMBIGPOTTOTALWEIGHT
  990. from (select *
  991. from stl_ccm_f3sampling
  992. where heatno = ?
  993. and disposaltime = ?
  994. union
  995. select *
  996. from J#stl_ccm_f3sampling
  997. where heatno = ?
  998. and disposaltime = ?) a,
  999. (select temp, min(samplingtime) samplingTime, heatno, disposaltime
  1000. from (select round(MIDLADLETEMP) temp,
  1001. min(lastfreshtime) samplingTime,
  1002. heatno,
  1003. disposaltime
  1004. from (select *
  1005. from stl_ccm_f3sampling
  1006. where heatno = ?
  1007. and disposaltime = ?
  1008. union
  1009. select *
  1010. from J#stl_ccm_f3sampling
  1011. where heatno = ?
  1012. and disposaltime = ?)
  1013. group by MIDLADLETEMP, heatno, disposaltime)
  1014. group by temp, heatno, disposaltime) t
  1015. where a.heatno = t.heatno
  1016. and a.disposaltime = t.disposaltime
  1017. and a.lastfreshtime = t.samplingTime
  1018. and temp > 1390
  1019. order by samplingTime asc
  1020. ]]>
  1021. </query>
  1022. - <query id="GetSampleDataFour.select" desc="返回指定SQL语句" fetchSize="10">
  1023. - <![CDATA[
  1024. select temp,
  1025. to_char(samplingTime, 'yyyy-MM-dd HH24:mi:ss') samplingTime,
  1026. round(S1CASTSPEED, 2) S1CASTSPEED,
  1027. round(S2CASTSPEED, 2) S2CASTSPEED,
  1028. round(S3CASTSPEED, 2) S3CASTSPEED,
  1029. round(S4CASTSPEED, 2) S4CASTSPEED,
  1030. round(S5CASTSPEED, 2) S5CASTSPEED,
  1031. round(mes_lg_sampling.maxval(nvl(midladle1weight, 0),
  1032. nvl(midladle2weight, 0))) midladle1weight,
  1033. round(mes_lg_sampling.maxval(nvl(ARMLADLEAWEIGHT, 0),
  1034. nvl(ARMLADLEBWEIGHT, 0))) ARMBIGPOTTOTALWEIGHT
  1035. from (select *
  1036. from stl_ccm_f4sampling
  1037. where heatno = ?
  1038. and disposaltime = ?
  1039. union
  1040. select *
  1041. from J#stl_ccm_f4sampling
  1042. where heatno = ?
  1043. and disposaltime = ?) a,
  1044. (select temp, min(samplingtime) samplingTime, heatno, disposaltime
  1045. from (select round(MIDLADLETEMP) temp,
  1046. min(lastfreshtime) samplingTime,
  1047. heatno,
  1048. disposaltime
  1049. from (select *
  1050. from stl_ccm_f4sampling
  1051. where heatno = ?
  1052. and disposaltime = ?
  1053. union
  1054. select *
  1055. from J#stl_ccm_f4sampling
  1056. where heatno = ?
  1057. and disposaltime = ?)
  1058. group by MIDLADLETEMP, heatno, disposaltime)
  1059. group by temp, heatno, disposaltime) t
  1060. where a.heatno = t.heatno
  1061. and a.disposaltime = t.disposaltime
  1062. and a.lastfreshtime = t.samplingTime
  1063. and temp > 1390
  1064. order by samplingTime asc
  1065. ]]>
  1066. </query>
  1067. <query id="UpdateMouldInfo.select" desc="新增炉号信息" fetchSize="10">
  1068. <![CDATA[
  1069. Update stl_CCM_MOULDINFO
  1070. set MWRAPNO = ?,
  1071. BALESTARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1072. BALEENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1073. BALEENDDATE = ?,
  1074. ACCIDENTENDTIME = ?,
  1075. S1CRYSTALCODE = ?,
  1076. S2CRYSTALCODE = ?,
  1077. S3CRYSTALCODE = ?,
  1078. S4CRYSTALCODE = ?,
  1079. S5CRYSTALCODE = ?,
  1080. S1STARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1081. S2STARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1082. S3STARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1083. S4STARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1084. S5STARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1085. S1ENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1086. S2ENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1087. S3ENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1088. S4ENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1089. S5ENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1090. S1ENDCAUSE = ?,
  1091. S2ENDCAUSE = ?,
  1092. S3ENDCAUSE = ?,
  1093. S4ENDCAUSE = ?,
  1094. S5ENDCAUSE = ?,
  1095. S1PLANENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1096. S2PLANENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1097. S3PLANENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1098. S4PLANENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1099. S5PLANENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1100. S1ENDOVERTIME = ?,
  1101. S2ENDOVERTIME = ?,
  1102. S3ENDOVERTIME = ?,
  1103. S4ENDOVERTIME = ?,
  1104. S5ENDOVERTIME = ?,
  1105. S1CUTFRONT = ?,
  1106. S2CUTFRONT = ?,
  1107. S3CUTFRONT = ?,
  1108. S4CUTFRONT = ?,
  1109. S5CUTFRONT = ?,
  1110. S1CUTBACK = ?,
  1111. S2CUTBACK = ?,
  1112. S3CUTBACK = ?,
  1113. S4CUTBACK = ?,
  1114. S5CUTBACK = ?,
  1115. UPGAP = ?,
  1116. DOWNGAP = ?,
  1117. STUFFSTICK = ?,
  1118. PROTECTDTEG = ?,
  1119. S1CRPASSSTEELWEIGHT = ?,
  1120. S2CRPASSSTEELWEIGHT = ?,
  1121. MEMO = ?,
  1122. UPDATETIME = sysdate,
  1123. S3CRPASSSTEELWEIGHT = ?,
  1124. S4CRPASSSTEELWEIGHT = ?,
  1125. S5CRPASSSTEELWEIGHT = ?,
  1126. MWRAPBESTROWNAME = ?,
  1127. MWRAPBESTROWDOSAGE = ?,
  1128. PROTECTDTEGDOSAGE = ?
  1129. where MOULDNO=?
  1130. ]]>
  1131. </query>
  1132. <query id="GetCmmManualTemp.select" desc="获取温度采样数据" fetchSize="10">
  1133. <![CDATA[
  1134. select lastfreshtime
  1135. from (select *
  1136. from $ t
  1137. where heatno = ?
  1138. and disposaltime = ?
  1139. union
  1140. select *
  1141. from J#$ t
  1142. where heatno = ?
  1143. and disposaltime = ?)
  1144. order by lastfreshtime asc
  1145. ]]>
  1146. </query>
  1147. <query id="SetResHopperName.select" desc="设置料斗信息" fetchSize="10">
  1148. <![CDATA[
  1149. select a.MSNUMID,
  1150. a.MSLOCATION,
  1151. a.MATERIELTYPE,
  1152. a.MATERIELCODE,
  1153. a.MATERIELUNITS,
  1154. a.JMTYPE,
  1155. b.MATERIELFORSHORT
  1156. from stl_MATERIALCONFG a, scm_MATERIEL b
  1157. where a.MATERIELCODE = b.MATERIELCODE(+)
  1158. and a.MATERIELTYPE = b.MATERIELTYPE(+)
  1159. and a.MSLOCATION = decode(?,null,MSLOCATION,?)
  1160. order by a.MATERIELTYPE, to_number(msnumid) asc
  1161. ]]>
  1162. </query>
  1163. <query id="GetHmpStoveInfo_Load.select" desc="加载脱硫炉信息" fetchSize="10">
  1164. <![CDATA[
  1165. select HEATPROCESSNO,HUDWID, HEATNO
  1166. from (select HEATPROCESSNO, HUDWID,HEATNO, OPTDATE
  1167. from STL_Hmp_OPTINFO where 1=1 and substr(HUDWID,3,1) = ?
  1168. and to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  1169. union
  1170. select HEATPROCESSNO, HUDWID,HEATNO, OPTDATE
  1171. from J#STL_Hmp_OPTINFO where 1=1 and substr(HUDWID,3,1) = ?
  1172. and to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?)
  1173. ORDER BY OPTDATE DESC
  1174. ]]>
  1175. </query>
  1176. <query id="GetHmpStoveInfo.select" desc="获取脱硫炉号信息" fetchSize="10">
  1177. <![CDATA[
  1178. select HEATPROCESSNO, HUDWID,HEATNO
  1179. from (select HEATPROCESSNO, HUDWID, HEATNO,OPTDATE
  1180. from STL_Hmp_OPTINFO where 1=1 and substr(HUDWID,3,1) = ? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  1181. and decode(?,'','1',plansteel) = decode(?,'','1',?) and HUDWID=decode(?,null,HUDWID,?) and
  1182. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  1183. union
  1184. select HEATPROCESSNO, HUDWID, HEATNO,OPTDATE
  1185. from J#STL_Hmp_OPTINFO where 1=1 and substr(HUDWID,3,1) = ? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  1186. and decode(?,'','1',plansteel) = decode(?, '','1',?) and HUDWID=decode(?,null,HUDWID,?) and
  1187. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ? )
  1188. ORDER BY OPTDATE DESC
  1189. ]]>
  1190. </query>
  1191. <query id="GetHmpOperateInfo.select" desc="获取脱硫实绩信息" fetchSize="10">
  1192. <![CDATA[
  1193. select a.heatprocessno,
  1194. a.hudwid,
  1195. a.equipmentno,
  1196. a.wsid,
  1197. a.heatno,
  1198. a.plansteel,
  1199. a.arrivetime,
  1200. a.leavetime,
  1201. a.instationtime,
  1202. a.swtime,
  1203. a.whiskbegintime,
  1204. a.whiskclosetime,
  1205. a.sb_first_startime,
  1206. a.sb_first_endtime,
  1207. a.sb_first_time,
  1208. a.firstquantity,
  1209. a.sb_second_startime,
  1210. a.sb_second_endtime,
  1211. a.sb_second_time,
  1212. a.secondquantity,
  1213. a.sb_third_startime,
  1214. a.sb_third_endtime,
  1215. a.sb_third_time,
  1216. a.thirdquantity,
  1217. a.churnupdate,
  1218. a.setchurnupdate,
  1219. a.dr_bef_starttime,
  1220. a.dr_bef_endtime,
  1221. a.dr_bef_time,
  1222. a.dr_bef_wgt,
  1223. a.dr_aft_starttime,
  1224. a.dr_aft_endtime,
  1225. a.dr_aft_time,
  1226. a.dr_aft_wgt,
  1227. a.dreffect,
  1228. a.dfrstarttime,
  1229. a.dfrendtime,
  1230. a.dfrtime,
  1231. a.swfelementcode,
  1232. a.swftemperature,
  1233. a.swbelementcode,
  1234. a.swbtemperature,
  1235. a.swbspercent,
  1236. a.ironpotgrosswgt,
  1237. t4.TAREWEIGHT ironpottarewgt,
  1238. a.ironwgt,
  1239. a.arrivewgttime,
  1240. a.leavewgttime,
  1241. a.arrivewgt,
  1242. a.leavewgt,
  1243. a.ironpotbofwgt,
  1244. a.pretemperature,
  1245. a.blowspeed,
  1246. a.mostrotatespeed,
  1247. a.ironpwrapno,
  1248. a.potage,
  1249. a.mix_reality_height,
  1250. a.mr_user_times,
  1251. a.ironsource,
  1252. a.molirnleave,
  1253. a.rsstoveno,
  1254. a.rswgt,
  1255. a.sbpress,
  1256. a.sbplux,
  1257. a.sbconsume,
  1258. a.caoconsume,
  1259. a.scontent,
  1260. a.n2plux,
  1261. a.n2consume,
  1262. a.n2press,
  1263. a.sggnumid,
  1264. a.sggage,
  1265. a.sggnumno,
  1266. a.sironwgt,
  1267. a.vflag,
  1268. a.executestate,
  1269. a.dfrstate,
  1270. a.dfrwgt,
  1271. a.reservsecanpressure,
  1272. a.valveopenwidth,
  1273. a.drquantity,
  1274. a.numid,
  1275. a.former_s_value,
  1276. a.dregssolvent,
  1277. a.sith_s_value,
  1278. a.shiftcode,
  1279. a.OPTPERSONNEL,
  1280. a.optdate,
  1281. a.updatetime,
  1282. a.memo
  1283. from (select *
  1284. from stl_hmp_optinfo where 1=1 and HEATPROCESSNO = ?
  1285. union
  1286. select * from J#stl_hmp_optinfo where 1=1 and HEATPROCESSNO = ?) a ,
  1287. (select TFPOTID,MOLIRNSOURCE
  1288. from stl_mis_importiron
  1289. where to_char(operationdate, 'yyyy-MM-dd hh24:mi:ss') between
  1290. ? AND ?) t,
  1291. dev_ib_base_info t4
  1292. where t.MOLIRNSOURCE(+) = a.hudwid
  1293. and t.TFPOTID =t4.ladleid (+)
  1294. ]]>
  1295. </query>
  1296. <query id="GetHmpInfo_ByHUDWID.select" desc="根据脱硫号获取脱硫炉信息" fetchSize="10">
  1297. <![CDATA[
  1298. select *
  1299. from (select *
  1300. from stl_hmp_optinfo
  1301. union
  1302. select * from J#stl_hmp_optinfo)
  1303. where HUDWID = decode(?, null, HUDWID, ?)
  1304. ]]>
  1305. </query>
  1306. <query id="GetZL_SCJH.query" desc="获取转炉生产计划记录" fetchSize="10">
  1307. <![CDATA[
  1308. select a.HEATNO StoveID,'' IronFrom,AIM_GRADE_CODE PlanSteelCode,CAST_ID CutTaskNo,
  1309. decode(HEAT_STATE, '03','计划状态', decode(HEAT_STATE, '09', '生产完成', '生产状态')) PlanExecuteStatus,
  1310. PLAN_MAKING_TIME PlanMakeTime,PLAN_MAKER Maker,CAST_NO CastNo,FACT_ROUTE routeline,
  1311. CAST_SEQ,HEAT_NUM,V_HEAT_ID,'' vanheatno,'' status
  1312. from (select *from PPC_STEEL_HEAT union select * from J#PPC_STEEL_HEAT) a
  1313. where 1 = 1 and heat_state > '02' and heat_state <= '09' $
  1314. order by HEATNO desc
  1315. ]]>
  1316. </query>
  1317. <query id="GetRLMX_Data.query" desc="打开窗体时自动取入炉明细数据" fetchSize="10">
  1318. <![CDATA[
  1319. select jobid ZYXH,heatno LH,
  1320. stationcode GWBH,DISPOSALTIME CLCS,
  1321. SHIFTCODE BC,CHARGENO ZDDH,WSTEELTYPE FGZL,
  1322. PIGIRONWGT STZL,JOINMARLWGT CLZL,RSTEELWGT ZGZL,
  1323. GOODMARLWGT HGZL,TOTALWGT ZZ,CHUTEWGT DZ,JOINSTOVEWGT RLZL,
  1324. OPTPERSONNEL CZRY,JOBDATE ZYSJ,MEMO BZ,C,SI,MN,P,S,ASN
  1325. from STL_SCRAPSTEEL $
  1326. order by jobid desc
  1327. ]]>
  1328. </query>
  1329. <query id="GetClassCode.query" desc="取当前班次" fetchSize="10">
  1330. <![CDATA[
  1331. select mes_lg_common.getlgshift1(sysdate) mes from dual
  1332. ]]>
  1333. </query>
  1334. <query id="getZLCurrentLH.query" desc="取当前转炉正在冶炼的炉号 CVT01_DEVICE" fetchSize="10">
  1335. <![CDATA[
  1336. select t.objectpos, t.objectid from tpm_trackobjectinfor t
  1337. where (t.objectpos like upper('bof0%_DEVICE') or t.objectpos like upper('bof0%_BACK'))
  1338. and t.objectid is not null
  1339. ]]>
  1340. </query>
  1341. <query id="HeatNo_HudwId_Exist.query" desc="判断是否已经发送过铁水" fetchSize="10">
  1342. <![CDATA[
  1343. select Count(*) intCount from stl_Bof_Optinfo where heatno = ?
  1344. AND disposaltime = (SELECT disposaltime FROM stl_bof_optinfo WHERE heatno = ?) and nvl(WSTEELWGT,0)>0
  1345. ]]>
  1346. </query>
  1347. <query id="GetSubSpingByHeatNo.query" desc="根据炉号获取副枪温度采样信息" fetchSize="10">
  1348. <![CDATA[
  1349. select SAMPLINGTYPE, TEMPERATURE, TERMINUSC_O2C, TERMINUSO2, SAMPLINGDATE
  1350. from STL_BOF_SUBSAMPLING t
  1351. where t.heatno = decode(?, null, heatno, ?)
  1352. union
  1353. select SAMPLINGTYPE, TEMPERATURE, TERMINUSC_O2C, TERMINUSO2, SAMPLINGDATE
  1354. from j#STL_BOF_SUBSAMPLING t
  1355. where t.heatno = decode(?, null, heatno, ?) order by SAMPLINGTYPE,SAMPLINGDATE desc
  1356. ]]>
  1357. </query>
  1358. </queryMap>