QueryLgResMgt.xml 50 KB

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