瀏覽代碼

屏蔽互斥首台逻辑

lichunlei 2 年之前
父節點
當前提交
c575aee69c

+ 30 - 30
AppStart/Helper/SycnSpServer/SycnSpMerchantService.cs

@@ -59,36 +59,36 @@ namespace MySystem
                                 PxcModels.PosMerchantInfo add = db.PosMerchantInfo.FirstOrDefault(m => m.KqMerNo == Mer.MerNo);
                                 if (add == null)
                                 {
-                                    int IsFirst = 0;
-                                    if(!string.IsNullOrEmpty(Mer.MerIdcardNo))
-                                    {
-                                        string startNo = Mer.MerIdcardNo.Substring(0, 6);
-                                        string endNo = Mer.MerIdcardNo.Substring(14, 4);
-                                        string Name = Mer.MerName;
-                                        if (Mer.ProductType == "2")
-                                        {
-                                            if (Name.Contains("-"))
-                                            {
-                                                Name = Name.Split('-')[1];
-                                            }
-                                            else if (Name.Contains("_"))
-                                            {
-                                                Name = Name.Split('_')[1];
-                                            }
-                                        }
-                                        else if (Mer.ProductType == "4")
-                                        {
-                                            Name = Mer.SeoTitle;
-                                        }
-                                        Name = Name.Replace("个体户", "");
-                                        Name = Name.Replace("个体商户", "");
-                                        bool check = db.PosMerchantInfo.Any(m => m.MerIdcardNo.StartsWith(startNo) && m.MerIdcardNo.EndsWith(endNo) && m.MerRealName.Contains(Name));
-                                        if(!check)
-                                        {
-                                            IsFirst = 1;
-                                        }
-                                        pos.IsFirst = IsFirst;
-                                    }
+                                    // int IsFirst = 0;
+                                    // if(!string.IsNullOrEmpty(Mer.MerIdcardNo))
+                                    // {
+                                    //     string startNo = Mer.MerIdcardNo.Substring(0, 6);
+                                    //     string endNo = Mer.MerIdcardNo.Substring(14, 4);
+                                    //     string Name = Mer.MerName;
+                                    //     if (Mer.ProductType == "2")
+                                    //     {
+                                    //         if (Name.Contains("-"))
+                                    //         {
+                                    //             Name = Name.Split('-')[1];
+                                    //         }
+                                    //         else if (Name.Contains("_"))
+                                    //         {
+                                    //             Name = Name.Split('_')[1];
+                                    //         }
+                                    //     }
+                                    //     else if (Mer.ProductType == "4")
+                                    //     {
+                                    //         Name = Mer.SeoTitle;
+                                    //     }
+                                    //     Name = Name.Replace("个体户", "");
+                                    //     Name = Name.Replace("个体商户", "");
+                                    //     bool check = db.PosMerchantInfo.Any(m => m.MerIdcardNo.StartsWith(startNo) && m.MerIdcardNo.EndsWith(endNo) && m.MerRealName.Contains(Name));
+                                    //     if(!check)
+                                    //     {
+                                    //         IsFirst = 1;
+                                    //     }
+                                    //     pos.IsFirst = IsFirst;
+                                    // }
                                     add = db.PosMerchantInfo.Add(new PxcModels.PosMerchantInfo()
                                     {
                                         CreateDate = Mer.CreateTime,

+ 2 - 1
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -184,7 +184,8 @@ namespace MySystem
                                         {
                                             ulong MerHelpFlag = 0;
                                             decimal DepositAmt = decimal.Parse(function.CheckNum(pos.SeoKeyword));
-                                            if (DepositAmt > 0 && pos.IsFirst == 1)
+                                            // if (DepositAmt > 0 && pos.IsFirst == 1)
+                                            if (DepositAmt > 0)
                                             {
                                                 int Days = int.Parse(RedisDbconn.Instance.Get<string>("pobjrule:" + pos.BrandId + ":HelpPolicy:Days")); //天数
                                                 if (pos.BindingTime != null)