From d35cc3b82a9cc5ee10b42af4b32afedb9e675e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com> Date: Tue, 26 Nov 2024 15:32:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=94=E8=B5=9B=E4=B8=80=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E5=8F=AA=E5=8F=AF=E4=BB=A5=E7=BB=91=E5=AE=9A=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=AF=94=E8=B5=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecg/modules/demo/comp/controller/CompController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java index 1d07e1ff..a2b92a2c 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java @@ -144,7 +144,7 @@ public class CompController extends JeecgController { return Result.OK(pageList); } - + /** @@ -167,6 +167,10 @@ public class CompController extends JeecgController { if (compListsss.size()>0){ return Result.error("这个比赛名称已存在,请确定比赛名称是否正确"); } + List complistbuycompadmin = compService.query().eq("comp_admin",comp.getCompAdmin()).list(); + if (complistbuycompadmin.size()>0){ + return Result.error("该用户已经绑定过比赛了,请选择其他用户。"); + } List list = Arrays.asList(comp.getCompAdmin().split(","));