|
|
@@ -1103,7 +1103,8 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
if (mer.Id > 0 && !string.IsNullOrEmpty(mer.MerIdcardNo))
|
|
|
{
|
|
|
string MerchantName = Regex.Replace(mer.MerchantName, @"\d|\W|[A-Za-z]", "");
|
|
|
- var posMerchants = db.PosMerchantInfo.Where(m => m.MerIdcardNo.ToUpper().StartsWith(mer.MerIdcardNo.ToUpper().Substring(0, 6)) && m.MerIdcardNo.ToUpper().EndsWith(mer.MerIdcardNo.ToUpper().Substring(mer.MerIdcardNo.Length - 4, 4)) && m.MerchantName.Contains(MerchantName)).ToList();
|
|
|
+ // var posMerchants = db.PosMerchantInfo.Where(m => m.MerIdcardNo.ToUpper().StartsWith(mer.MerIdcardNo.ToUpper().Substring(0, 6)) && m.MerIdcardNo.ToUpper().EndsWith(mer.MerIdcardNo.ToUpper().Substring(mer.MerIdcardNo.Length - 4, 4)) && m.MerchantName.Contains(MerchantName)).ToList();
|
|
|
+ var posMerchants = db.PosMerchantInfo.Where(m => m.MerchantName.Contains(MerchantName)).ToList();
|
|
|
foreach (var item in posMerchants)
|
|
|
{
|
|
|
Dictionary<string, object> curData = new Dictionary<string, object>();
|