From 16d69560064a4aeb9b33966074307262ae4be638 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Fri, 17 Feb 2023 14:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../glxp/api/controller/purchase/SupCertSetController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/glxp/api/controller/purchase/SupCertSetController.java b/src/main/java/com/glxp/api/controller/purchase/SupCertSetController.java index 2bd17b0c7..3e38a53a3 100644 --- a/src/main/java/com/glxp/api/controller/purchase/SupCertSetController.java +++ b/src/main/java/com/glxp/api/controller/purchase/SupCertSetController.java @@ -87,7 +87,9 @@ public class SupCertSetController { filterCertSetsRequest.setType(supCertSetEntity.getType()); filterCertSetsRequest.setName(supCertSetEntity.getName()); List supCertEntityList = supCertSetService.filterCertSets(filterCertSetsRequest); - + if(supCertEntityList.size()!=0){ + return ResultVOUtils.error(999,"证书已存在!"); + } boolean b = supCertSetService.updateCertSet(supCertSetEntity); return ResultVOUtils.success("修改成功"); }