浏览代码

评价包括myd为0的

MicroWin10-1604\Administrator 7 年之前
父节点
当前提交
c776639f86

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/ZuoXiManYiDuController.cs

@@ -176,7 +176,7 @@ namespace CallCenterApi.Interface.Controllers.report
176 176
         {
177 177
             int allcount = dt.Rows.Count;
178 178
             int typecount = 0;
179
-            if (type == 4) typecount = dt.Select("MYD IS NULL").Count();
179
+            if (type == 4) typecount = dt.Select("MYD IS NULL or myd=0").Count();
180 180
             else typecount = dt.Select("MYD=" + type).Count();
181 181
             string percent = "0.00";
182 182
             if (allcount > 0) percent = (typecount * 1.0 / allcount).ToString("0.00");

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/ZuoXiWorkTotalController.cs

@@ -721,8 +721,8 @@ namespace CallCenterApi.Interface.Controllers.report
721 721
                             }
722 722
                             drNew["呼入占有率"] = (ihrzyl * 100).ToString("0.00") + "%";
723 723
                             //用户评价
724
-
725
-                            object obj = DbHelperSQL.GetSingle("select count(*) from T_Call_CallRecords where MYD is not null and CallState=1 and userid=" + dt.Rows[i]["F_UserId"] + strsqlcall);
724
+                            //未评价为0
725
+                            object obj = DbHelperSQL.GetSingle("select count(*) from T_Call_CallRecords where MYD is not null and myd<>0 and CallState=1 and userid=" + dt.Rows[i]["F_UserId"] + strsqlcall);
726 726
                             string myd = "";
727 727
                             if (obj != null)
728 728
                             {