From 5b1f9ec7474f1c2a9f3c0c8e90e8e1d6961a430e Mon Sep 17 00:00:00 2001 From: tangxu <tangxu76880903> Date: 星期三, 27 三月 2024 13:57:14 +0800 Subject: [PATCH] 众毅接口取整 --- WebApi/众毅调度/ZyProjectHelper.cs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git "a/WebApi/\344\274\227\346\257\205\350\260\203\345\272\246/ZyProjectHelper.cs" "b/WebApi/\344\274\227\346\257\205\350\260\203\345\272\246/ZyProjectHelper.cs" index 2d8f877..dbaf287 100644 --- "a/WebApi/\344\274\227\346\257\205\350\260\203\345\272\246/ZyProjectHelper.cs" +++ "b/WebApi/\344\274\227\346\257\205\350\260\203\345\272\246/ZyProjectHelper.cs" @@ -54,11 +54,11 @@ dto_prj.Day = currentViewPrj.StartTime.ToString("yyyy-MM-dd"); dto_prj.StartTime = currentViewPrj.StartTime.ToString("yyyy-MM-dd HH:mm:ss"); - dto_prj.EndTime = currentViewPrj.StartTime.ToString("yyyy-MM-dd HH:mm:ss"); + dto_prj.EndTime = currentViewPrj.EndTime.ToString("yyyy-MM-dd HH:mm:ss"); - dto_prj.FlowTotal = currentViewPrj.SumFlow; - dto_prj.PowerTotal = currentViewPrj.SumPower; - dto_prj.MoneyTotal = currentViewPrj.SumMoney; + dto_prj.FlowTotal = Math.Round(currentViewPrj.SumFlow, 0); + dto_prj.PowerTotal = Math.Round(currentViewPrj.SumPower, 0); + dto_prj.MoneyTotal = Math.Round(currentViewPrj.SumMoney, 0); dto_prj.Items = new List<ZyDto.SubmitPrjItem>(); foreach (var bt in currentViewPrj.BlockTimes) -- Gitblit v1.9.3