|
|
@ -295,11 +295,19 @@ public class CompController extends JeecgController<Comp, ICompService> { |
|
|
|
|
|
|
|
|
|
|
|
comp.setCompweight(csort);*/ |
|
|
|
comp.setCompweight(csort);*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (comp.getCompAdmin()==null){ |
|
|
|
|
|
|
|
return Result.error("比赛负责人不可以为空"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*--------------------------王家东添加开始============================*/ |
|
|
|
/*--------------------------王家东添加开始============================*/ |
|
|
|
|
|
|
|
List<Comp> complistbuycompadmin = compService.query().eq("comp_admin",comp.getCompAdmin()).list(); |
|
|
|
|
|
|
|
if (complistbuycompadmin.size()>0){ |
|
|
|
|
|
|
|
return Result.error("该用户已经绑定过比赛了,请选择其他用户。"); |
|
|
|
|
|
|
|
} else { |
|
|
|
compService.updateById(comp); |
|
|
|
compService.updateById(comp); |
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 通过id删除 |
|
|
|
* 通过id删除 |
|
|
|