浏览代码

消息提醒bug

zhengbingbing 6 年之前
父节点
当前提交
ecd98c6c62

+ 20 - 20
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/MsgController.cs

@@ -334,32 +334,32 @@ namespace CallCenterApi.Interface.Controllers
334 334
         {
335 335
             string usercode = CurrentUser.UserData.F_UserCode;
336 336
             //获取一个月内服务周期到期的客户信息
337
-            var cusbaseList = new BLL.T_Cus_CustomerBaseNew().GetModelList(" F_DeleteFlag=0 and DATEDIFF(month,F_CycleEnd,getdate())<=1 ");
337
+            //var cusbaseList = new BLL.T_Cus_CustomerBaseNew().GetModelList(" F_DeleteFlag=0 and DATEDIFF(month,F_CycleEnd,getdate())<=1 ");
338 338
             //获取一个月内当前登录工号的消息提醒
339
-            var msgList = new BLL.T_Msg_List().GetModelList(" ToUser='" + usercode + "'and IsDel=0 and DATEDIFF(month,CreateDate,getdate())<=1  ");
339
+            //var msgList = new BLL.T_Msg_List().GetModelList(" ToUser='" + usercode + "'and IsDel=0 and DATEDIFF(month,CreateDate,getdate())<=1  ");
340 340
             //获取一个月内的开票信息
341 341
             //var billList = new BLL.T_Wo_Bill().GetModelList(" F_State=0 and F_IsDel=0 and DATEDIFF(month,F_CreateOn,getdate())<=1 ");
342 342
 
343 343
             #region 服务周期到期客户消息
344
-            foreach (var cusbase in cusbaseList)
345
-            {
346
-                var msgnew = msgList.Where(m => m.ToID == cusbase.F_CustomerId && m.Type== (int)Model.MSGType.cusserver);
347
-                //若消息列表中不能存在该客户信息,则添加
348
-                if (msgnew.Count() > 0)
349
-                {
350
-                    continue;
351
-                }
352
-                Model.T_Msg_List msg = new Model.T_Msg_List();
353
-                msg.Type = (int)Model.MSGType.cusserver;//服务周期
354
-                msg.ToUser = usercode;
355
-                msg.ToID = cusbase.F_CustomerId;
356
-                msg.Detail = "客户编号为:“" + cusbase.F_CustomerCode + "”的客户服务周期即将到期,请及时处理!";
357
-                msg.State = 0;
358
-                msg.IsDel = 0;
359
-                msg.CreateDate = DateTime.Now;
344
+            //foreach (var cusbase in cusbaseList)
345
+            //{
346
+            //    var msgnew = msgList.Where(m => m.ToID == cusbase.F_CustomerId && m.Type== (int)Model.MSGType.cusserver);
347
+            //    //若消息列表中不能存在该客户信息,则添加
348
+            //    if (msgnew.Count() > 0)
349
+            //    {
350
+            //        continue;
351
+            //    }
352
+            //    Model.T_Msg_List msg = new Model.T_Msg_List();
353
+            //    msg.Type = (int)Model.MSGType.cusserver;//服务周期
354
+            //    msg.ToUser = usercode;
355
+            //    msg.ToID = cusbase.F_CustomerId;
356
+            //    msg.Detail = "客户编号为:“" + cusbase.F_CustomerCode + "”的客户服务周期即将到期,请及时处理!";
357
+            //    msg.State = 0;
358
+            //    msg.IsDel = 0;
359
+            //    msg.CreateDate = DateTime.Now;
360 360
 
361
-                new BLL.T_Msg_List().Add(msg);
362
-            }
361
+            //    new BLL.T_Msg_List().Add(msg);
362
+            //}
363 363
             #endregion
364 364
             #region 开票消息提醒
365 365
             //foreach (var billbase in billList)