|
|
@ -23,16 +23,19 @@
|
|
|
|
select * from table ( scada_adsorb_fault(#{in_id}) )
|
|
|
|
select * from table ( scada_adsorb_fault(#{in_id}) )
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectScadaAdsorbDeviceOEE" resultType="String">
|
|
|
|
<select id="selectScadaAdsorbDeviceOEE" resultType="String" parameterType="integer">
|
|
|
|
/*select to_char(round(OEE,2),'fm99999999999990.00') as oee from
|
|
|
|
/*select to_char(round(OEE,2),'fm99999999999990.00') as oee from
|
|
|
|
SCADA_HOUR_OEE where DEVICEID = '1#'
|
|
|
|
SCADA_HOUR_OEE where DEVICEID = '1#'
|
|
|
|
and CREATETIME = (select max (CREATETIME) from SCADA_HOUR_OEE where DEVICEID = DEVICEID) order by CREATETIME desc
|
|
|
|
and CREATETIME = (select max (CREATETIME) from SCADA_HOUR_OEE where DEVICEID = DEVICEID) order by CREATETIME desc
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
select OEE
|
|
|
|
|
|
|
|
|
|
|
|
/* select OEE
|
|
|
|
from (select *
|
|
|
|
from (select *
|
|
|
|
from SCADA_XF_DEVICEINFO_1
|
|
|
|
from SCADA_XF_DEVICEINFO_1
|
|
|
|
order by CREATETIME desc)
|
|
|
|
order by CREATETIME desc)
|
|
|
|
where rownum = 1
|
|
|
|
where rownum = 1*/
|
|
|
|
|
|
|
|
select *
|
|
|
|
|
|
|
|
from table ( scada_adsorb_device_oee_new(#{in_id}) )
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectScadaAdsorbDeviceAlarmCount" resultType="String">
|
|
|
|
<select id="selectScadaAdsorbDeviceAlarmCount" resultType="String">
|
|
|
|