|
|
|
|
@ -811,35 +811,52 @@ where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
<select id="mtk_selectOrderInfoBy3dTatle" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select count(1) 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')
|
|
|
|
|
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from (
|
|
|
|
|
select DAY, ROWNUM as qt
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY < to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
order by DAY desc)
|
|
|
|
|
where qt < 4)
|
|
|
|
|
union
|
|
|
|
|
select count(1) 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')
|
|
|
|
|
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from (
|
|
|
|
|
select DAY, ROWNUM as qt
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY < to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
order by DAY desc)
|
|
|
|
|
where qt < 4)
|
|
|
|
|
and ORDER_QTY - ACTUAL_QTY < 6
|
|
|
|
|
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')
|
|
|
|
|
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from (
|
|
|
|
|
select DAY, ROWNUM as qt
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY < to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
order by DAY desc)
|
|
|
|
|
where qt < 4)
|
|
|
|
|
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')
|
|
|
|
|
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from (
|
|
|
|
|
select DAY, ROWNUM as qt
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY < to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
order by DAY desc)
|
|
|
|
|
where qt < 4)
|
|
|
|
|
) * 100, 2) as qty, '清单率' as name
|
|
|
|
|
from DUAL
|
|
|
|
|
union
|
|
|
|
|
@ -947,14 +964,16 @@ where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
)
|
|
|
|
|
</select>
|
|
|
|
|
<select id="mtk_selectInstoreNumByday" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select substr(
|
|
|
|
|
MATERIAL_NAME,
|
|
|
|
|
instr(MATERIAL_NAME, '-', 1, 1) + 1,
|
|
|
|
|
instr(MATERIAL_NAME, ',', 1, 1) - 2 - instr(MATERIAL_NAME, '-', 1, 1) + 1) as name,
|
|
|
|
|
IN_QTY as qty
|
|
|
|
|
from IMOS_PR_PRODUCT_IN
|
|
|
|
|
select nvl(count(1),0) as qty,
|
|
|
|
|
|
|
|
|
|
where to_char(CREATION_DATE, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
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
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
and to_char(SCAN_TIME, 'yyyy-MM-dd') =to_char(SYSDATE, 'yyyy-MM-dd')
|
|
|
|
|
group by MATERIAL_NAME
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<resultMap id="MTKBeen" type="com.ruoyi.system.domain.MTKBeen">
|
|
|
|
|
|