|
|
@ -344,10 +344,14 @@ public class CompController extends JeecgController<Comp, ICompService> { |
|
|
|
|
|
|
|
|
|
|
|
comp.setCompweight(csort);*/ |
|
|
|
comp.setCompweight(csort);*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Comp> complistbuycompadmin = compService.query().eq("comp_admin",comp.getCompAdmin()).list(); |
|
|
|
/*--------------------------王家东添加开始============================*/ |
|
|
|
if (complistbuycompadmin.size()>0){ |
|
|
|
compService.updateById(comp); |
|
|
|
return Result.error("该用户已经绑定过比赛了,请选择其他用户。"); |
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
}else { |
|
|
|
|
|
|
|
/*--------------------------王家东添加开始============================*/ |
|
|
|
|
|
|
|
compService.updateById(comp); |
|
|
|
|
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|