From 2159433297004079ceec8fce590cc991d6f432c3 Mon Sep 17 00:00:00 2001 From: "qianhao.xu" Date: Mon, 23 Dec 2024 17:12:53 +0800 Subject: [PATCH] 1 --- .../Product/ProductSmartScreenService.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/DOAN.Service/MES/SmartScreen/Product/ProductSmartScreenService.cs b/DOAN.Service/MES/SmartScreen/Product/ProductSmartScreenService.cs index 4fe7b58..af36e3f 100644 --- a/DOAN.Service/MES/SmartScreen/Product/ProductSmartScreenService.cs +++ b/DOAN.Service/MES/SmartScreen/Product/ProductSmartScreenService.cs @@ -344,16 +344,16 @@ namespace DOAN.Service.MES.SmartScreen.Product List echartsSeriesDatas = new List(); string sql = "SELECT" + - "FROM_UNIXTIME( FLOOR( UNIX_TIMESTAMP( job_datetime ) / 600 ) * 600 ) AS time_period," + - "SUM( finish_num ) AS count " + - "FROM" + - "pro_reportwork " + - "WHERE" + - "DATE(job_datetime) = CURDATE() AND @process_id=process_id " + - "GROUP BY" + - "FLOOR( UNIX_TIMESTAMP( job_datetime ) / 600 )" + - "ORDER BY" + - "time_period"; + " FROM_UNIXTIME( FLOOR( UNIX_TIMESTAMP( job_datetime ) / 600 ) * 600 ) AS time_period," + + " SUM( finish_num ) AS count " + + " FROM" + + " pro_reportwork " + + " WHERE" + + " DATE(job_datetime) = CURDATE() AND @process_id=process_id " + + " GROUP BY" + + " FLOOR( UNIX_TIMESTAMP( job_datetime ) / 600 )" + + " ORDER BY" + + " time_period"; DataTable result = Context.Ado.GetDataTable(sql, new { process_id = processArray[i], }); int sum = 0;