年度比赛未启动还可以添加年度比赛项目修改

main
王家东 4 months ago
parent 46ab1d1a08
commit c3eb31e9ad
  1. 4
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/service/impl/AnnualCompPointServiceImpl.java

@ -83,6 +83,10 @@ public class AnnualCompPointServiceImpl extends ServiceImpl<AnnualCompPointMappe
if (annualComp == null) {
return Result.error("年度比赛错误");
}
if (annualComp.getIsopen().equals("0")) {
return Result.error("请先启动年度比赛");
}
// 校验比赛项目名称
String objName = annualCompPoint.getObjName();
LambdaQueryWrapper<AnnualCompPoint> queryWrapper = new LambdaQueryWrapper<>();

Loading…
Cancel
Save