7c726deeda3fe2c19ca2926334f173c5bb7c5814.svn-base 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding='UTF-8'?>
  2. <queryMap desc="STEEL MAKING QUERY ">
  3. <query id="UIH090020_01.select" desc=" 加热炉入炉报表 " fetchSize="10">
  4. <![CDATA[
  5. select ROWNUM seq,
  6. decode(c.buy_charge_no,null,nvl(c.buy_charge_no,'热轧材'),'外购坯') buy_charge_no,
  7. a.slab_no,
  8. c.stl_grd,
  9. c.slab_thk||'*'||c.slab_wth||'*'||c.slab_len t_w_l,
  10. c.slab_wgt,
  11. a.devno,
  12. DECODE(a.ROW_NUM,'1','一列','2','二列','0','长坯') ROW_NUM,
  13. a.charing_dtime,
  14. b.roll_mana_no,
  15. substr(a.coil_no,0,10) coil_no,
  16. a.CHRGING_WK_EMP_NO,
  17. '' memo
  18. from
  19. tbh02_reheatfur a,tbf02_spec_mill b,tbg02_slab_comm c
  20. where a.slab_no = b.slab_no
  21. and a.slab_no = c.slab_no
  22. and substr(a.charing_dtime,1,12) >= ?
  23. and substr(a.charing_dtime,1,12) <= ?
  24. and a.CHRGING_WKGROUP||'&' like ?||'%'
  25. and a.CHRGING_WKSHIFT||'&' like ?||'%'
  26. order by a.CHARING_DTIME
  27. ]]>
  28. </query>
  29. <query id="UIH090020_02.select" desc=" 加热炉入炉报表,统计块数和重量 " fetchSize="10">
  30. <![CDATA[
  31. select count(c.SLAB_NO) COIL_CNT,
  32. nvl(sum(c.SLAB_WGT)/1000,0) COIL_WGT
  33. from
  34. tbh02_reheatfur a,tbf02_spec_mill b,tbg02_slab_comm c
  35. where a.slab_no = b.slab_no
  36. and a.slab_no = c.slab_no
  37. and substr(a.charing_dtime,1,12) >= ?
  38. and substr(a.charing_dtime,1,12) <= ?
  39. and a.CHRGING_WKGROUP||'&' like ?||'%'
  40. and a.CHRGING_WKSHIFT||'&' like ?||'%'
  41. ]]>
  42. </query>
  43. </queryMap>