Pārlūkot izejas kodu

评价包括myd为0的

MicroWin10-1604\Administrator 7 gadi atpakaļ
vecāks
revīzija
c776639f86

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

176
         {
176
         {
177
             int allcount = dt.Rows.Count;
177
             int allcount = dt.Rows.Count;
178
             int typecount = 0;
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
             else typecount = dt.Select("MYD=" + type).Count();
180
             else typecount = dt.Select("MYD=" + type).Count();
181
             string percent = "0.00";
181
             string percent = "0.00";
182
             if (allcount > 0) percent = (typecount * 1.0 / allcount).ToString("0.00");
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
                             }
721
                             }
722
                             drNew["呼入占有率"] = (ihrzyl * 100).ToString("0.00") + "%";
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
                             string myd = "";
726
                             string myd = "";
727
                             if (obj != null)
727
                             if (obj != null)
728
                             {
728
                             {