添加 报表sql/Excel/MoDailyYield_[excel].sql

This commit is contained in:
xiaochou164 2023-08-21 01:37:57 +00:00
parent 86ccd4dada
commit d0a1e95a7a
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
select
ms.mesmoname MES工单号,
ms.erpmoname ERP工单号,
ms.eqpid ,
ms.area ,
ms.area1 ,
ms.mfgdate ,
ms.finishdate ,
ms.moprod ,
ms.stovetime ,
ms.adjustcruciblecode ,
ms.adjustcrucible ,
ms.totalstoveweight ,
ms.totaloutweight ,
ms.totalqcweight
from
reportdata.mesmodailyyield ms
where 1=1
and mfgdate >= concat(date_format(now()-8.5/24,'%Y-%m-') ,'01')
order by mfgdate