|
|
@@ -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");
|