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 ca8827af..634c232b 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 @@ -212,6 +212,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(","));