Przeglądaj źródła

延期工单筛选修改,上下班时间增加坐席,坐席增加省市

duhongyu 6 lat temu
rodzic
commit
12154a1ce3

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_SMS_RecvSMS.cs

@@ -52,7 +52,7 @@ namespace CallCenterApi.DAL
52 52
             SqlParameter[] parameters = {
53 53
                      new SqlParameter("@RecvModemIMEI", SqlDbType.VarChar,20) ,
54 54
                         new SqlParameter("@CallerNum", SqlDbType.VarChar,20) ,
55
-                        new SqlParameter("@Content", SqlDbType.NVarChar,100) ,
55
+                        new SqlParameter("@Content", SqlDbType.NVarChar,200) ,
56 56
                         new SqlParameter("@RecvTime", SqlDbType.DateTime) ,
57 57
                         new SqlParameter("@F_UserID", SqlDbType.Int,4) ,
58 58
                         new SqlParameter("@F_CustomerID", SqlDbType.Int,4) ,
@@ -106,7 +106,7 @@ namespace CallCenterApi.DAL
106 106
                         new SqlParameter("@SMSID", SqlDbType.Int,4) ,
107 107
                          new SqlParameter("@RecvModemIMEI", SqlDbType.VarChar,20) ,
108 108
                         new SqlParameter("@CallerNum", SqlDbType.VarChar,20) ,
109
-                        new SqlParameter("@Content", SqlDbType.NVarChar,100) ,
109
+                        new SqlParameter("@Content", SqlDbType.NVarChar,200) ,
110 110
                         new SqlParameter("@RecvTime", SqlDbType.DateTime) ,
111 111
                         new SqlParameter("@F_UserID", SqlDbType.Int,4) ,
112 112
                         new SqlParameter("@F_CustomerID", SqlDbType.Int,4) ,

+ 15 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_SeatGroup.cs

@@ -26,9 +26,9 @@ namespace CallCenterApi.DAL
26 26
         {
27 27
             StringBuilder strSql = new StringBuilder();
28 28
             strSql.Append("insert into T_Sys_SeatGroup(");
29
-            strSql.Append("F_ZXZCode,F_ZXZName,F_IVRKey,F_WHBDKey,F_WHWDKey,F_ZXAtt,F_Des,F_CreateTime,F_CreateBy,F_CreateByName)");
29
+            strSql.Append("F_ZXZCode,F_ZXZName,F_IVRKey,F_WHBDKey,F_WHWDKey,F_ZXAtt,F_Des,F_CreateTime,F_CreateBy,F_CreateByName,F_Region)");
30 30
             strSql.Append(" values (");
31
-            strSql.Append("@F_ZXZCode,@F_ZXZName,@F_IVRKey,@F_WHBDKey,@F_WHWDKey,@F_ZXAtt,@F_Des,@F_CreateTime,@F_CreateBy,@F_CreateByName)");
31
+            strSql.Append("@F_ZXZCode,@F_ZXZName,@F_IVRKey,@F_WHBDKey,@F_WHWDKey,@F_ZXAtt,@F_Des,@F_CreateTime,@F_CreateBy,@F_CreateByName,@F_Region)");
32 32
             strSql.Append(";select @@IDENTITY");
33 33
             SqlParameter[] parameters = {
34 34
                     new SqlParameter("@F_ZXZCode", SqlDbType.NVarChar,50),
@@ -40,6 +40,7 @@ namespace CallCenterApi.DAL
40 40
                     new SqlParameter("@F_Des", SqlDbType.NText),
41 41
                     new SqlParameter("@F_CreateTime", SqlDbType.DateTime),
42 42
                     new SqlParameter("@F_CreateBy", SqlDbType.Int,4),
43
+                     new SqlParameter("@F_Region", SqlDbType.NVarChar,500),
43 44
                     new SqlParameter("@F_CreateByName", SqlDbType.NVarChar,50)};
44 45
             parameters[0].Value = model.F_ZXZCode;
45 46
             parameters[1].Value = model.F_ZXZName;
@@ -50,7 +51,8 @@ namespace CallCenterApi.DAL
50 51
             parameters[6].Value = model.F_Des;
51 52
             parameters[7].Value = model.F_CreateTime;
52 53
             parameters[8].Value = model.F_CreateBy;
53
-            parameters[9].Value = model.F_CreateByName;
54
+            parameters[9].Value = model.F_Region;
55
+            parameters[10].Value = model.F_CreateByName;
54 56
 
55 57
             object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
56 58
             if (obj == null)
@@ -78,6 +80,7 @@ namespace CallCenterApi.DAL
78 80
             strSql.Append("F_Des=@F_Des,");
79 81
             strSql.Append("F_CreateTime=@F_CreateTime,");
80 82
             strSql.Append("F_CreateBy=@F_CreateBy,");
83
+            strSql.Append("F_Region=@F_Region,");
81 84
             strSql.Append("F_CreateByName=@F_CreateByName");
82 85
             strSql.Append(" where F_ZXZID=@F_ZXZID");
83 86
             SqlParameter[] parameters = {
@@ -90,6 +93,7 @@ namespace CallCenterApi.DAL
90 93
                     new SqlParameter("@F_Des", SqlDbType.NText),
91 94
                     new SqlParameter("@F_CreateTime", SqlDbType.DateTime),
92 95
                     new SqlParameter("@F_CreateBy", SqlDbType.Int,4),
96
+                     new SqlParameter("@F_Region", SqlDbType.NVarChar,500),
93 97
                     new SqlParameter("@F_CreateByName", SqlDbType.NVarChar,50),
94 98
                     new SqlParameter("@F_ZXZID", SqlDbType.Int,4)};
95 99
             parameters[0].Value = model.F_ZXZCode;
@@ -101,8 +105,9 @@ namespace CallCenterApi.DAL
101 105
             parameters[6].Value = model.F_Des;
102 106
             parameters[7].Value = model.F_CreateTime;
103 107
             parameters[8].Value = model.F_CreateBy;
104
-            parameters[9].Value = model.F_CreateByName;
105
-            parameters[10].Value = model.F_ZXZID;
108
+            parameters[9].Value = model.F_Region;
109
+            parameters[10].Value = model.F_CreateByName;
110
+            parameters[11].Value = model.F_ZXZID;
106 111
 
107 112
             int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
108 113
             if (rows > 0)
@@ -166,7 +171,7 @@ namespace CallCenterApi.DAL
166 171
         {
167 172
 
168 173
             StringBuilder strSql = new StringBuilder();
169
-            strSql.Append("select  top 1 F_ZXZID,F_ZXZCode,F_ZXZName,F_IVRKey,F_WHBDKey,F_WHWDKey,F_ZXAtt,F_Des,F_CreateTime,F_CreateBy,F_CreateByName from T_Sys_SeatGroup ");
174
+            strSql.Append("select  top 1 F_ZXZID,F_ZXZCode,F_ZXZName,F_IVRKey,F_WHBDKey,F_WHWDKey,F_ZXAtt,F_Des,F_CreateTime,F_CreateBy,F_CreateByName ,F_Region from T_Sys_SeatGroup ");
170 175
             strSql.Append(" where F_ZXZID=@F_ZXZID");
171 176
             SqlParameter[] parameters = {
172 177
                     new SqlParameter("@F_ZXZID", SqlDbType.Int,4)
@@ -238,6 +243,10 @@ namespace CallCenterApi.DAL
238 243
                 {
239 244
                     model.F_CreateByName = row["F_CreateByName"].ToString();
240 245
                 }
246
+                if (row["F_Region"] != null)
247
+                {
248
+                    model.F_Region = row["F_Region"].ToString();
249
+                }
241 250
             }
242 251
             return model;
243 252
         }

+ 3 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SMSController.cs

@@ -143,7 +143,7 @@ namespace CallCenterApi.Interface.Controllers
143 143
             public string RecvTime;
144 144
 
145 145
         }
146
-        public bool AddSmS(string tel, string cont, int F_UserID)
146
+        public bool AddSmS(string tel, string cont, int F_UserID,string RecvModemIMEI="")
147 147
         {
148 148
             Model.T_SMS_RecvSMS dModel = new Model.T_SMS_RecvSMS();
149 149
             dModel.CallerNum = tel.Trim();
@@ -380,8 +380,9 @@ namespace CallCenterApi.Interface.Controllers
380 380
                                     try
381 381
                                     {
382 382
                                         model.F_SMSReply = int.Parse(replyResult.replys[i].text);
383
+                                        AddSmS(replyResult.replys[i].mobile, replyResult.replys[i].text, 0,"1");
383 384
                                         workOrder.Update(model);
384
-                                        string msg = "【心连心客服中心】心连心感谢您的评价,祝你生活愉快!";
385
+                                        string msg = "【心连心客服中心】您好,心连心感谢您的评价,祝您生活愉快!";
385 386
                                         SMSSingleshot(replyResult.replys[i].mobile, msg);
386 387
                                         string mag = "心连心感谢您的评价,祝你生活愉快!";
387 388
                                         AddSmS(replyResult.replys[i].mobile, mag, 0);

+ 4 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SeatGroupController.cs

@@ -149,6 +149,8 @@ namespace CallCenterApi.Interface.Controllers
149 149
                     sModel.F_IVRKey = input.IVRKey;
150 150
                 if (input.Des != null)
151 151
                     sModel.F_Des = input.Des.Trim();
152
+                if (input.Region  != null)
153
+                    sModel.F_Region = input.Region.Trim();
152 154
                 if (!Validate.IsNumber(input.WHWDKey.ToString()))
153 155
                 {
154 156
                     res = Error("外呼外地前缀必须为数字");
@@ -204,7 +206,8 @@ namespace CallCenterApi.Interface.Controllers
204 206
                     sModel.F_IVRKey = input.IVRKey;
205 207
                 if (input.Des != null)
206 208
                     sModel.F_Des = input.Des.Trim();
207
-
209
+                if (input.Region != null)
210
+                    sModel.F_Region = input.Region.Trim();
208 211
                 if (seatBLL.Update(sModel))
209 212
                     return Success("编辑成功");
210 213
                 return Error("编辑失败");

+ 43 - 8
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/WorkcalendarController.cs

@@ -161,12 +161,13 @@ namespace CallCenterApi.Interface.Controllers.tel
161 161
                 pageindex,
162 162
                 true,
163 163
                 out recordCount);
164
-
164
+            List<Model.T_Sys_WorkTimes> modlelist = new BLL.T_Sys_WorkTimes().DataTableToList(dt);
165
+            List<Model.T_Sys_WorkTimes> Input = modeltooip(modlelist);
165 166
             var obj = new
166 167
             {
167 168
                 state = "success",
168 169
                 message = "成功",
169
-                rows = dt,
170
+                rows = Input,
170 171
                 total = recordCount
171 172
             };
172 173
 
@@ -175,9 +176,43 @@ namespace CallCenterApi.Interface.Controllers.tel
175 176
             //}
176 177
             //return res;
177 178
         }
178
-
179
-        //获取某一条时间段信息
180
-        public ActionResult GetTimes(string id)
179
+        private List<Model.T_Sys_WorkTimes> modeltooip(List<Model.T_Sys_WorkTimes> model1)
180
+        {
181
+            List<Model.T_Sys_WorkTimes> WorkTimes = new List<Model.T_Sys_WorkTimes>();
182
+            foreach (var it in model1)
183
+            {
184
+                string msg = "";
185
+                if (!string .IsNullOrEmpty (it .F_GroupCode))
186
+                {
187
+                    var GroupIDList = it.F_GroupCode.Split('|');
188
+                    if (GroupIDList.Length > 0)
189
+                    {
190
+                        foreach (var iv in GroupIDList)
191
+                        {
192
+                            Model.T_Sys_SeatGroup sm = new BLL.T_Sys_SeatGroup().GetModel(int.Parse(iv));
193
+                            if (sm != null)
194
+                            {
195
+                                if (msg!="")
196
+                                {
197
+                                    msg += "|" + sm.F_ZXZName;
198
+                                }
199
+                                else
200
+                                {
201
+                                    msg += sm.F_ZXZName;
202
+                                }
203
+                                
204
+                            }
205
+                        }
206
+                    }
207
+                    it.F_GroupCode = msg;
208
+                    WorkTimes.Add(it);
209
+                }
210
+               
211
+            }
212
+            return WorkTimes;
213
+        }
214
+            //获取某一条时间段信息
215
+            public ActionResult GetTimes(string id)
181 216
         {
182 217
             ActionResult res = NoToken("未知错误,请重新登录");
183 218
             if (Request.IsAuthenticated)
@@ -207,7 +242,7 @@ namespace CallCenterApi.Interface.Controllers.tel
207 242
         }
208 243
 
209 244
         //添加/修改上班时间段
210
-        public ActionResult AddTimes(string workid, string workstart, string workend, string timename, string remark, string holidayscode = "")
245
+        public ActionResult AddTimes(string workid, string workstart, string workend, string timename, string remark, string groupcode,string holidayscode = "")
211 246
         {
212 247
             if (Request.IsAuthenticated)
213 248
             {
@@ -231,7 +266,7 @@ namespace CallCenterApi.Interface.Controllers.tel
231 266
                                     dModel.F_HolidaysCode = holidayscode;
232 267
                                     dModel.F_Name = timename.Trim();
233 268
                                     dModel.F_Remark = remark.Trim();
234
-
269
+                                    dModel .F_GroupCode = groupcode.Trim();
235 270
                                     bool b = dBLL.Update(dModel);
236 271
                                     if (b)
237 272
                                     {
@@ -252,7 +287,7 @@ namespace CallCenterApi.Interface.Controllers.tel
252 287
                             _model.F_Name = timename.Trim();
253 288
                             _model.F_Remark = remark.Trim();
254 289
                             _model.F_HolidaysCode = holidayscode.Trim();
255
-                            _model.F_GroupCode = ua.groupcode;
290
+                            _model.F_GroupCode = groupcode.Trim();
256 291
                             _model.F_CreateUser = ua.F_UserCode;
257 292
                             _model.F_CreateTime = DateTime.Now;
258 293
 

+ 9 - 7
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -348,6 +348,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
348 348
                         {
349 349
                             return Success("无操作权限"); ;
350 350
                         }
351
+                        sql += "and F_State !=11 and F_State !=10";
351 352
                         break;
352 353
                     case 12://微信未通过工单
353 354
                         if (ro.F_RoleCode == "JDYPTZX" || ro.F_RoleCode == "JDYBZZX" || ro.F_RoleCode == "XTGLY")
@@ -851,6 +852,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
851 852
                             if (ro.F_RoleCode == "JDYPTZX" || ro.F_RoleCode == "JDYBZZX" || ro.F_RoleCode == "XTGLY")
852 853
                             {
853 854
                                 sql += $" and F_ID in(" + GetDelay() + ")";
855
+                                sql += "and F_State !=11 and F_State !=10";
854 856
                             }
855 857
                             else
856 858
                             {
@@ -5741,7 +5743,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
5741 5743
         /// <param name="input"></param>
5742 5744
         /// <returns></returns>
5743 5745
         [Authority]
5744
-        public ActionResult ReturnvisitOrder(long orderid, string cont, string reason, string call ,string F_VisitRemarks,int  isOver=0)
5746
+        public ActionResult ReturnvisitOrder(long orderid, string cont, string reason, string call ,string F_VisitRemarks,int  isOver=0, int sms = 0)
5745 5747
         {
5746 5748
             int userId = CurrentUser.UserData.F_UserId;
5747 5749
             if (userId != 0)
@@ -5753,7 +5755,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
5753 5755
                     //验证信息
5754 5756
                     if (model != null)
5755 5757
                     {
5756
-                        var res = Retu(ua, model, cont, reason, F_VisitRemarks, call, isOver);
5758
+                        var res = Retu(ua, model, cont, reason, F_VisitRemarks, call, isOver, sms);
5757 5759
                         if (res)
5758 5760
                             return Success("回访成功");
5759 5761
                         else
@@ -6039,7 +6041,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
6039 6041
           
6040 6042
             string sid = "";
6041 6043
             var opt = "回访";
6042
-            string smscont = "为更好的为你提供服务,请你对我们的服务进行评价,满意请按1,一般请按2,不满意请按3.";
6044
+            string smscont = "您好,您的反馈公司已安排人员给予解决,请您对我们的服务进行评价,满意请回复1,一般请回复2,不满意请回复3。谢谢!";
6043 6045
             int optbut = (int)EnumItemOpt.visit;
6044 6046
             int wostate = (int)EnumWorkOrderState.evaluate;
6045 6047
             if (isOver==0)
@@ -6052,7 +6054,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
6052 6054
                 {
6053 6055
                     if (!string.IsNullOrEmpty(model.F_CusPhone.Trim () ))
6054 6056
                     {
6055
-                        string msg = "【心连心客服中心】为更好的为你提供服务,请你对我们的服务进行评价,满意请按1,一般请按2,不满意请按3.";
6057
+                        string msg = "【心连心客服中心】您好,您的反馈公司已安排人员给予解决,请您对我们的服务进行评价,满意请回复1,一般请回复2,不满意请回复3。谢谢!";
6056 6058
                         SmsSingleSenderResult result = new SMSController().SMSSingleshot(model.F_CusPhone.Trim(), msg);
6057 6059
                         bool n = new SMSController().AddSmS(model.F_CusPhone, smscont, nowUser.F_UserId);
6058 6060
                         if (result !=null )
@@ -6434,7 +6436,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
6434 6436
                 smscont = "建议";
6435 6437
             }
6436 6438
             string[] mag = { smscont };
6437
-            string smsmsg= "你有一条新的" + smscont + "工单,请及时处理";
6439
+            string smsmsg= "您好,您有一条新的" + smscont + "工单,请及时接单处理!";
6438 6440
            
6439 6441
             string touser = ""; string tousername = "";
6440 6442
 
@@ -6454,7 +6456,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
6454 6456
                         if (!string .IsNullOrEmpty (clus.F_Mobile.Trim ()))
6455 6457
                         {
6456 6458
                           
6457
-                            SmsSingleSenderResult result = new SMSController().SMSSingleshot(395191, mag, clus.F_Mobile.Trim());
6459
+                            SmsSingleSenderResult result = new SMSController().SMSSingleshot(445305, mag, clus.F_Mobile.Trim());
6458 6460
                             bool n = new SMSController().AddSmS(clus.F_Mobile.Trim(), smsmsg, nowUser.F_UserId);
6459 6461
                         }
6460 6462
                         
@@ -6483,7 +6485,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
6483 6485
                     {
6484 6486
                         if (!string.IsNullOrEmpty(l.F_Mobile.Trim ()))
6485 6487
                         {
6486
-                            SmsSingleSenderResult result = new SMSController().SMSSingleshot(395191, mag,l.F_Mobile.Trim());
6488
+                            SmsSingleSenderResult result = new SMSController().SMSSingleshot(445305, mag,l.F_Mobile.Trim());
6487 6489
                             bool n = new SMSController().AddSmS(l.F_Mobile.Trim(), smsmsg, nowUser.F_UserId);
6488 6490
                         }
6489 6491
 

+ 8 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Models/Input/SeatGroupInput.cs

@@ -71,5 +71,13 @@ namespace CallCenterApi.Interface.Models.Input
71 71
             set;
72 72
             get;
73 73
         }
74
+        /// <summary>
75
+        /// 描述说明
76
+        /// </summary>
77
+        public string Region
78
+        {
79
+            set;
80
+            get;
81
+        }
74 82
     }
75 83
 }

+ 9 - 0
codegit/CallCenterApi/CallCenterApi.Model/T_Sys_SeatGroup.cs

@@ -26,6 +26,15 @@ namespace CallCenterApi.Model
26 26
         private DateTime? _f_createtime;
27 27
         private int? _f_createby;
28 28
         private string _f_createbyname;
29
+        private string _f_region;
30
+        /// <summary>
31
+        /// 地区
32
+        /// </summary>
33
+        public string F_Region
34
+        {
35
+            set { _f_region = value; }
36
+            get { return _f_region; }
37
+        }
29 38
         /// <summary>
30 39
         /// 
31 40
         /// </summary>