Kaynağa Gözat

办结率 延期率

zhaozhiqiang 3 yıl önce
ebeveyn
işleme
67648c09ac

+ 4 - 4
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/WorkOrderReportController.cs

@@ -299,11 +299,11 @@ namespace CallCenterApi.Interface.Controllers.report
299 299
                     // obj.Tables[0].Rows[i]["timeoutcount"] = timeoutcount;
300 300
                     if (slcount > 0)
301 301
                     {
302
-                        bjlyrate=bjcount/ slcount;
303
-                        obj.Tables[0].Rows[i]["bjlyrate"] = (bjlyrate*100).ToString("0") + "%";//办结率
302
+                        bjlyrate=(double)bjcount/(double)slcount;
303
+                        obj.Tables[0].Rows[i]["bjlyrate"] = bjlyrate.ToString("0.00%");//办结率
304 304
 
305
-                        yqlyrate=timeoutcount / slcount;
306
-                        obj.Tables[0].Rows[i]["yqlyrate"] = (yqlyrate*100).ToString("0") + "%";//办结率
305
+                        yqlyrate= (double)timeoutcount/(double)slcount;
306
+                        obj.Tables[0].Rows[i]["yqlyrate"] = yqlyrate.ToString("0.00%");//办结率
307 307
                     }
308 308
                     //if (completedcount > 0)
309 309
                     //{