Procházet zdrojové kódy

知识库bug修复;工单完结后向客户推送微信消息

zhengbingbing %!s(int64=6) %!d(string=před) roky
rodič
revize
e8090045c6

+ 5 - 15
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/knowledge/KnowledgeController.cs

@@ -212,21 +212,11 @@ namespace CallCenterApi.Interface.Controllers.knowledge
212 212
                             if (pModel != null)
213 213
                                 dModel.F_Expand1 = pModel.F_CategoryName;
214 214
                         }
215
-                        if (title.Trim() != "")
216
-                        {
217
-                            dModel.F_Title = title.Trim();
218
-                        }
219
-                        if (key.Trim() != "")
220
-                        {
221
-                            dModel.F_KeyWords = key.Trim();
222
-                        }
223
-                        if (con.Trim() != "")
224
-                        {
225
-                            dModel.F_Content = WebHelper.UrlDecode(con.Trim());
226
-                            dModel.F_Description = WebHelper.NoHtml(WebHelper.UrlDecode(con.Trim()));
227
-                        }
228
-                        if(!string.IsNullOrEmpty(fileids))
229
-                            dModel.F_Expand2 = fileids.Trim();
215
+                        dModel.F_Title = title.Trim();
216
+                        dModel.F_KeyWords = key.Trim();
217
+                        dModel.F_Content = WebHelper.UrlDecode(con.Trim());
218
+                        dModel.F_Description = WebHelper.NoHtml(WebHelper.UrlDecode(con.Trim()));
219
+                        dModel.F_Expand2 = fileids.Trim();
230 220
 
231 221
                         dModel.F_ModifyBy = CurrentUser.UserData.F_UserId;
232 222
                         dModel.F_ModifyOn = DateTime.Now;

+ 14 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -20,6 +20,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
20 20
         BLL.T_Sys_UserAccount sysUserAccountBll = new BLL.T_Sys_UserAccount();
21 21
         BLL.T_Sys_Department sysDeptBll = new BLL.T_Sys_Department();
22 22
         BLL.T_Sys_DictionaryValue dicvalueBll = new BLL.T_Sys_DictionaryValue();
23
+        BLL.T_Cus_CustomerBaseNew cusBll = new BLL.T_Cus_CustomerBaseNew();
23 24
 
24 25
         #region 工单状态
25 26
         public ActionResult GetWorkState()
@@ -2039,6 +2040,19 @@ namespace CallCenterApi.Interface.Controllers.workorder
2039 2040
                         sendwxmsg(model, lastUser.F_WxOpenId, nowUser, opt);
2040 2041
                 }
2041 2042
                 #endregion
2043
+                #region 办理完结向客户发送消息
2044
+                if(model.State == (int)EnumWorkOrderState.finish)
2045
+                {
2046
+                    if (model.CustomerID != null)
2047
+                    {
2048
+                        var cusmodel = cusBll.GetModel(model.CustomerID.Value);
2049
+                        if (cusmodel != null&&!string.IsNullOrEmpty(cusmodel.F_WxOpenId))
2050
+                        {
2051
+                            sendwxmsg(model, cusmodel.F_WxOpenId, nowUser, opt);
2052
+                        }
2053
+                    }
2054
+                }
2055
+                #endregion
2042 2056
                 #endregion
2043 2057
                 return true;
2044 2058
             }