lcl 2 年之前
父节点
当前提交
69748dcc68
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

+ 13 - 0
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -212,6 +212,19 @@ namespace MySystem
                                                 {
                                                     merchant.MerchantMobile = trade.Field1; //商户手机号
                                                 }
+                                                if(!string.IsNullOrEmpty(merchant.MerIdcardNo))
+                                                {
+                                                    string startNo = merchant.MerIdcardNo.Substring(0, 6);
+                                                    string endNo = merchant.MerIdcardNo.Substring(merchant.MerIdcardNo.Length - 4, 4).ToUpper();
+                                                    string Name = merchant.MerchantName;
+                                                    Name = Name.Replace("*", "");
+                                                    function.WriteLog(DateTime.Now.ToString() + "-----startNo:" + startNo + ",endNo:" + endNo + ",Name:" + Name, "监控机具是否互斥");
+                                                    bool chk = db.PosMerchantInfo.Any(m => m.MerIdcardNo.StartsWith(startNo) && m.MerIdcardNo.EndsWith(endNo) && m.MerchantName.Contains(Name));
+                                                    if(chk)
+                                                    {
+                                                        pos.IsFirst = 0;
+                                                    }
+                                                }
                                                 db.SaveChanges();
                                             }
                                         }