|
|
@@ -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("修改成功");
|