|
|
|
@ -47,6 +47,9 @@ public class AnnualCompPointServiceImpl extends ServiceImpl<AnnualCompPointMappe |
|
|
|
|
@Autowired |
|
|
|
|
private AnnualCompPointMapper annualCompPointMapper; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IAnnualCompPointService annualCompPointService; |
|
|
|
|
|
|
|
|
|
//奖项
|
|
|
|
|
@Autowired |
|
|
|
|
private AnnualCompAwardMapper annualCompAwardMapper; |
|
|
|
@ -83,6 +86,12 @@ public class AnnualCompPointServiceImpl extends ServiceImpl<AnnualCompPointMappe |
|
|
|
|
if (annualComp == null) { |
|
|
|
|
return Result.error("年度比赛错误"); |
|
|
|
|
} |
|
|
|
|
//校验同一年度比赛下项目名称不可重复
|
|
|
|
|
List<AnnualCompPoint> annualCompPointListzbc = annualCompPointService.query().eq("annual_comp_id",annualCompPoint.getAnnualCompId()).eq("obj_name",annualCompPoint.getObjName()).list(); |
|
|
|
|
if (annualCompPointListzbc.size()>0){ |
|
|
|
|
return Result.error("同一年度比赛下项目名称不可重复"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (annualComp.getIsopen().equals("0")) { |
|
|
|
|
return Result.error("请先启动年度比赛"); |
|
|
|
|