From f94288b728f81b20c29e626526c584c11a7894a3 Mon Sep 17 00:00:00 2001 From: z8018 <1282578289@qq.com> Date: 星期六, 05 四月 2025 14:02:06 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Task_HtyService.cs | 59 ----------------------------------------------------------- 1 files changed, 0 insertions(+), 59 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Task_HtyService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Task_HtyService.cs" index 0128350..c31d892 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Task_HtyService.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Task_HtyService.cs" @@ -34,7 +34,6 @@ using System.Reflection.Metadata; using System.Text; using System.Threading.Tasks; -using WIDESEA_Comm.Http; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseServices; using WIDESEAWCS_Core.Enums; @@ -61,63 +60,5 @@ _mapper = mapper; } - - public static List<string> MaterialCuttingOutletList = new List<string>() { "B102", "B202" , "B402" , "A203" , "A403", "A603", "A803"}; - public static List<string> EdgeBandingCuttingOutletList = new List<string>() { "F20", "F21"}; - public static List<string> EdgeSandingCuttingOutletList = new List<string>() { "C13", "F14" }; - public static List<string> DrillingCuttingPositionList = new List<string>() { "Z13", "Z14" }; - - #region 绗洓鏉垮潡 - /// <summary> - /// 5鏃ュ唴鐨勫嚭鍏ュ簱 - /// </summary> - /// <returns></returns> - public WebResponseContent fifteenTotal_quantityndex() - { - WebResponseContent content = new WebResponseContent(); - var startDate = DateTime.Today.AddDays(-5); - var today = DateTime.Today; - var dateRange = Enumerable.Range(0, 5).Select(offset => today.AddDays(-offset)); - - var data2 = BaseDal.QueryData(x => x.CreateDate >= startDate && x.CreateDate < today.AddDays(1)).ToList(); - - var result = dateRange.Reverse().Select(date => - { - // 缁熻鏉挎潗涓嬫枡鍙� - //var MaterialCuttingOutlet = data2.Where(x => x.CreateDate >= date && x.CreateDate < date.AddDays(1) && MaterialCuttingOutletList.Contains(x.SourceAddress)).Count(); - var MaterialCuttingOutlet = 50; - - // 缁熻灏佽竟涓嬫枡鍙� - //var EdgeBandingCuttingOutlet = data2.Where(x => x.CreateDate >= date && x.CreateDate < date.AddDays(1) && EdgeBandingCuttingOutletList.Contains(x.SourceAddress)).Count(); - var EdgeBandingCuttingOutlet = 40; - - // 缁熻鐮傝竟涓嬫枡鍙� - //var EdgeSandingCuttingOutlet = data2.Where(x => x.CreateDate >= date && x.CreateDate < date.AddDays(1) && EdgeSandingCuttingOutletList.Contains(x.SourceAddress)).Count(); - var EdgeSandingCuttingOutlet = 80; - - // 缁熻閽诲瓟涓嬫枡浣� - //var DrillingCuttingPosition = data2.Where(x => x.CreateDate >= date && x.CreateDate < date.AddDays(1) && DrillingCuttingPositionList.Contains(x.SourceAddress)).Count(); - var DrillingCuttingPosition = 30; - - return new - { - Date = date.ToString("MM-dd"), - MaterialCuttingOutlets = MaterialCuttingOutlet, - EdgeBandingCuttingOutlets = EdgeBandingCuttingOutlet, - EdgeSandingCuttingOutlets = EdgeSandingCuttingOutlet, - DrillingCuttingPositions = DrillingCuttingPosition, - }; - }); - - var datat = new - { - Daily_statistics = result.ToList(), - }; - return content.OK(data: datat); - } - #endregion - - - } } -- Gitblit v1.9.3