'02'
and a.heat_state < '10' and a.heatno is not null
]]>
0 and nvl(t4.ARRIVEWGT, 0) > 0 and
nvl(t4.LEAVEWGT, 0) < nvl(t4.ARRIVEWGT, 0) THEN
round(t3.TFPOTWGT - (nvl(t4.ARRIVEWGT, 0) - nvl(t4.LEAVEWGT, 0)),
2)
ELSE
t3.TFPOTWGT
END lblInHeatWgt
from (select t.ladleid,
t.age,
t.manufacturers,
t.TAREWEIGHT,
t1.nowposition,
t1.mistapholestarttime,
t1.hmparrivetime,
t1.hmpleavetime,
t1.inno,
t1.hmpno
from dev_ib_base_info t, dev_ib_use_detail t1
where t.ladleid = ?
and t.ladleid = t1.ladleid
and t1.cycid = (select max(cycid)
from dev_ib_use_detail a
where a.ladleid = t.ladleid)) t2
LEFT JOIN STL_MIS_IMPORTIRON T3 ON T2.INNO = T3.MISID
LEFT JOIN (SELECT *
from stl_hmp_optinfo
union
SELECT * from J#stl_hmp_optinfo) t4 on t2.hmpno = t4.hudwid
]]>