|
|
|
|
@ -252,6 +252,7 @@ FROM (select PLAN_NUMBER
|
|
|
|
|
select sum(PRODUCT_QTY) qty, '实际产量' as name
|
|
|
|
|
from IMOS_PR_FOAMING_MONITOR
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectFpStock" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select substr(MATERIAL_NAME,
|
|
|
|
|
case
|
|
|
|
|
@ -273,7 +274,55 @@ FROM (select PLAN_NUMBER
|
|
|
|
|
and STORE_QTY > 0
|
|
|
|
|
group by MATERIAL_NAME
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="zhou_selectOrderRateTatle" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select count(1) as qty, '订单数量' as name
|
|
|
|
|
from IMOS_PR_ORDER
|
|
|
|
|
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
|
|
|
|
|
union
|
|
|
|
|
select count(1) as qty, '完成数量' as name
|
|
|
|
|
from IMOS_PR_ORDER
|
|
|
|
|
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
|
|
|
|
|
and ORDER_QTY - ACTUAL_QTY < 6
|
|
|
|
|
union
|
|
|
|
|
select round(
|
|
|
|
|
(
|
|
|
|
|
select count(1)
|
|
|
|
|
from IMOS_PR_ORDER
|
|
|
|
|
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
|
|
|
|
|
and ORDER_QTY - ACTUAL_QTY < 6
|
|
|
|
|
) /
|
|
|
|
|
(
|
|
|
|
|
select count(1)
|
|
|
|
|
from IMOS_PR_ORDER
|
|
|
|
|
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
|
|
|
|
|
) * 100, 2) as qty, '清单率' as name
|
|
|
|
|
from DUAL
|
|
|
|
|
-- union
|
|
|
|
|
-- select count(1)as qty, '入库订单统计' as name
|
|
|
|
|
-- from IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
-- where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
-- and to_char(SCAN_TIME, 'yyyy-MM-dd') =to_char(SYSDATE, 'yyyy-MM-dd')
|
|
|
|
|
</select>
|
|
|
|
|
<select id="zhou_selectQaItemInfo" resultMap="MTKBeen">
|
|
|
|
|
select case
|
|
|
|
|
when ITEM_CODE = '1001' then '成品检漏'
|
|
|
|
|
@ -294,8 +343,10 @@ FROM (select PLAN_NUMBER
|
|
|
|
|
from HAIWEI.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="zhou_selectProductInStore" resultMap="MTKBeen">
|
|
|
|
|
select to_char(DAY, 'MM-dd') as code, qty, '目标' as name
|
|
|
|
|
select to_char(DAY, 'MM-dd') as code, qty, '计划' as name
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
union
|
|
|
|
|
|