QueryLgResMgt.xml 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463
  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 * FROM STL_LFS_ELECTRICITY
  306. UNION
  307. SELECT * FROM STL_LFS_ELECTRICITY)
  308. where HEATNO = decode(?, null, HEATNO, ?) and STATIONCODE = ? and
  309. DisposalTime = decode(?, null, DisposalTime, ?)
  310. order by SELESTATE, SELENUMID desc
  311. ]]>
  312. </query>
  313. <query id="GetLFSOperateInfo.select" desc="获取LFS精炼实绩信息 " fetchSize="10">
  314. <![CDATA[
  315. select HEATPROCESSNO
  316. ,HEATNO
  317. ,STATIONCODE
  318. ,DISPOSALTIME
  319. ,WOID
  320. ,OPTDATE
  321. ,SHIFTCODE
  322. ,BEGINBLOWAR
  323. ,ENDBLOWAR
  324. ,BLOWARTIME
  325. ,ARCONSUME
  326. ,BLOWARPRESS
  327. ,BLOWARMODE
  328. ,ARRIVETIME
  329. ,LEAVETIME
  330. ,ARRIVETEMPT
  331. ,LEAVETEMPT
  332. ,SEATDSTARTTIME
  333. ,SEATDENDTIME
  334. ,SEATDTIME
  335. ,SELESTARTTIME
  336. ,SELEENDTIME
  337. ,SELETIME
  338. ,ELETRICITYCONSUME
  339. ,ELETRICITYTIMES
  340. ,FEEDINGSPEED
  341. ,ARRIVEWGT
  342. ,LEAVEWGT
  343. ,REFINETIME
  344. ,ARRIVEO2
  345. ,LEAVEO2
  346. ,MRTCONSUME
  347. ,NMRTCONSUME
  348. ,BESTROWDOSAGE
  349. ,RESIDUETHICKNESS
  350. ,POTNO
  351. ,POTDISTINCTION
  352. ,POTAGE
  353. ,POTWRAPSTATE
  354. ,ODERO2TIMES
  355. ,BLOWARTIMES
  356. ,REPOSEBEGINTIME
  357. ,REPOSECLOSETIME
  358. ,REPOSETIME
  359. ,COVERUPPERTIME
  360. ,COVERDOWNTIME
  361. ,FEEDSILKBEGINTIME
  362. ,FEEDSILKCLOSETIME
  363. ,MOLSTLLEAVE
  364. ,PLANSTEEL
  365. ,CCMTEMPT
  366. ,FLEXIBLEBLOWTIME
  367. ,TEMPTNUM
  368. ,MOLSTLWGT
  369. ,POLE_A
  370. ,POLE_C
  371. ,POLE_B
  372. ,OPTPERSONNEL
  373. ,WSID
  374. ,MEMO
  375. ,UPDATETIME
  376. ,AGE
  377. ,LFSNO
  378. ,CLEARENCELHEIGHT
  379. ,LADLECOVERAGE
  380. ,SOFTBLOWBEGINTIME
  381. ,DILUTEDRESIDUEDOSE
  382. from (select * from stl_lfs_optinfo where 1=1 and HEATPROCESSNO= ?
  383. union select * from j#stl_lfs_optinfo where 1=1 and HEATPROCESSNO= ? )
  384. ]]>
  385. </query>
  386. <query id="GetRHStoveInfo_Load.select" desc="加载RH炉信息" fetchSize="10">
  387. <![CDATA[
  388. select HEATPROCESSNO, HEATNO, DisposalTime
  389. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  390. from STL_RHS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  391. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  392. union
  393. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  394. from J#STL_RHS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  395. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?)
  396. ORDER BY OPTDATE DESC
  397. ]]>
  398. </query>
  399. <query id="GetRHStoveInfo.select" desc="获取RH炉号信息" fetchSize="10">
  400. <![CDATA[
  401. select HEATPROCESSNO, HEATNO, DisposalTime
  402. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  403. from STL_RHS_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  404. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  405. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  406. union
  407. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  408. from J#STL_RHS_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  409. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  410. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ? )
  411. ORDER BY OPTDATE DESC
  412. ]]>
  413. </query>
  414. <query id="GetRhsObInfo.select" desc="获取RH炉吹氧信息" fetchSize="10">
  415. <![CDATA[
  416. select o2numid,
  417. heatprocessno,
  418. stationcode,
  419. disposaltime,
  420. heatno,
  421. o2time,
  422. o2consume,
  423. o2starttime,
  424. o2endtime
  425. from (SELECT *
  426. FROM STL_rhs_oxygenblowing
  427. where 1 = 1
  428. and HEATNO = decode(?, null, HEATNO, ?)
  429. and STATIONCODE = decode(?, null, STATIONCODE, ?)
  430. and disposaltime = decode(?, null, disposaltime, ?)
  431. UNION
  432. SELECT * FROM STL_rhs_oxygenblowing
  433. where 1 = 1
  434. and HEATNO = decode(?, null, HEATNO, ?)
  435. and STATIONCODE = decode(?, null, STATIONCODE, ?)
  436. and disposaltime = decode(?, null, disposaltime, ?))
  437. order by o2starttime desc
  438. ]]>
  439. </query>
  440. <query id="GetRHsOperateInfo.select" desc="获取RH炉操作信息" fetchSize="10">
  441. <![CDATA[
  442. select HEATPROCESSNO,
  443. HEATNO,
  444. STATIONCODE,
  445. DISPOSALTIME,
  446. WOID,
  447. SHIFTCODE,
  448. OPTDATE,
  449. ARCONSUME,
  450. O2CONSUME,
  451. STEAMCONSUME,
  452. ARRIVETIME,
  453. LEAVETIME,
  454. REFINETIME,
  455. ARFTEMPT,
  456. ARBTEMPT,
  457. FEEDINGSPEED,
  458. ARRIVEWGT,
  459. LEAVEWGT,
  460. HPCONSUME,
  461. RESIDUETHICKNESS,
  462. TWSTEELWGT,
  463. MANTLEFLAG,
  464. MANTLENUM,
  465. N2_CONS_C,
  466. AR_CONS_S,
  467. N2_CONS_S,
  468. REPOSEBEGINTIME,
  469. REPOSECLOSETIME,
  470. SUM_TIME,
  471. PURE_TIME,
  472. LANCE_NO,
  473. LANCE_TIMES,
  474. VES_NO,
  475. BEF_VAC_TIME,
  476. VACBEGINTIME,
  477. VACLOSETIME,
  478. VAC_TIME,
  479. O2BEGINTIME,
  480. O2CLOSETIME,
  481. O2_TIME,
  482. (select TERMINUSTEPT from stl_bof_optinfo where heatno = t.heatno
  483. union select TERMINUSTEPT from j#stl_bof_optinfo where heatno = t.heatno) O2USEDTOTALAL,--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. SOFTBLOWBEGINTIME,
  519. FLEXIBLEBLOWTIME
  520. from (select * from stl_Rhs_optinfo where 1=1 and HEATPROCESSNO= decode(?, null, HEATPROCESSNO, ?)
  521. union
  522. select * from j#stl_Rhs_optinfo where 1=1 and HEATPROCESSNO= decode(?, null, HEATPROCESSNO, ?) ) t
  523. ]]>
  524. </query>
  525. <query id="GetVDStoveInfo_Load.select" desc="加载VD炉信息" fetchSize="10">
  526. <![CDATA[
  527. select HEATPROCESSNO, HEATNO, DisposalTime
  528. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  529. from STL_VDS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  530. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  531. union
  532. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  533. from J#STL_VDS_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  534. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?)
  535. ORDER BY OPTDATE DESC
  536. ]]>
  537. </query>
  538. <query id="GetVDStoveInfo.select" desc="获取VD炉号信息" fetchSize="10">
  539. <![CDATA[
  540. select HEATPROCESSNO, HEATNO, DisposalTime
  541. from (select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  542. from STL_VDS_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  543. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  544. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  545. union
  546. select HEATPROCESSNO, HEATNO, DisposalTime, OPTDATE
  547. from J#STL_VDS_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  548. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  549. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ? )
  550. ORDER BY OPTDATE DESC
  551. ]]>
  552. </query>
  553. <query id="GetVDsObInfo.select" desc="获取VD炉吹氧信息" fetchSize="10">
  554. <![CDATA[
  555. select o2numid,
  556. heatprocessno,
  557. stationcode,
  558. disposaltime,
  559. heatno,
  560. o2time,
  561. o2consume,
  562. o2starttime,
  563. o2endtime
  564. from (SELECT *
  565. FROM STL_rhs_oxygenblowing
  566. where 1 = 1
  567. and HEATNO = decode(?, null, HEATNO, ?)
  568. and STATIONCODE = decode(?, null, STATIONCODE, ?)
  569. and disposaltime = decode(?, null, disposaltime, ?)
  570. UNION
  571. SELECT * FROM STL_rhs_oxygenblowing
  572. where 1 = 1
  573. and HEATNO = decode(?, null, HEATNO, ?)
  574. and STATIONCODE = decode(?, null, STATIONCODE, ?)
  575. and disposaltime = decode(?, null, disposaltime, ?))
  576. order by o2starttime desc
  577. ]]>
  578. </query>
  579. <query id="GetVDsOperateInfo.select" desc="获取VD炉操作信息" fetchSize="10">
  580. <![CDATA[
  581. select heatprocessno,
  582. heatno,
  583. stationcode,
  584. disposaltime,
  585. plansteel,
  586. woid,
  587. shiftcode,
  588. optdate,
  589. arrivetime,
  590. leavetime,
  591. refinetime,
  592. reposebegintime,
  593. reposeclosetime,
  594. treattime,
  595. oxygenstarttime,
  596. oxygenendtime,
  597. oxygentime,
  598. hydgenstarttime,
  599. hydgenendtime,
  600. hydgentime,
  601. mixstarttime,
  602. mixendtime,
  603. mixtime,
  604. vacbegintime,
  605. vaclosetime,
  606. vac_time,
  607. feedbegintime,
  608. feedclosetime,
  609. feed_time,
  610. feedingspeed,
  611. sum_time,
  612. arftempt,
  613. arbtempt,
  614. arrivewgt,
  615. leavewgt,
  616. hpconsume,
  617. mantleflag,
  618. mantlenum,
  619. vdage,
  620. vdno,
  621. vacuumpress,
  622. stop_date,
  623. slag_wgt,
  624. vac_min,
  625. o2consume,
  626. steamconsume,
  627. steam_tem,
  628. steam_pres,
  629. potno,
  630. potdistinction,
  631. potage,
  632. potwrapstate,
  633. cover,
  634. molstlwgt,
  635. isrs,
  636. optpersonnel,
  637. wsid,
  638. arriveo2,
  639. leaveo2,
  640. updatetime,
  641. memo,
  642. ARRIVEH,
  643. LEAVEH,
  644. RESIDUETHICKNESS,
  645. CLEARENCELHEIGHT,
  646. ARBEGINTIME,
  647. ARCLOSETIME,
  648. VAC_KEEP_TIME,
  649. AR_TIME,
  650. VAC_END_TEMP,
  651. REPLACEFJG,
  652. FLEXIBLEBLOWTIME
  653. from (select * from stl_Vds_optinfo where 1=1 and HEATPROCESSNO= decode(?, null, HEATPROCESSNO, ?)
  654. union
  655. select * from j#stl_Vds_optinfo where 1=1 and HEATPROCESSNO= decode(?, null, HEATPROCESSNO, ?) )
  656. ]]>
  657. </query>
  658. <query id="GetCcmMouldInfo.select" desc="获取浇次信息" fetchSize="10">
  659. <![CDATA[
  660. select MOULDNO,
  661. MWRAPNO,
  662. BALESTARTTIME,
  663. BALEENDTIME,
  664. BALEENDDATE,
  665. ACCIDENTENDTIME,
  666. MWRAPINFUSE,
  667. MWRAPREMAIN,
  668. S1CRYSTALCODE,
  669. S2CRYSTALCODE,
  670. S3CRYSTALCODE,
  671. S4CRYSTALCODE,
  672. S5CRYSTALCODE,
  673. S6CRYSTALCODE,
  674. CRYSTALWIDE,
  675. CRYSTALTHICK,
  676. S1STARTTIME,
  677. S2STARTTIME,
  678. S3STARTTIME,
  679. S4STARTTIME,
  680. S5STARTTIME,
  681. S6STARTTIME,
  682. S1ENDTIME,
  683. S2ENDTIME,
  684. S3ENDTIME,
  685. S4ENDTIME,
  686. S5ENDTIME,
  687. S6ENDTIME,
  688. S1ENDCAUSE,
  689. S2ENDCAUSE,
  690. S3ENDCAUSE,
  691. S4ENDCAUSE,
  692. S5ENDCAUSE,
  693. S6ENDCAUSE,
  694. S1PLANENDTIME,
  695. S2PLANENDTIME,
  696. S3PLANENDTIME,
  697. S4PLANENDTIME,
  698. S5PLANENDTIME,
  699. S6PLANENDTIME,
  700. S1ENDOVERTIME,
  701. S2ENDOVERTIME,
  702. S3ENDOVERTIME,
  703. S4ENDOVERTIME,
  704. S5ENDOVERTIME,
  705. S6ENDOVERTIME,
  706. S1CUTFRONT,
  707. S2CUTFRONT,
  708. S3CUTFRONT,
  709. S4CUTFRONT,
  710. S5CUTFRONT,
  711. S6CUTFRONT,
  712. S1CUTBACK,
  713. S2CUTBACK,
  714. S3CUTBACK,
  715. S4CUTBACK,
  716. S5CUTBACK,
  717. S6CUTBACK,
  718. MOULDPLAN,
  719. LONGGAP,
  720. UPGAP,
  721. DOWNGAP,
  722. DIPGAP,
  723. STUFFSTICK,
  724. PROTECTDTEG,
  725. S1CRPASSSTEELWEIGHT,
  726. S2CRPASSSTEELWEIGHT,
  727. MWRAPFIRINGBEGINTIME1,
  728. MWRAPFIRINGENDTIME1,
  729. MWRAPNO2,
  730. MWRAPFIRINGBEGINTIME2,
  731. MWRAPFIRINGENDTIME2,
  732. MEMO,
  733. UPDATETIME,
  734. MWRAPNO3,
  735. MWRAPFIRINGBEGINTIME3,
  736. MWRAPFIRINGENDTIME3,
  737. S3CRPASSSTEELWEIGHT,
  738. S4CRPASSSTEELWEIGHT,
  739. S5CRPASSSTEELWEIGHT,
  740. MWRAPBESTROWNAME,
  741. MWRAPBESTROWDOSAGE,
  742. PROTECTDTEGDOSAGE,
  743. MINFIREBEGINTIME,
  744. MIDDLEFIREBEGINTIME,
  745. MAXBEGINTIME
  746. from stl_ccm_mouldinfo where 1=1 and MouldNo=decode(?, null, MouldNo, ?)
  747. ]]>
  748. </query>
  749. <query id="GetCcmOperateInfo.select" desc="获取连铸机实绩操作信息" fetchSize="10">
  750. <![CDATA[
  751. select HEATPROCESSNO
  752. ,HEATNO
  753. ,STATIONCODE
  754. ,DISPOSALTIME
  755. ,CCMSTOVENO
  756. ,WOID
  757. ,BILLETSECTION
  758. ,BILLETFIXSIZE
  759. ,OPTDATE
  760. ,SHIFTCODE
  761. ,POTNO
  762. ,POTDISTINCTION
  763. ,POTAGE
  764. ,POTWRAPSTATE
  765. ,MOULDSTOVENUM
  766. ,PFBALETEMPT
  767. ,PFBALEWGT
  768. ,BALEPFTIME
  769. ,MOULDINGPOTNO
  770. ,MOULDINGPOTRANK
  771. ,MOULDBALEWGT
  772. ,MOULDBALETEMPT
  773. ,BALESTARTTIME
  774. ,BALEENDTIME
  775. ,BALELEAVETIME
  776. ,BALELEAVEWGT
  777. ,PLANPFTIME
  778. ,WAITMOULDTIME
  779. ,MOULDTIME
  780. ,BALEFLOWFLAG
  781. ,BALEMOULDFLAG
  782. ,BALEFLOWTIEMS
  783. ,RSMOLSTLWGT
  784. ,MWRAPNO
  785. ,MWRAPTEMPT
  786. ,MWRAPWGT
  787. ,MWRAPSTARTTIME
  788. ,MWRAPENDTIME
  789. ,HEAT_SEQ
  790. ,BIGPOTARM1WEIGHT
  791. ,BIGPOTARM2WEIGHT
  792. ,CRYSTALLIZERID
  793. ,CRYSTALLIZERTIMES
  794. ,MOULDNUMID
  795. ,MOULDNO
  796. ,PLANSTEEL
  797. ,METERODDWGT
  798. ,LMLTEMPT
  799. ,SWRAPREMAINWGT
  800. ,SWRAPENDCAUSE
  801. ,MOULDWAITTIME
  802. ,MWRAPTEMPT05
  803. ,MWRAPTEMPT20
  804. ,MWRAPLIQUID
  805. ,MWRAPLIQUID15
  806. ,SMWRAPLIQUID
  807. ,SMWRAPWGT
  808. ,BILLETLENGTH
  809. ,BILLETWGT
  810. ,BILLETNUM
  811. ,PRODUCTCPTCODE
  812. ,0 S1FBLENGTH
  813. ,0 S2FBLENGTH
  814. ,0 S3FBLENGTH
  815. ,0 S4FBLENGTH
  816. ,0 S5FBLENGTH
  817. ,0 S6FBLENGTH
  818. ,0 S7FBLENGTH
  819. ,0 S8FBLENGTH
  820. ,BAKEO2TIEMS
  821. ,FLAG
  822. ,0 为没拉成罐数
  823. ,FBTOTALWGT
  824. ,HOTPITCH
  825. ,WSID
  826. ,OPTPERSONNEL
  827. ,MEMO
  828. ,S2BILLETLENGTH
  829. ,S1BILLETLENGTH
  830. ,RESIDUETHICKNESS
  831. ,UPDATETIME
  832. ,BALEMOULDTIME
  833. ,F_GETALSD_VALUE(HEATNO) ALSDVALUE
  834. from (select * from stl_ccm_optinfo where 1=1 and HEATPROCESSNO =decode(?, null, HEATPROCESSNO, ?)
  835. union select * from J#stl_ccm_optinfo where 1=1 and HEATPROCESSNO =decode(?, null, HEATPROCESSNO, ?))
  836. ]]>
  837. </query>
  838. <query id="GetCmmBMvalue.select" desc="连铸实绩取S1,S2的水流量、压力和水温差" fetchSize="10">
  839. <![CDATA[
  840. select t.S1cetempt,
  841. t.S2CETEMPT,
  842. t.S1CEWRTRPLUX,
  843. t.S2CEWRTRPLUX,
  844. t.S1CETEMPTPRESS,
  845. S2CETEMPTPRESS
  846. from scm_CCM_BMILLSAMPLING t
  847. where t.samplingid = (select max(samplingid)
  848. from JOB_CCM_BMILLSAMPLING
  849. where t.heatprocessno = decode(?, null, heatprocessno, ?))
  850. and t.heatprocessno = decode(?, null, heatprocessno, ?)
  851. union
  852. select t.S1cetempt,
  853. t.S2CETEMPT,
  854. t.S1CEWRTRPLUX,
  855. t.S2CEWRTRPLUX,
  856. t.S1CETEMPTPRESS,
  857. S2CETEMPTPRESS
  858. from Y#JOB_CCM_BMILLSAMPLING t
  859. where t.samplingid = (select max(samplingid)
  860. from Y#JOB_CCM_BMILLSAMPLING
  861. where t.heatprocessno = decode(?, null, heatprocessno, ?))
  862. and t.heatprocessno = decode(?, null, heatprocessno, ?)
  863. ]]>
  864. </query>
  865. <query id="GetCCMHNoData_Load.select" desc="获取连铸机炉号信息_加载" fetchSize="10">
  866. <![CDATA[
  867. select HEATPROCESSNO, HEATNO,DisposalTime
  868. from (select HEATPROCESSNO, HEATNO,DisposalTime,OPTDATE,BALESTARTTIME
  869. from STL_CCM_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  870. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  871. union
  872. select HEATPROCESSNO, HEATNO,DisposalTime,OPTDATE,BALESTARTTIME
  873. from J#STL_CCM_OPTINFO where 1=1 and STATIONCODE = '0'||? and
  874. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?)
  875. ORDER BY optdate DESC
  876. ]]>
  877. </query>
  878. <query id="GetCCMHeatNoData.select" desc="获取连铸机炉号信息" fetchSize="10">
  879. <![CDATA[
  880. select HEATPROCESSNO, HEATNO,DisposalTime
  881. from (select HEATPROCESSNO, HEATNO,DisposalTime,OPTDATE,BALESTARTTIME
  882. from STL_CCM_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  883. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  884. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  885. union
  886. select HEATPROCESSNO, HEATNO, DisposalTime,OPTDATE,BALESTARTTIME
  887. from J#STL_CCM_OPTINFO where 1=1 and STATIONCODE = '0'||? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  888. and PLANSTEEL = decode(?,null,PLANSTEEL,?) and HEATNO=decode(?,null,HEATNO,?) and
  889. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ? )
  890. ORDER BY OPTDATE DESC
  891. ]]>
  892. </query>
  893. <query id="GetSampleDataOne.select" desc="返回指定SQL语句" fetchSize="10">
  894. - <![CDATA[
  895. select temp,
  896. to_char(samplingTime, 'yyyy-MM-dd HH24:mi:ss') samplingTime,
  897. round(S1CASTSPEED, 2) S1CASTSPEED,
  898. round(S2CASTSPEED, 2) S2CASTSPEED,
  899. round(S3CASTSPEED, 2) S3CASTSPEED,
  900. round(S4CASTSPEED, 2) S4CASTSPEED,
  901. round(S5CASTSPEED, 2) S5CASTSPEED,
  902. round(mes_lg_sampling.maxval(nvl(midladle1weight, 0),
  903. nvl(midladle2weight, 0))) midladle1weight,
  904. round(mes_lg_sampling.maxval(nvl(ARMLADLEAWEIGHT, 0),
  905. nvl(ARMLADLEBWEIGHT, 0))) ARMBIGPOTTOTALWEIGHT
  906. from (select *
  907. from stl_ccm_f1sampling
  908. where heatno = ?
  909. and disposaltime = ?
  910. union
  911. select *
  912. from J#stl_ccm_f1sampling
  913. where heatno = ?
  914. and disposaltime = ?) a,
  915. (select temp, min(samplingtime) samplingTime, heatno, disposaltime
  916. from (select round(MIDLADLETEMP) temp,
  917. min(lastfreshtime) samplingTime,
  918. heatno,
  919. disposaltime
  920. from (select *
  921. from stl_ccm_f1sampling
  922. where heatno = ?
  923. and disposaltime = ?
  924. union
  925. select *
  926. from J#stl_ccm_f1sampling
  927. where heatno = ?
  928. and disposaltime = ?)
  929. group by MIDLADLETEMP, heatno, disposaltime)
  930. group by temp, heatno, disposaltime) t
  931. where a.heatno = t.heatno
  932. and a.disposaltime = t.disposaltime
  933. and a.lastfreshtime = t.samplingTime
  934. and temp > 1390
  935. order by samplingTime asc
  936. ]]>
  937. </query>
  938. - <query id="GetSampleDataTwo.select" desc="返回指定SQL语句" fetchSize="10">
  939. - <![CDATA[
  940. select temp,
  941. to_char(samplingTime, 'yyyy-MM-dd HH24:mi:ss') samplingTime,
  942. round(S1CASTSPEED, 2) S1CASTSPEED,
  943. round(S2CASTSPEED, 2) S2CASTSPEED,
  944. round(S3CASTSPEED, 2) S3CASTSPEED,
  945. round(S4CASTSPEED, 2) S4CASTSPEED,
  946. round(S5CASTSPEED, 2) S5CASTSPEED,
  947. round(mes_lg_sampling.maxval(nvl(midladle1weight, 0),
  948. nvl(midladle2weight, 0))) midladle1weight,
  949. round(mes_lg_sampling.maxval(nvl(ARMLADLEAWEIGHT, 0),
  950. nvl(ARMLADLEBWEIGHT, 0))) ARMBIGPOTTOTALWEIGHT
  951. from (select *
  952. from stl_ccm_f2sampling
  953. where heatno = ?
  954. and disposaltime = ?
  955. union
  956. select *
  957. from J#stl_ccm_f2sampling
  958. where heatno = ?
  959. and disposaltime = ?) a,
  960. (select temp, min(samplingtime) samplingTime, heatno, disposaltime
  961. from (select round(MIDLADLETEMP) temp,
  962. min(lastfreshtime) samplingTime,
  963. heatno,
  964. disposaltime
  965. from (select *
  966. from stl_ccm_f2sampling
  967. where heatno = ?
  968. and disposaltime = ?
  969. union
  970. select *
  971. from J#stl_ccm_f2sampling
  972. where heatno = ?
  973. and disposaltime = ?)
  974. group by MIDLADLETEMP, heatno, disposaltime)
  975. group by temp, heatno, disposaltime) t
  976. where a.heatno = t.heatno
  977. and a.disposaltime = t.disposaltime
  978. and a.lastfreshtime = t.samplingTime
  979. and temp > 1390
  980. order by samplingTime asc
  981. ]]>
  982. </query>
  983. - <query id="GetSampleDataThree.select" desc="返回指定SQL语句" fetchSize="10">
  984. - <![CDATA[
  985. select temp,
  986. to_char(samplingTime, 'yyyy-MM-dd HH24:mi:ss') samplingTime,
  987. round(S1CASTSPEED, 2) S1CASTSPEED,
  988. round(S2CASTSPEED, 2) S2CASTSPEED,
  989. round(S3CASTSPEED, 2) S3CASTSPEED,
  990. round(S4CASTSPEED, 2) S4CASTSPEED,
  991. round(S5CASTSPEED, 2) S5CASTSPEED,
  992. round(mes_lg_sampling.maxval(nvl(midladle1weight, 0),
  993. nvl(midladle2weight, 0))) midladle1weight,
  994. round(mes_lg_sampling.maxval(nvl(ARMLADLEAWEIGHT, 0),
  995. nvl(ARMLADLEBWEIGHT, 0))) ARMBIGPOTTOTALWEIGHT
  996. from (select *
  997. from stl_ccm_f3sampling
  998. where heatno = ?
  999. and disposaltime = ?
  1000. union
  1001. select *
  1002. from J#stl_ccm_f3sampling
  1003. where heatno = ?
  1004. and disposaltime = ?) a,
  1005. (select temp, min(samplingtime) samplingTime, heatno, disposaltime
  1006. from (select round(MIDLADLETEMP) temp,
  1007. min(lastfreshtime) samplingTime,
  1008. heatno,
  1009. disposaltime
  1010. from (select *
  1011. from stl_ccm_f3sampling
  1012. where heatno = ?
  1013. and disposaltime = ?
  1014. union
  1015. select *
  1016. from J#stl_ccm_f3sampling
  1017. where heatno = ?
  1018. and disposaltime = ?)
  1019. group by MIDLADLETEMP, heatno, disposaltime)
  1020. group by temp, heatno, disposaltime) t
  1021. where a.heatno = t.heatno
  1022. and a.disposaltime = t.disposaltime
  1023. and a.lastfreshtime = t.samplingTime
  1024. and temp > 1390
  1025. order by samplingTime asc
  1026. ]]>
  1027. </query>
  1028. - <query id="GetSampleDataFour.select" desc="返回指定SQL语句" fetchSize="10">
  1029. - <![CDATA[
  1030. select temp,
  1031. to_char(samplingTime, 'yyyy-MM-dd HH24:mi:ss') samplingTime,
  1032. round(S1CASTSPEED, 2) S1CASTSPEED,
  1033. round(S2CASTSPEED, 2) S2CASTSPEED,
  1034. round(S3CASTSPEED, 2) S3CASTSPEED,
  1035. round(S4CASTSPEED, 2) S4CASTSPEED,
  1036. round(S5CASTSPEED, 2) S5CASTSPEED,
  1037. round(mes_lg_sampling.maxval(nvl(midladle1weight, 0),
  1038. nvl(midladle2weight, 0))) midladle1weight,
  1039. round(mes_lg_sampling.maxval(nvl(ARMLADLEAWEIGHT, 0),
  1040. nvl(ARMLADLEBWEIGHT, 0))) ARMBIGPOTTOTALWEIGHT
  1041. from (select *
  1042. from stl_ccm_f4sampling
  1043. where heatno = ?
  1044. and disposaltime = ?
  1045. union
  1046. select *
  1047. from J#stl_ccm_f4sampling
  1048. where heatno = ?
  1049. and disposaltime = ?) a,
  1050. (select temp, min(samplingtime) samplingTime, heatno, disposaltime
  1051. from (select round(MIDLADLETEMP) temp,
  1052. min(lastfreshtime) samplingTime,
  1053. heatno,
  1054. disposaltime
  1055. from (select *
  1056. from stl_ccm_f4sampling
  1057. where heatno = ?
  1058. and disposaltime = ?
  1059. union
  1060. select *
  1061. from J#stl_ccm_f4sampling
  1062. where heatno = ?
  1063. and disposaltime = ?)
  1064. group by MIDLADLETEMP, heatno, disposaltime)
  1065. group by temp, heatno, disposaltime) t
  1066. where a.heatno = t.heatno
  1067. and a.disposaltime = t.disposaltime
  1068. and a.lastfreshtime = t.samplingTime
  1069. and temp > 1390
  1070. order by samplingTime asc
  1071. ]]>
  1072. </query>
  1073. <query id="UpdateMouldInfo.select" desc="新增炉号信息" fetchSize="10">
  1074. <![CDATA[
  1075. Update stl_CCM_MOULDINFO
  1076. set MWRAPNO = ?,
  1077. BALESTARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1078. BALEENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1079. BALEENDDATE = ?,
  1080. ACCIDENTENDTIME = ?,
  1081. S1CRYSTALCODE = ?,
  1082. S2CRYSTALCODE = ?,
  1083. S3CRYSTALCODE = ?,
  1084. S4CRYSTALCODE = ?,
  1085. S5CRYSTALCODE = ?,
  1086. S1STARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1087. S2STARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1088. S3STARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1089. S4STARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1090. S5STARTTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1091. S1ENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1092. S2ENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1093. S3ENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1094. S4ENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1095. S5ENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1096. S1ENDCAUSE = ?,
  1097. S2ENDCAUSE = ?,
  1098. S3ENDCAUSE = ?,
  1099. S4ENDCAUSE = ?,
  1100. S5ENDCAUSE = ?,
  1101. S1PLANENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1102. S2PLANENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1103. S3PLANENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1104. S4PLANENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1105. S5PLANENDTIME = to_date(?, 'yyyy-MM-dd HH24:mi:ss'),
  1106. S1ENDOVERTIME = ?,
  1107. S2ENDOVERTIME = ?,
  1108. S3ENDOVERTIME = ?,
  1109. S4ENDOVERTIME = ?,
  1110. S5ENDOVERTIME = ?,
  1111. S1CUTFRONT = ?,
  1112. S2CUTFRONT = ?,
  1113. S3CUTFRONT = ?,
  1114. S4CUTFRONT = ?,
  1115. S5CUTFRONT = ?,
  1116. S1CUTBACK = ?,
  1117. S2CUTBACK = ?,
  1118. S3CUTBACK = ?,
  1119. S4CUTBACK = ?,
  1120. S5CUTBACK = ?,
  1121. UPGAP = ?,
  1122. DOWNGAP = ?,
  1123. STUFFSTICK = ?,
  1124. PROTECTDTEG = ?,
  1125. S1CRPASSSTEELWEIGHT = ?,
  1126. S2CRPASSSTEELWEIGHT = ?,
  1127. MEMO = ?,
  1128. UPDATETIME = sysdate,
  1129. S3CRPASSSTEELWEIGHT = ?,
  1130. S4CRPASSSTEELWEIGHT = ?,
  1131. S5CRPASSSTEELWEIGHT = ?,
  1132. MWRAPBESTROWNAME = ?,
  1133. MWRAPBESTROWDOSAGE = ?,
  1134. PROTECTDTEGDOSAGE = ?
  1135. where MOULDNO=?
  1136. ]]>
  1137. </query>
  1138. <query id="GetCmmManualTemp.select" desc="获取温度采样数据" fetchSize="10">
  1139. <![CDATA[
  1140. select lastfreshtime
  1141. from (select *
  1142. from $ t
  1143. where heatno = ?
  1144. and disposaltime = ?
  1145. union
  1146. select *
  1147. from J#$ t
  1148. where heatno = ?
  1149. and disposaltime = ?)
  1150. order by lastfreshtime asc
  1151. ]]>
  1152. </query>
  1153. <query id="SetResHopperName.select" desc="设置料斗信息" fetchSize="10">
  1154. <![CDATA[
  1155. select a.MSNUMID,
  1156. a.MSLOCATION,
  1157. a.MATERIELTYPE,
  1158. a.MATERIELCODE,
  1159. a.MATERIELUNITS,
  1160. a.JMTYPE,
  1161. b.MATERIELFORSHORT
  1162. from stl_MATERIALCONFG a, scm_MATERIEL b
  1163. where a.MATERIELCODE = b.MATERIELCODE(+)
  1164. and a.MATERIELTYPE = b.MATERIELTYPE(+)
  1165. and a.MSLOCATION = decode(?,null,MSLOCATION,?)
  1166. order by a.MATERIELTYPE, to_number(msnumid) asc
  1167. ]]>
  1168. </query>
  1169. <query id="GetHmpStoveInfo_Load.select" desc="加载脱硫炉信息" fetchSize="10">
  1170. <![CDATA[
  1171. select HEATPROCESSNO,HUDWID, HEATNO
  1172. from (select HEATPROCESSNO, HUDWID,HEATNO, OPTDATE
  1173. from STL_Hmp_OPTINFO where 1=1 and substr(HUDWID,3,1) = ?
  1174. and to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  1175. union
  1176. select HEATPROCESSNO, HUDWID,HEATNO, OPTDATE
  1177. from J#STL_Hmp_OPTINFO where 1=1 and substr(HUDWID,3,1) = ?
  1178. and to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?)
  1179. ORDER BY OPTDATE DESC
  1180. ]]>
  1181. </query>
  1182. <query id="GetHmpStoveInfo.select" desc="获取脱硫炉号信息" fetchSize="10">
  1183. <![CDATA[
  1184. select HEATPROCESSNO, HUDWID,HEATNO
  1185. from (select HEATPROCESSNO, HUDWID, HEATNO,OPTDATE
  1186. from STL_Hmp_OPTINFO where 1=1 and substr(HUDWID,3,1) = ? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  1187. and decode(?,'','1',plansteel) = decode(?,'','1',?) and HUDWID=decode(?,null,HUDWID,?) and
  1188. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ?
  1189. union
  1190. select HEATPROCESSNO, HUDWID, HEATNO,OPTDATE
  1191. from J#STL_Hmp_OPTINFO where 1=1 and substr(HUDWID,3,1) = ? and substr(SHIFTCODE, 2, 1)= decode(?,null,substr(SHIFTCODE, 2, 1),?)
  1192. and decode(?,'','1',plansteel) = decode(?, '','1',?) and HUDWID=decode(?,null,HUDWID,?) and
  1193. to_char(OPTDATE, 'yyyy-MM-dd') between ? and ? )
  1194. ORDER BY OPTDATE DESC
  1195. ]]>
  1196. </query>
  1197. <query id="GetHmpOperateInfo.select" desc="获取脱硫实绩信息" fetchSize="10">
  1198. <![CDATA[
  1199. select a.heatprocessno,
  1200. a.hudwid,
  1201. a.equipmentno,
  1202. a.wsid,
  1203. a.heatno,
  1204. a.plansteel,
  1205. a.arrivetime,
  1206. a.leavetime,
  1207. a.instationtime,
  1208. a.swtime,
  1209. a.whiskbegintime,
  1210. a.whiskclosetime,
  1211. a.sb_first_startime,
  1212. a.sb_first_endtime,
  1213. a.sb_first_time,
  1214. a.firstquantity,
  1215. a.sb_second_startime,
  1216. a.sb_second_endtime,
  1217. a.sb_second_time,
  1218. a.secondquantity,
  1219. a.sb_third_startime,
  1220. a.sb_third_endtime,
  1221. a.sb_third_time,
  1222. a.thirdquantity,
  1223. a.churnupdate,
  1224. a.setchurnupdate,
  1225. a.dr_bef_starttime,
  1226. a.dr_bef_endtime,
  1227. a.dr_bef_time,
  1228. --a.dr_bef_wgt,
  1229. (NVL(ARRIVEWGT, 0) - NVL(LEAVEWGT, 0)) dr_bef_wgt,
  1230. a.dr_aft_starttime,
  1231. a.dr_aft_endtime,
  1232. a.dr_aft_time,
  1233. a.dr_aft_wgt,
  1234. a.dreffect,
  1235. a.dfrstarttime,
  1236. a.dfrendtime,
  1237. a.dfrtime,
  1238. a.swfelementcode,
  1239. a.swftemperature,
  1240. a.swbelementcode,
  1241. a.swbtemperature,
  1242. a.swbspercent,
  1243. a.ironpotgrosswgt,
  1244. t4.TAREWEIGHT ironpottarewgt,
  1245. a.ironwgt,
  1246. a.arrivewgttime,
  1247. a.leavewgttime,
  1248. a.arrivewgt,
  1249. a.leavewgt,
  1250. a.ironpotbofwgt,
  1251. a.pretemperature,
  1252. a.blowspeed,
  1253. a.mostrotatespeed,
  1254. a.ironpwrapno,
  1255. a.potage,
  1256. a.mix_reality_height,
  1257. a.mr_user_times,
  1258. a.ironsource,
  1259. a.molirnleave,
  1260. a.rsstoveno,
  1261. a.rswgt,
  1262. a.sbpress,
  1263. a.sbplux,
  1264. a.sbconsume,
  1265. a.caoconsume,
  1266. a.scontent,
  1267. a.n2plux,
  1268. a.n2consume,
  1269. a.n2press,
  1270. a.sggnumid,
  1271. a.sggage,
  1272. a.sggnumno,
  1273. a.sironwgt,
  1274. a.vflag,
  1275. a.executestate,
  1276. a.dfrstate,
  1277. a.dfrwgt,
  1278. a.reservsecanpressure,
  1279. a.valveopenwidth,
  1280. a.drquantity,
  1281. a.numid,
  1282. a.former_s_value,
  1283. a.dregssolvent,
  1284. a.sith_s_value,
  1285. a.shiftcode,
  1286. a.OPTPERSONNEL,
  1287. a.optdate,
  1288. a.updatetime,
  1289. a.memo,
  1290. a.LIMESTONE,
  1291. A.FG_WEIGHT
  1292. from (select *
  1293. from stl_hmp_optinfo where 1=1 and HEATPROCESSNO = ?
  1294. union
  1295. select * from J#stl_hmp_optinfo where 1=1 and HEATPROCESSNO = ?) a ,
  1296. (select TFPOTID,MOLIRNSOURCE
  1297. from stl_mis_importiron
  1298. where to_char(operationdate, 'yyyy-MM-dd hh24:mi:ss') between
  1299. ? AND ?) t,
  1300. dev_ib_base_info t4
  1301. where t.MOLIRNSOURCE(+) = a.hudwid
  1302. and t.TFPOTID =t4.ladleid (+)
  1303. ]]>
  1304. </query>
  1305. <query id="GetHmpInfo_ByHUDWID.select" desc="根据脱硫号获取脱硫炉信息" fetchSize="10">
  1306. <![CDATA[
  1307. select *
  1308. from (select *
  1309. from stl_hmp_optinfo
  1310. union
  1311. select * from J#stl_hmp_optinfo)
  1312. where HUDWID = decode(?, null, HUDWID, ?)
  1313. ]]>
  1314. </query>
  1315. <query id="GetZL_SCJH.query" desc="获取转炉生产计划记录" fetchSize="10">
  1316. <![CDATA[
  1317. select a.HEATNO StoveID,'' IronFrom,AIM_GRADE_CODE PlanSteelCode,CAST_ID CutTaskNo,
  1318. decode(HEAT_STATE, '03','计划状态', decode(HEAT_STATE, '09', '生产完成', '生产状态')) PlanExecuteStatus,
  1319. PLAN_MAKING_TIME PlanMakeTime,PLAN_MAKER Maker,CAST_NO CastNo,FACT_ROUTE routeline,
  1320. CAST_SEQ,HEAT_NUM,V_HEAT_ID,'' vanheatno,'' status
  1321. from (select *from PPC_STEEL_HEAT union select * from J#PPC_STEEL_HEAT) a
  1322. where 1 = 1 and heat_state > '02' and heat_state <= '09' $
  1323. order by HEATNO desc
  1324. ]]>
  1325. </query>
  1326. <query id="GetRLMX_Data.query" desc="打开窗体时自动取入炉明细数据" fetchSize="10">
  1327. <![CDATA[
  1328. select jobid ZYXH,heatno LH,
  1329. stationcode GWBH,DISPOSALTIME CLCS,
  1330. SHIFTCODE BC,CHARGENO ZDDH,WSTEELTYPE FGZL,
  1331. PIGIRONWGT STZL,JOINMARLWGT CLZL,RSTEELWGT ZGZL,
  1332. GOODMARLWGT HGZL,TOTALWGT ZZ,CHUTEWGT DZ,JOINSTOVEWGT RLZL,
  1333. OPTPERSONNEL CZRY,JOBDATE ZYSJ,MEMO BZ,C,SI,MN,P,S,ASN
  1334. from STL_SCRAPSTEEL $
  1335. order by jobid desc
  1336. ]]>
  1337. </query>
  1338. <query id="GetClassCode.query" desc="取当前班次" fetchSize="10">
  1339. <![CDATA[
  1340. select mes_lg_common.getlgshift1(sysdate) mes from dual
  1341. ]]>
  1342. </query>
  1343. <query id="getZLCurrentLH.query" desc="取当前转炉正在冶炼的炉号 CVT01_DEVICE" fetchSize="10">
  1344. <![CDATA[
  1345. select t.objectpos, t.objectid from tpm_trackobjectinfor t
  1346. where (t.objectpos like upper('bof0%_DEVICE') or t.objectpos like upper('bof0%_BACK'))
  1347. and t.objectid is not null
  1348. ]]>
  1349. </query>
  1350. <query id="HeatNo_HudwId_Exist.query" desc="判断是否已经发送过铁水" fetchSize="10">
  1351. <![CDATA[
  1352. select Count(*) intCount from stl_Bof_Optinfo where heatno = ?
  1353. AND disposaltime = (SELECT disposaltime FROM stl_bof_optinfo WHERE heatno = ?) and nvl(WSTEELWGT,0)>0
  1354. ]]>
  1355. </query>
  1356. <query id="GetSubSpingByHeatNo.query" desc="根据炉号获取副枪温度采样信息" fetchSize="10">
  1357. <![CDATA[
  1358. select SAMPLINGTYPE, TEMPERATURE, TERMINUSC_O2C, TERMINUSO2, SAMPLINGDATE
  1359. from STL_BOF_SUBSAMPLING t
  1360. where t.heatno = decode(?, null, heatno, ?)
  1361. union
  1362. select SAMPLINGTYPE, TEMPERATURE, TERMINUSC_O2C, TERMINUSO2, SAMPLINGDATE
  1363. from j#STL_BOF_SUBSAMPLING t
  1364. where t.heatno = decode(?, null, heatno, ?) order by SAMPLINGTYPE,SAMPLINGDATE desc
  1365. ]]>
  1366. </query>
  1367. </queryMap>