Selaa lähdekoodia

Merge branch 'master' of http://git.12345lm.cn/Fengwo/hotline

Dun.Jason 1 vuosi sitten
vanhempi
commit
9000b1f00a

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

@@ -255,7 +255,7 @@ namespace Hotline.Api.Controllers.Bi
                                Children = new List<HotspotDataLsitVo>(),
 							   ChainNum = t1_t2.Select(x => x.ChainNum).FirstOrDefault(),
 							   ChainRate = t1_t2.Select(x => x.ChainNum).FirstOrDefault() > 0 ?
-                               ((double.Parse(t1.Num.ToString()) - double.Parse(t1_t2.Select(x => x.ChainNum).FirstOrDefault().ToString())) / double.Parse(t1_t2.Select(x => x.ChainNum).FirstOrDefault().ToString()) * 100).ToString("F2")+"%" : "100%",
+                               ((double.Parse(t1.Num.ToString()) - double.Parse(t1_t2.Select(x => x.ChainNum).FirstOrDefault().ToString())) / double.Parse(t1_t2.Select(x => x.ChainNum).FirstOrDefault().ToString()) * 100).ToString("F2")+"%" : "100.00%",
                            }).ToList();
                 return res;
 			}

+ 4 - 4
src/Hotline.Share/Dtos/CallCenter/BiSeatCallsDto.cs

@@ -83,22 +83,22 @@ public class BiSeatCallsDto
     /// <summary>
     /// 呼入接通率
     /// </summary>
-    public double InAnsweredRate => InTotal > 0 ? Math.Round(InAnswered / InTotal, digits: 4) : 0;
+    public double InAnsweredRate => InTotal > 0 ? Math.Round((double)InAnswered / (double)InTotal, digits: 4) : 0;
 
     /// <summary>
     /// 呼出接通率
     /// </summary>
-    public double OutAnsweredRate => OutTotal > 0 ? Math.Round(OutAnswered / OutTotal, digits: 4) : 0;
+    public double OutAnsweredRate => OutTotal > 0 ? Math.Round((double)OutAnswered / (double)OutTotal, digits: 4) : 0;
 
     /// <summary>
     /// 呼入有效接通率
     /// </summary>
-    public double AvailableAnswerRate => InTotal > 0 ? Math.Round(InAvailableAnswer / InTotal, digits: 4) : 0;
+    public double AvailableAnswerRate => InTotal > 0 ? Math.Round((double)InAvailableAnswer / (double)InTotal, digits: 4) : 0;
 
     /// <summary>
     /// 工作效率
     /// </summary>
-    public double WorkRate => LoginDuration > 0 ? Math.Round(1 - RestDuration / LoginDuration, digits: 4) : 0;
+    public double WorkRate => LoginDuration > 0 ? Math.Round(1 - (double)RestDuration / (double)LoginDuration, digits: 4) : 0;
 }