|
|
@@ -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
|
}
|