17b72e41a48badd71603abe35770ae3fd2d11d08.svn-base 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding='UTF-8'?>
  2. <queryMap desc="STEEL MAKING QUERY ">
  3. <query id="UIH090050_01.select" desc=" 成品库入库报表 " fetchSize="10">
  4. <![CDATA[
  5. select B.ROLL_SLAB_SEQ SEQ,
  6. b.roll_mana_no,
  7. c.ord_no,substr(a.coil_no,0,10) SPM_NO,
  8. c.old_sampl_no,
  9. c.SMP_DIR_PIC_YN,
  10. c.spec_stl_grd,
  11. c.coil_thk||'*'||c.coil_wth t_w,
  12. c.act_wgt,
  13. c.cur_load_loc,
  14. decode(c.tot_dec_grd,'1','合格','2','不合格','3','外观原因','4','废品') tot_dec_grd,
  15. sq_qd_common.COMMCD_CDTOCFNM('H02001',(case when c.crk_cd1 is not null then c.crk_cd1
  16. when c.crk_cd2 is not null then c.crk_cd2
  17. when c.crk_cd3 is not null then c.crk_cd3
  18. when c.crk_cd4 is not null then c.crk_cd4
  19. when c.crk_cd5 is not null then c.crk_cd5
  20. end ))crk_cd,
  21. a.reg_id,
  22. a.reg_dtime,
  23. c.rem
  24. from tbh05_coil_yard a,tbf02_spec_mill b,tbh02_coil_comm c
  25. where a.coil_no = c.old_sampl_no
  26. and b.slab_no = c.slab_no
  27. and c.coil_stat = '2'
  28. and a.reg_dtime like ?||'%'
  29. order by B.ROLL_MANA_NO,B.ROLL_SLAB_SEQ,a.REG_DTIME
  30. ]]>
  31. </query>
  32. <query id="UIH090050_02.select" desc=" 成品库入库钢卷个数和总量的统计 " fetchSize="10">
  33. <![CDATA[
  34. select count(*) COIL_CNT,
  35. nvl(sum(c.act_wgt)/1000,0) COIL_WGT
  36. from tbh05_coil_yard a,tbh02_coil_comm c
  37. where a.coil_no = c.old_sampl_no
  38. and c.coil_stat = '2'
  39. and a.reg_dtime like ?||'%'
  40. ]]>
  41. </query>
  42. </queryMap>