|
|
|
|
@ -867,6 +867,29 @@ where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
select * from (select rate,'不合格率目标' from haiwei.BASE_ONE_UNQUQLIFIED_RATE order by CREATE_TIME desc) where ROWNUM=1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="mtk_selectQAZD" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select round((CASE
|
|
|
|
|
WHEN Sum_Value = 0 THEN 0.00
|
|
|
|
|
ELSE (Sum_Value - H_Unqualified_Qty) / Sum_Value END) *
|
|
|
|
|
100.00, 2) as qty,
|
|
|
|
|
case
|
|
|
|
|
when ITEM_CODE = '1001' then '成品检漏'
|
|
|
|
|
when ITEM_CODE = '1002' then '内胆检漏'
|
|
|
|
|
when ITEM_CODE = '1003' then '安全检测'
|
|
|
|
|
when ITEM_CODE = '1005' then '测温性能'
|
|
|
|
|
when ITEM_CODE = '1006' then '成品外观' end as name
|
|
|
|
|
|
|
|
|
|
from (
|
|
|
|
|
select ITEM_CODE,
|
|
|
|
|
SUM(ALL_QTY) AS Sum_Value,
|
|
|
|
|
SUM(H_Unqualified_Qty) H_Unqualified_Qty
|
|
|
|
|
|
|
|
|
|
from view_imos_pr_barcode sqlwhere
|
|
|
|
|
where TO_CHAR(SCAN_TIME, 'yyyy-MM-dd') = TO_CHAR(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
and ITEM_CODE in ('1001', '1002', '1003', '1005', '1006')
|
|
|
|
|
group by ITEM_CODE
|
|
|
|
|
)
|
|
|
|
|
</select>
|
|
|
|
|
<select id="mtk_selectInstoreNumByday" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select substr(
|
|
|
|
|
MATERIAL_NAME,
|
|
|
|
|
|