Browse Source

商户登录显示的通道列表,删除未签约的

lcl 1 year ago
parent
commit
f73bdb8644
1 changed files with 14 additions and 6 deletions
  1. 14 6
      Services/MerchantAccountLinkInfoService.cs

+ 14 - 6
Services/MerchantAccountLinkInfoService.cs

@@ -41,17 +41,25 @@ namespace MySystem
                 if(item.Kind == 1)
                 {
                     var merchant = new MerchantAddInfoService().Query(item.MerchantId);
-                    row.Add("MerchantId", merchant.Id);
-                    row.Add("MerchantName", merchant.CertMerchantName);
+                    if(merchant.Status == 2 || merchant.QueryCount == 2)
+                    {
+                        row.Add("MerchantId", merchant.Id);
+                        row.Add("MerchantName", merchant.CertMerchantName);
+                        row.Add("Kind", item.Kind);
+                        diclist.Add(row);
+                    }
                 }
                 else
                 {
                     var merchant = new MerchantAddInfo2Service().Query(item.MerchantId);
-                    row.Add("MerchantId", merchant.Id);
-                    row.Add("MerchantName", merchant.CertMerchantName);
+                    if(merchant.Status == 2 || merchant.QueryCount == 2)
+                    {
+                        row.Add("MerchantId", merchant.Id);
+                        row.Add("MerchantName", merchant.CertMerchantName);
+                        row.Add("Kind", item.Kind);
+                        diclist.Add(row);
+                    }
                 }
-                row.Add("Kind", item.Kind);
-                diclist.Add(row);
             }
             db.Dispose();
             return diclist;