|
|
|
|
@ -941,6 +941,24 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
)
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="pqk_selectProductInStore" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select nvl(count(1), 0) as qty,
|
|
|
|
|
substr(
|
|
|
|
|
MATERIAL_NAME,
|
|
|
|
|
instr(MATERIAL_NAME, '-', 1, 1) + 1,
|
|
|
|
|
instr(MATERIAL_NAME, ',', 1, 1) - 2 - instr(MATERIAL_NAME, '-', 1, 1) + 1) as name
|
|
|
|
|
from IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb
|
|
|
|
|
on 1 = 1
|
|
|
|
|
where ippb.SCAN_TIME between
|
|
|
|
|
case
|
|
|
|
|
when sysdate <= wb.W_END then W_START
|
|
|
|
|
else W_END end
|
|
|
|
|
and case when sysdate <= wb.W_END then W_END else B_END end
|
|
|
|
|
and DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
|
|
|
|
|
group by MATERIAL_NAME
|
|
|
|
|
</select>
|
|
|
|
|
<select id="mtk_selectInStore3d" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select
|
|
|
|
|
substr(MATERIAL_NAME,
|
|
|
|
|
@ -1485,6 +1503,7 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
<select id="zz_countNightProductIn" resultType="integer">
|
|
|
|
|
select count(1)
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE
|
|
|
|
|
|
|
|
|
|
where PRODUCTION_DATE > (
|
|
|
|
|
select W_END + interval '5' MINUTE
|
|
|
|
|
from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc )
|
|
|
|
|
|