From d0a1e95a7a4dece9a1ec1eeb5f1109f23505afae Mon Sep 17 00:00:00 2001 From: xiaochou164 Date: Mon, 21 Aug 2023 01:37:57 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E6=8A=A5=E8=A1=A8sql/Exce?= =?UTF-8?q?l/MoDailyYield=5F[excel].sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 报表sql/Excel/MoDailyYield_[excel].sql | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 报表sql/Excel/MoDailyYield_[excel].sql diff --git a/报表sql/Excel/MoDailyYield_[excel].sql b/报表sql/Excel/MoDailyYield_[excel].sql new file mode 100644 index 0000000..fa44781 --- /dev/null +++ b/报表sql/Excel/MoDailyYield_[excel].sql @@ -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 \ No newline at end of file