Эх сурвалжийг харах

小微重复提交问题提示

DuGuYang 1 жил өмнө
parent
commit
b88210ce39

+ 5 - 0
Areas/Api/Controllers/Main/MerchantAddInfoController.cs

@@ -196,6 +196,11 @@ 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");
+                    if (check.Id > 0)
+                    {
+                        return new AppResultJson() { Status = "-1", Info = "该商户已暂存或进件,忽重复进件!", Data = Obj };
+                    }
                     CertMerchantName += function.get_Random(00000000, 99999999);
                 }
                 var query = MerchantAddInfoService.Query(" CertMerchantName='" + CertMerchantName + "'");