Ver Código Fonte

报表数据不正确

MicroWin10-1604\Administrator 8 anos atrás
pai
commit
f776ea750b

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

@@ -191,7 +191,7 @@ namespace CallCenterApi.Interface.Controllers.report
191 191
                 int sum = 0;
192 192
                 for (int j = 0; j < cateid.Length; j++)
193 193
                 {
194
-                    string str = "select count(*) from T_Wo_WorkOrder where IsDel=0 and typeclass=" + cateid[j] + " and CreateUserID='" + dt.Rows[i]["F_Userid"].ToString() + "'" + sqltimeCallRecords;
194
+                    string str = "select count(*) from T_Wo_WorkOrder where IsDel=0 and typeclass=" + cateid[j] + " and CreateUser='" + dt.Rows[i]["F_UserCode"].ToString() + "'" + sqltimeCallRecords;
195 195
                     int ecount = int.Parse(DbHelperSQL.GetSingle(str).ToString());
196 196
 
197 197
                     sum += ecount;

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

@@ -194,7 +194,7 @@ namespace CallCenterApi.Interface.Controllers.report
194 194
                 int sum = 0;
195 195
                 for (int j = 0; j < cateid.Length; j++)
196 196
                 {
197
-                    string str = "select count(*) from T_Wo_WorkOrder where IsDel=0 and typeclass=" + cateid[j] + " and CreateUserID='" + dt.Rows[i]["F_Userid"].ToString() + "'" + sqltimeCallRecords;
197
+                    string str = "select count(*) from T_Wo_WorkOrder where IsDel=0 and typeclass=" + cateid[j] + " and CreateUser='" + dt.Rows[i]["F_UserCode"].ToString() + "'" + sqltimeCallRecords;
198 198
                     int ecount = int.Parse(DbHelperSQL.GetSingle(str).ToString());
199 199
 
200 200
                     sum += ecount;

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

@@ -121,7 +121,7 @@ namespace CallCenterApi.Interface.Controllers.report
121 121
                 dtnew = DbHelperSQL.Query(sqlnew).Tables[0];
122 122
                 for (int j = 0; j < dtnew.Rows.Count; j++)
123 123
                 {
124
-                    string str = "select count(*) from T_Wo_WorkOrder where IsDel=0 and type=" + Convert.ToInt32(dtnew.Rows[j]["F_DictionaryValueId"].ToString()) + " and CreateUserID='" + dt.Rows[i]["F_Userid"].ToString() + "'" + sqltimeCallRecords;
124
+                    string str = "select count(*) from T_Wo_WorkOrder where IsDel=0 and type=" + Convert.ToInt32(dtnew.Rows[j]["F_DictionaryValueId"].ToString()) + " and CreateUser='" + dt.Rows[i]["F_UserCode"].ToString() + "'" + sqltimeCallRecords;
125 125
                     DataTable dtj = DbHelperSQL.Query(str).Tables[0];
126 126
                     int sum = 0;
127 127
                     if (dtj.Rows[0][0] != null && dtj.Rows[0][0].ToString() != "")