Ver Código Fonte

字段调整

mengjie 5 anos atrás
pai
commit
2313dc313f

+ 4 - 0
代码/System.Model/T_Cus_VipInfo.cs

@@ -222,6 +222,10 @@ namespace System.Model
222 222
         /// 联系频次
223 223
         /// </summary>				
224 224
         public string F_Contact { get; set; }
225
+        /// <summary>
226
+        /// 会员类型
227
+        /// </summary>				
228
+        public string F_Type { get; set; }
225 229
         #endregion Model
226 230
     }
227 231
 }

+ 6 - 4
代码/TVShoppingCallCenter_ZLJ/Controllers/Customer/VIPInfoController.cs

@@ -41,7 +41,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
41 41
         /// <param name="pagesize"></param>
42 42
         /// <returns></returns>
43 43
         [HttpGet("getlistbypage")]
44
-        public async Task<IActionResult> GetListsByPageAsync(string keyword,string name,string phone,string label,string province,string city,string area,string town,string address,string birthday,string recommender,string saleperson,string contact, int pageindex = 1, int pagesize = 20)
44
+        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)
45 45
         {
46 46
             List<IConditionalModel> conModels = new List<IConditionalModel>();
47 47
             #region 条件筛选
@@ -62,13 +62,13 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
62 62
             {
63 63
                 conModels.Add(new ConditionalModel() { FieldName = "F_Name", ConditionalType = ConditionalType.Like, FieldValue = name });
64 64
             }
65
-            if (!string.IsNullOrEmpty(label))
65
+            if (!string.IsNullOrEmpty(type))
66 66
             {
67
-                conModels.Add(new ConditionalModel() { FieldName = "F_Label", ConditionalType = ConditionalType.Like, FieldValue = label });
67
+                conModels.Add(new ConditionalModel() { FieldName = "F_Type", ConditionalType = ConditionalType.Like, FieldValue = type });
68 68
             }
69 69
             if (!string.IsNullOrEmpty(province))
70 70
             {
71
-                conModels.Add(new ConditionalModel() { FieldName = "F_Province", ConditionalType = ConditionalType.Like, FieldValue = priovince });
71
+                conModels.Add(new ConditionalModel() { FieldName = "F_Province", ConditionalType = ConditionalType.Like, FieldValue = province });
72 72
             }
73 73
 
74 74
             if (!string.IsNullOrEmpty(city))
@@ -178,6 +178,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
178 178
             model.F_TotalScore = input.totalscore;
179 179
             model.F_Saleperson = input.saleperson;
180 180
             model.F_Contact = input.contact;
181
+            model.F_Type = input.type;
181 182
 
182 183
             if (await _cus_vip_infoRepository.GetCount(x => x.F_VIPCode == model.F_VIPCode && x.F_Name == input.name) > 0)
183 184
             {
@@ -237,6 +238,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Customer
237 238
             model.F_TotalScore = input.totalscore;
238 239
             model.F_Saleperson = input.saleperson;
239 240
             model.F_Contact = input.contact;
241
+            model.F_Type = input.type;
240 242
             bool b = await _cus_vip_infoRepository.Update(model);
241 243
             if (b)
242 244
                 return Success("修改成功");

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

@@ -73,5 +73,9 @@ namespace TVShoppingCallCenter_ZLJ.Models.Inputs
73 73
         /// 联系频次
74 74
         /// </summary>				
75 75
         public string contact { get; set; }
76
+        /// <summary>
77
+        /// 会员类型
78
+        /// </summary>				
79
+        public string type { get; set; }
76 80
     }
77 81
 }