Sfoglia il codice sorgente

商户进件去重添加银联BrandId区分

DuGuYang 6 mesi fa
parent
commit
1a6f488c8e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Areas/Api/Controllers/Main/MerchantAddInfoController.cs

+ 1 - 1
Areas/Api/Controllers/Main/MerchantAddInfoController.cs

@@ -205,7 +205,7 @@ namespace MySystem.Areas.Api.Controllers.v1
                 if (SubjectType == "SUBJECT_TYPE_SMALL")
                 {
                     // CertMerchantName += function.MD5_16(Guid.NewGuid().ToString("N"));
-                    var check = MerchantAddInfoService.Query(" CertMerchantName like '" + CertMerchantName + "%' and Status<1 and QueryCount<1");
+                    var check = MerchantAddInfoService.Query(" CertMerchantName like '" + CertMerchantName + "%' and Status<1 and QueryCount<1 and BrandId=" + BrandId);
                     if (check.Id > 0)
                     {
                         return new AppResultJson() { Status = "-1", Info = "该商户已暂存或进件,勿重复进件!", Data = Obj };