Reject History: - Compute dimension pareto (package/type/workflow/workcenter/equipment) from cached DataFrame instead of re-querying Oracle per dimension change - Propagate supplementary filters and trend date selection to dimension pareto - Add staleness tracking to prevent race conditions on rapid dimension switches - Add WORKFLOWNAME to detail and export outputs - Fix button hover visibility with CSS specificity MSD (製程不良追溯分析): - Separate raw events caching from aggregation computation so changing loss_reasons uses EventFetcher per-domain cache (fast) and recomputes aggregation with current filters instead of returning stale cached results - Exclude loss_reasons from MSD seed cache key since seed resolution does not use it, avoiding unnecessary Oracle re-queries - Add suspect context panel, analysis summary, upstream station/spec filters - Add machine bar click drill-down and filtered attribution charts Query Tool: - Support batch container_ids in lot CSV export (history/materials/rejects/holds) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
428 B
SQL
20 lines
428 B
SQL
-- Recent JOB records for a specific equipment (last 30 days)
|
|
--
|
|
-- Parameters:
|
|
-- :equipment_id - Equipment ID (RESOURCEID)
|
|
|
|
SELECT
|
|
j.JOBID,
|
|
j.JOBSTATUS,
|
|
j.JOBMODELNAME,
|
|
j.CREATEDATE,
|
|
j.COMPLETEDATE,
|
|
j.CAUSECODENAME,
|
|
j.REPAIRCODENAME,
|
|
j.RESOURCENAME
|
|
FROM DWH.DW_MES_JOB j
|
|
WHERE j.RESOURCEID = :equipment_id
|
|
AND j.CREATEDATE >= SYSDATE - 30
|
|
ORDER BY j.CREATEDATE DESC
|
|
FETCH FIRST 5 ROWS ONLY
|