Kaynağa Gözat

会员管理调整

zhengbingbing 5 yıl önce
ebeveyn
işleme
2f7e178309

+ 1 - 1
代码/System.Model/T_Cus_VipInfo.cs

@@ -212,7 +212,7 @@ namespace System.Model
212 212
         /// <summary>
213 213
         /// 联系频次
214 214
         /// </summary>				
215
-        public string F_Contact { get; set; }
215
+        //public string F_Contact { get; set; }
216 216
         /// <summary>
217 217
         /// 会员类型
218 218
         /// </summary>				

+ 2 - 2
代码/System.Model/V_Cus_VipInfo.cs

@@ -138,9 +138,9 @@ namespace System.Model
138 138
         /// </summary>				
139 139
         public string F_Saleperson { get; set; }
140 140
         /// <summary>
141
-        /// 联系频次
141
+        /// 联系频次:根据销售负责人的外呼记录,针对某个客户的外呼次数
142 142
         /// </summary>				
143
-        public string F_Contact { get; set; }
143
+        public int F_Contact { get; set; }
144 144
         /// <summary>
145 145
         /// 会员类型
146 146
         /// </summary>				

+ 2 - 0
代码/System.Repositories/Cus_VIPInfoRepository.cs

@@ -22,6 +22,8 @@ namespace System.Repositories
22 22
                 if (item.F_Birthday != null)
23 23
                     newmodel.Birthday = item.F_Birthday.Value.ToString("yyyy-MM-dd");
24 24
 
25
+                newmodel.F_Contact = 0;
26
+
25 27
                 newlist.Add(newmodel);
26 28
             }
27 29
             PageData<V_Cus_VipInfo> pd = new PageData<V_Cus_VipInfo>();

+ 9 - 14
代码/TVShoppingCallCenter_ZLJ/Controllers/Customer/VIPInfoController.cs

@@ -49,7 +49,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
49 49
         /// <param name="pagesize"></param>
50 50
         /// <returns></returns>
51 51
         [HttpGet("getlistbypage")]
52
-        public async Task<IActionResult> GetListsByPageAsync(string keyword,string name,string phone,string type, string province,string city,string area,string town,string address,string birthday,string recommender,string saleperson,string contact, int pageindex = 1, int pagesize = 20)
52
+        public async Task<IActionResult> GetListsByPageAsync(string keyword,string name,string phone,string type, string province,string city,string area,string town,string address,string birthday,string recommender,string saleperson,int pageindex = 1, int pagesize = 20)
53 53
         {
54 54
             List<IConditionalModel> conModels = new List<IConditionalModel>();
55 55
             #region 条件筛选
@@ -108,10 +108,10 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
108 108
             {
109 109
                 conModels.Add(new ConditionalModel() { FieldName = "F_Saleperson", ConditionalType = ConditionalType.Like, FieldValue = saleperson });
110 110
             }
111
-            if (!string.IsNullOrEmpty(contact))
112
-            {
113
-                conModels.Add(new ConditionalModel() { FieldName = "F_Contact", ConditionalType = ConditionalType.Like, FieldValue = contact });
114
-            }
111
+            //if (!string.IsNullOrEmpty(contact))
112
+            //{
113
+            //    conModels.Add(new ConditionalModel() { FieldName = "F_Contact", ConditionalType = ConditionalType.Like, FieldValue = contact });
114
+            //}
115 115
             #endregion
116 116
             int recordCount = 0;
117 117
             var list = await _cus_vip_infoRepository.GetListViewByPage(conModels, new MyPageModel() { PageIndex = pageindex, PageSize = pagesize, PageCount = recordCount }, "F_CreateOn desc");
@@ -188,8 +188,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
188 188
             model.F_Score = input.score;
189 189
             model.F_Money = input.money;
190 190
             model.F_TotalScore = input.totalscore;
191
-            model.F_Saleperson = input.saleperson;
192
-            model.F_Contact = input.contact;
191
+            model.F_Saleperson = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Sid).Value; //"8000";input.saleperson;
193 192
             model.F_Type = input.type;
194 193
 
195 194
             model.F_CreateBy = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Sid).Value; //"8000";
@@ -256,8 +255,8 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
256 255
             model.F_Score = input.score;
257 256
             model.F_Money = input.money;
258 257
             model.F_TotalScore = input.totalscore;
259
-            model.F_Saleperson = input.saleperson;
260
-            model.F_Contact = input.contact;
258
+            //model.F_Saleperson = input.saleperson;
259
+            //model.F_Contact = input.contact;
261 260
             model.F_Type = input.type;
262 261
             bool b = await _cus_vip_infoRepository.Update(model);
263 262
             if (b)
@@ -404,7 +403,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
404 403
         [Authorize]
405 404
         [HttpGet("exportexcel")]
406 405
         [AllowAnonymous]
407
-        public async Task<IActionResult> ExportExcelAsync(string keyword, string name, string phone, string type, string province, string city, string area, string town, string address, string birthday, string recommender, string saleperson, string contact)
406
+        public async Task<IActionResult> ExportExcelAsync(string keyword, string name, string phone, string type, string province, string city, string area, string town, string address, string birthday, string recommender, string saleperson)
408 407
         {
409 408
             try
410 409
             {
@@ -466,10 +465,6 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
466 465
                 {
467 466
                     conModels.Add(new ConditionalModel() { FieldName = "F_Saleperson", ConditionalType = ConditionalType.Like, FieldValue = saleperson });
468 467
                 }
469
-                if (!string.IsNullOrEmpty(contact))
470
-                {
471
-                    conModels.Add(new ConditionalModel() { FieldName = "F_Contact", ConditionalType = ConditionalType.Like, FieldValue = contact });
472
-                }
473 468
                 #endregion
474 469
                 int recordCount = 0;
475 470
                 var list = await _cus_vip_infoRepository.GetListALL(conModels, "F_CreateOn desc");

+ 4 - 4
代码/TVShoppingCallCenter_ZLJ/Models/Inputs/VIPInfoInput.cs

@@ -24,7 +24,7 @@ namespace TVShoppingCallCenter_ZLJ.Models.Inputs
24 24
         /// <summary>
25 25
 		/// 年龄
26 26
         /// </summary>				
27
-        public int age { get; set; }
27
+        public int? age { get; set; }
28 28
         /// <summary>
29 29
         /// 手机号1
30 30
         /// </summary>				
@@ -66,13 +66,13 @@ namespace TVShoppingCallCenter_ZLJ.Models.Inputs
66 66
         /// </summary>				
67 67
         public decimal? totalscore { get; set; }
68 68
         /// <summary>
69
-        /// 销售负责人
69
+        /// 销售负责人即为建档人
70 70
         /// </summary>				
71
-        public string saleperson { get; set; } = "";
71
+        //public string saleperson { get; set; } = "";
72 72
         /// <summary>
73 73
         /// 联系频次
74 74
         /// </summary>				
75
-        public string contact { get; set; }
75
+        //public string contact { get; set; }
76 76
         /// <summary>
77 77
         /// 会员类型
78 78
         /// </summary>