From 30354a500ea73d7b64bb4b57e2a992210faaa436 Mon Sep 17 00:00:00 2001 From: xiaochou164 Date: Mon, 14 Aug 2023 10:54:31 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E6=8A=A5=E8=A1=A8sql/Yiel?= =?UTF-8?q?d=5F[excel].sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 首次提交 --- 报表sql/Yield_[excel].sql | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/报表sql/Yield_[excel].sql b/报表sql/Yield_[excel].sql index e69de29..595153a 100644 --- a/报表sql/Yield_[excel].sql +++ b/报表sql/Yield_[excel].sql @@ -0,0 +1,24 @@ +select + mfgdate 计产日期, + crystalbarno 晶编, + eqpid 炉台号, + subprod 产品规格, + area 车间, + area1 片区, + qclength QC长度, + qcweight 有效重量, + qctime QC检验时间, + adjustcrucible 坩埚厂商, + adjustcruciblecode 坩埚编码, + crusize 热场尺寸, + timeinterval 运行时间, + erpmoname ERP工单号, + moprodname 工单物料编码, + moproddesc 工单物料描述 +from + reportdata.siteonlinecrucibleyield s + where 1=1 + and qctime >= concat(date_format(now()-8.5/24,'%Y-%m-') ,'01 08:30:00') + ##and qctime >= concat(date_format(date_sub(now(),interval 1 month)-8.5/24,'%Y-%m-') ,'01 08:30:00') /*上月第一天 */ + and qctime < concat(date_format(now()-8.5/24,'%Y-%m-%d') ,' 08:30:00') + order by qctime \ No newline at end of file