|
|
@@ -368,7 +368,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
368
|
368
|
List<AddressBookDto> modellists = modelList.Select(x => new AddressBookDto()
|
|
369
|
369
|
{
|
|
370
|
370
|
F_UserId = x.F_UserId,
|
|
371
|
|
- NameOneCode = ChineseToPinYin.GetSpellOneCode(x.F_Name).ToUpper(), //姓名第一个字母
|
|
|
371
|
+ NameOneCode = ChineseToPinYin.Convert(x.F_Name).ToUpper(), //姓名第一个字母
|
|
372
|
372
|
F_Name = x.F_Name, //姓名
|
|
373
|
373
|
F_Sex = x.F_Sex, //性别
|
|
374
|
374
|
F_Address = x.F_Address, //地址
|
|
|
@@ -404,7 +404,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
404
|
404
|
var list = new List<AddressBookCodeDto>();
|
|
405
|
405
|
foreach (var item in modelListOrder)
|
|
406
|
406
|
{
|
|
407
|
|
- var modellist_olds = modellists.Where(y => y.NameOneCode == item.NameOneCode).ToList();
|
|
|
407
|
+ var modellist_olds = modellists.Where(y => (y.NameOneCode).Substring(0, 1) == item.NameOneCode).ToList();
|
|
408
|
408
|
|
|
409
|
409
|
list.Add(new AddressBookCodeDto
|
|
410
|
410
|
{
|