修改 周报

master
wangh 3 years ago
parent 287fd25b1a
commit c507d90916

@ -569,7 +569,7 @@ where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
<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+QTY_B as qty, '计划' as name
from haiwei.BASE_PRODUCT_QTY
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
union
@ -698,12 +698,12 @@ where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
length(MATERIAL_NAME)) as name,
ORDER_QTY as plan_number,
ACTUAL_QTY as actual_number,
substr(MATERIAL_NAME,
instr(MATERIAL_NAME, '-', 1, 1) + 1,
case
when instr(MATERIAL_NAME, ',', 1, 1) &lt; 6 then instr(MATERIAL_NAME, ',', 1, 2)
else instr(MATERIAL_NAME, ',', 1, 1) end-1 - instr(MATERIAL_NAME, '-', 1))
as name_sub,
substr(MATERIAL_NAME,
instr(MATERIAL_NAME, '-', 1, 1) + 1,
case
when instr(MATERIAL_NAME, ',', 1, 2) =0 then instr(MATERIAL_NAME, ',', 1, 1)
else instr(MATERIAL_NAME, ',', 1, 2) end - instr(MATERIAL_NAME, '-', 1, 1) -1
) as name_sub,
FINISH_DATE as day,
round(ACTUAL_QTY / ORDER_QTY * 100, 2) as rate
from IMOS_PR_ORDER

Loading…
Cancel
Save