田爽 hace 1 año
padre
commit
a7a6ab897b
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/Hotline.Api/Controllers/Bi/BiOrderController.cs

+ 1 - 2
src/Hotline.Api/Controllers/Bi/BiOrderController.cs

@@ -274,8 +274,7 @@ namespace Hotline.Api.Controllers.Bi
 				ChainNum = res.Sum(x => x.ChainNum),
 				ChainRate = res.Sum(x => x.ChainNum) > 0 ? ((double.Parse(res.Sum(x => x.Num).ToString()) - double.Parse(res.Sum(x => x.ChainNum).ToString())) / double.Parse(res.Sum(x => x.ChainNum).ToString()) * 100).ToString("F2") + "%" : "100.00%"
 			};
-			res.Add(total);
-			return res;
+			return new {List =res ,Total = total };
         }