zhoufan %!s(int64=3) %!d(string=hace) años
padre
commit
febfccfac1

+ 6 - 3
API/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/App_Start/SqlErrorAttribute.cs

312
                                     b++;
312
                                     b++;
313
                                     break;
313
                                     break;
314
                                 }
314
                                 }
315
-                                int tqw = getItemBYUrl(url5, Convert.ToInt32(roleId));
316
-                                if (tqw == 0)
315
+                                if (url5 != "/Dictionary/GetDicValueListById" && url5 != "/Department/GetAreaList")
317
                                 {
316
                                 {
318
-                                    throw new Exception("操作失败,无权限");
317
+                                    int tqw = getItemBYUrl(url5, Convert.ToInt32(roleId));
318
+                                    if (tqw == 0)
319
+                                    {
320
+                                        throw new Exception("操作失败,无权限");
321
+                                    }
319
                                 }
322
                                 }
320
                                 //if (f12>0) {
323
                                 //if (f12>0) {
321
                                 //    if (f12==19) {
324
                                 //    if (f12==19) {

+ 5 - 5
API/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/IndexController.cs

201
                             //dayout = new { count = dayoutlist.Count, totaltime = dayoutlist.Select(p => p.TalkLongTime).Sum() },
201
                             //dayout = new { count = dayoutlist.Count, totaltime = dayoutlist.Select(p => p.TalkLongTime).Sum() },
202
                             //monin = new { count = moninlist.Count, totaltime = moninlist.Select(p => p.TalkLongTime).Sum() },
202
                             //monin = new { count = moninlist.Count, totaltime = moninlist.Select(p => p.TalkLongTime).Sum() },
203
                             //monout = new { count = monoutlist.Count, totaltime = monoutlist.Select(p => p.TalkLongTime).Sum() },
203
                             //monout = new { count = monoutlist.Count, totaltime = monoutlist.Select(p => p.TalkLongTime).Sum() },
204
-                            dayin = new { count = dt1.Rows.Count>0?Int32.Parse(dt1.Rows[0]["count"].ToString()):0, totaltime = dt1.Rows.Count > 0 ? Int32.Parse(dt1.Rows[0]["longtime"].ToString()) : 0 },
205
-                            dayout = new { count = dt2.Rows.Count > 0 ? Int32.Parse(dt2.Rows[0]["count"].ToString()) : 0, totaltime = dt2.Rows.Count > 0 ? Int32.Parse(dt2.Rows[0]["longtime"].ToString()) : 0 },
206
-                            monin = new { count = dt3.Rows.Count > 0 ? Int32.Parse(dt3.Rows[0]["count"].ToString()) : 0, totaltime = dt3.Rows.Count > 0 ? Int32.Parse(dt3.Rows[0]["longtime"].ToString()) : 0 },
207
-                            monout = new { count = dt4.Rows.Count > 0 ? Int32.Parse(dt4.Rows[0]["count"].ToString()) : 0, totaltime = dt4.Rows.Count > 0 ? Int32.Parse(dt4.Rows[0]["longtime"].ToString()) : 0 },
204
+                            dayin = new { count = dt1.Rows.Count>0?Int32.Parse("0"+dt1.Rows[0]["count"].ToString()):0, totaltime = dt1.Rows.Count > 0 ? Int32.Parse("0" + dt1.Rows[0]["longtime"].ToString()) : 0 },
205
+                            dayout = new { count = dt2.Rows.Count > 0 ? Int32.Parse("0" + dt2.Rows[0]["count"].ToString()) : 0, totaltime = dt2.Rows.Count > 0 ? Int32.Parse("0" + dt2.Rows[0]["longtime"].ToString()) : 0 },
206
+                            monin = new { count = dt3.Rows.Count > 0 ? Int32.Parse("0" + dt3.Rows[0]["count"].ToString()) : 0, totaltime = dt3.Rows.Count > 0 ? Int32.Parse("0" + dt3.Rows[0]["longtime"].ToString()) : 0 },
207
+                            monout = new { count = dt4.Rows.Count > 0 ? Int32.Parse("0" + dt4.Rows[0]["count"].ToString()) : 0, totaltime = dt4.Rows.Count > 0 ? Int32.Parse("0" + dt4.Rows[0]["longtime"].ToString()) : 0 },
208
                             daynocon = daynocon
208
                             daynocon = daynocon
209
                         };
209
                         };
210
                         res = Success("成功", obj);
210
                         res = Success("成功", obj);
365
                         newcount = Int32.Parse(dt1.Compute("sum(count)", "").ToString());
365
                         newcount = Int32.Parse(dt1.Compute("sum(count)", "").ToString());
366
 
366
 
367
                         BLL.T_Bus_WorkOrder workbll = new BLL.T_Bus_WorkOrder();
367
                         BLL.T_Bus_WorkOrder workbll = new BLL.T_Bus_WorkOrder();
368
-                        string sql2 = "select CONVERT(varchar(10),F_RegDate, 23) date,count(1) count from T_Bus_WorkOrder with(nolock) where " + telwhere + " and F_RegDate>'" + (strDate + "-01") + "' group by CONVERT(varchar(10),F_RegDate, 23)";
368
+                        string sql2 = "select CONVERT(varchar(10),F_RegDate, 23) date,count(1) count from T_Bus_WorkOrder with(nolock) where " + workwhere + " and F_RegDate>'" + (strDate + "-01") + "' group by CONVERT(varchar(10),F_RegDate, 23)";
369
                         DataTable dt2 = DbHelperSQL.Query(sql2).Tables[0];
369
                         DataTable dt2 = DbHelperSQL.Query(sql2).Tables[0];
370
 
370
 
371
                         int[] teltotal = new int[days];
371
                         int[] teltotal = new int[days];

+ 1 - 1
API/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

38
                 {
38
                 {
39
                     if (roleid == 1)
39
                     if (roleid == 1)
40
                     {
40
                     {
41
-                        sql += " and UserCode='" + User.UserData["F_WorkNumber"] + "' ";
41
+                        sql += " and UserCode='" + User.UserData["F_UserCode"] + "' ";
42
                     }
42
                     }
43
                 }
43
                 }
44
 
44