瀏覽代碼

会员管理调整

zhengbingbing 5 年之前
父節點
當前提交
2f7e178309

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

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

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

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

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

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

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

49
         /// <param name="pagesize"></param>
49
         /// <param name="pagesize"></param>
50
         /// <returns></returns>
50
         /// <returns></returns>
51
         [HttpGet("getlistbypage")]
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
             List<IConditionalModel> conModels = new List<IConditionalModel>();
54
             List<IConditionalModel> conModels = new List<IConditionalModel>();
55
             #region 条件筛选
55
             #region 条件筛选
108
             {
108
             {
109
                 conModels.Add(new ConditionalModel() { FieldName = "F_Saleperson", ConditionalType = ConditionalType.Like, FieldValue = saleperson });
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
             #endregion
115
             #endregion
116
             int recordCount = 0;
116
             int recordCount = 0;
117
             var list = await _cus_vip_infoRepository.GetListViewByPage(conModels, new MyPageModel() { PageIndex = pageindex, PageSize = pagesize, PageCount = recordCount }, "F_CreateOn desc");
117
             var list = await _cus_vip_infoRepository.GetListViewByPage(conModels, new MyPageModel() { PageIndex = pageindex, PageSize = pagesize, PageCount = recordCount }, "F_CreateOn desc");
188
             model.F_Score = input.score;
188
             model.F_Score = input.score;
189
             model.F_Money = input.money;
189
             model.F_Money = input.money;
190
             model.F_TotalScore = input.totalscore;
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
             model.F_Type = input.type;
192
             model.F_Type = input.type;
194
 
193
 
195
             model.F_CreateBy = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Sid).Value; //"8000";
194
             model.F_CreateBy = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Sid).Value; //"8000";
256
             model.F_Score = input.score;
255
             model.F_Score = input.score;
257
             model.F_Money = input.money;
256
             model.F_Money = input.money;
258
             model.F_TotalScore = input.totalscore;
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
             model.F_Type = input.type;
260
             model.F_Type = input.type;
262
             bool b = await _cus_vip_infoRepository.Update(model);
261
             bool b = await _cus_vip_infoRepository.Update(model);
263
             if (b)
262
             if (b)
404
         [Authorize]
403
         [Authorize]
405
         [HttpGet("exportexcel")]
404
         [HttpGet("exportexcel")]
406
         [AllowAnonymous]
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
             try
408
             try
410
             {
409
             {
466
                 {
465
                 {
467
                     conModels.Add(new ConditionalModel() { FieldName = "F_Saleperson", ConditionalType = ConditionalType.Like, FieldValue = saleperson });
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
                 #endregion
468
                 #endregion
474
                 int recordCount = 0;
469
                 int recordCount = 0;
475
                 var list = await _cus_vip_infoRepository.GetListALL(conModels, "F_CreateOn desc");
470
                 var list = await _cus_vip_infoRepository.GetListALL(conModels, "F_CreateOn desc");

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

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