|
|
|
|
@ -181,6 +181,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="fp_selectOrderExecution" resultType="com.ruoyi.system.domain.OrderInfo">
|
|
|
|
|
select substr(MATERIAL_NAME,
|
|
|
|
|
case
|
|
|
|
|
when instr(MATERIAL_NAME, '/', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
|
|
|
|
|
else instr(MATERIAL_NAME, '/', 1, 1) + 1
|
|
|
|
|
end,
|
|
|
|
|
case
|
|
|
|
|
when instr(MATERIAL_NAME, ',', 1, 2) = 0 then Length(MATERIAL_NAME) + 1
|
|
|
|
|
else instr(MATERIAL_NAME, ',', 1, 2)
|
|
|
|
|
end
|
|
|
|
|
-
|
|
|
|
|
case
|
|
|
|
|
when instr(MATERIAL_NAME, '/', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
|
|
|
|
|
else instr(MATERIAL_NAME, '/', 1, 1) + 1
|
|
|
|
|
end) as name,
|
|
|
|
|
sum(PRODUCT_QTY) as actual_number
|
|
|
|
|
from IMOS_PR_FOAMING_MONITOR
|
|
|
|
|
group by MATERIAL_NAME
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectFpOrderInfo" resultType="com.ruoyi.system.domain.BoxPlanCompletion">
|
|
|
|
|
select sum(PLAN_QTY) qty, '当班计划' as name
|
|
|
|
|
from imos_ta_material
|
|
|
|
|
where DISPLAY_FLAG = 1
|
|
|
|
|
union
|
|
|
|
|
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
|
|
|
|
|
when instr(MATERIAL_NAME, '/', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
|
|
|
|
|
@ -195,15 +222,12 @@
|
|
|
|
|
when instr(MATERIAL_NAME, '/', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
|
|
|
|
|
else instr(MATERIAL_NAME, '/', 1, 1) + 1
|
|
|
|
|
end) as name,
|
|
|
|
|
sum(PLAN_QTY) as plan_number,
|
|
|
|
|
SUM(ACTUAL_QTY) as qty
|
|
|
|
|
from IMOS_PR_PLAN
|
|
|
|
|
where to_char(plan_date, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
and PROCESS_CODE = '1005' and delete_flag = '0'
|
|
|
|
|
group by MATERIAL_NAME
|
|
|
|
|
STORE_QTY as qty
|
|
|
|
|
from IMOS_LO_BIN
|
|
|
|
|
where MATERIAL_NAME like '发泡箱体%'
|
|
|
|
|
and STORE_QTY > 0
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="pqk_selectProductInStore" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select substr(MATERIAL_NAME,
|
|
|
|
|
case
|
|
|
|
|
@ -329,7 +353,7 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
<select id="QQ" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
insert into temp1 (
|
|
|
|
|
select row_number() over (order by CREATION_DATE) as row_number,
|
|
|
|
|
CREATION_DATE as day
|
|
|
|
|
|