|
|
|
|
@ -615,6 +615,40 @@ from (
|
|
|
|
|
where to_char(ippi.CREATION_DATE, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd') and ippi. DELETE_FLAG=0
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="mtk_selectOrderInfoBy3dTatle" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select sum(ORDER_QTY) as qty, '订单数量' as name
|
|
|
|
|
from IMOS_PR_ORDER
|
|
|
|
|
where FINISH_DATE between to_date(to_char(SYSDATE - 3, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
and to_date(to_char(SYSDATE - 1, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
union
|
|
|
|
|
select sum(ACTUAL_QTY) as qty,
|
|
|
|
|
'完成数量' as name
|
|
|
|
|
from IMOS_PR_ORDER
|
|
|
|
|
where FINISH_DATE between to_date(to_char(SYSDATE - 3, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
and to_date(to_char(SYSDATE - 1, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
union
|
|
|
|
|
select round(
|
|
|
|
|
(
|
|
|
|
|
select count(1)
|
|
|
|
|
from IMOS_PR_ORDER
|
|
|
|
|
where FINISH_DATE between to_date(
|
|
|
|
|
to_char(SYSDATE - 3, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
and to_date(to_char(SYSDATE - 1, 'yyyy-MM-dd') || '00:00:00',
|
|
|
|
|
'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
and ORDER_QTY - ACTUAL_QTY < 6
|
|
|
|
|
) /
|
|
|
|
|
(
|
|
|
|
|
select count(1)
|
|
|
|
|
from IMOS_PR_ORDER
|
|
|
|
|
where FINISH_DATE between to_date(
|
|
|
|
|
to_char(SYSDATE - 3, 'yyyy-MM-dd') || '00:00:00',
|
|
|
|
|
'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
and to_date(to_char(SYSDATE - 1, 'yyyy-MM-dd') || '00:00:00',
|
|
|
|
|
'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
) * 100, 2) as qty,
|
|
|
|
|
'清单率' as name
|
|
|
|
|
from DUAL
|
|
|
|
|
</select>
|
|
|
|
|
<select id="mtk_selectOrderInfoBy3d" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select substr(ORDER_NO, 5, length(ORDER_NO)) || '(' || substr(
|
|
|
|
|
substr(MATERIAL_NAME,
|
|
|
|
|
|