|
|
@ -513,6 +513,9 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
QueryWrapper<AnnualCompAward> queryWrapper = QueryGenerator.initQueryWrapper(annualCompAward, req.getParameterMap()); |
|
|
|
QueryWrapper<AnnualCompAward> queryWrapper = QueryGenerator.initQueryWrapper(annualCompAward, req.getParameterMap()); |
|
|
|
queryWrapper.eq("annucompid",id); |
|
|
|
queryWrapper.eq("annucompid",id); |
|
|
|
List<AnnualCompAward> list = annualCompAwardService.list(queryWrapper); |
|
|
|
List<AnnualCompAward> list = annualCompAwardService.list(queryWrapper); |
|
|
|
|
|
|
|
if(list.size()==0){ |
|
|
|
|
|
|
|
return Result.error("未设置年度比赛奖项!"); |
|
|
|
|
|
|
|
} |
|
|
|
QueryWrapper<ScorePersion> queryWrappersp = new QueryWrapper<>(); |
|
|
|
QueryWrapper<ScorePersion> queryWrappersp = new QueryWrapper<>(); |
|
|
|
queryWrappersp.eq("annualid",annualCompService.getById(annualCompPoint.getAnnualCompId()).getAnnualid()); |
|
|
|
queryWrappersp.eq("annualid",annualCompService.getById(annualCompPoint.getAnnualCompId()).getAnnualid()); |
|
|
|
queryWrappersp.eq("annual_compid",annualCompPoint.getAnnualCompId()); |
|
|
|
queryWrappersp.eq("annual_compid",annualCompPoint.getAnnualCompId()); |
|
|
@ -656,6 +659,13 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
@ApiOperation(value="评奖数据生成", notes="评奖数据生成") |
|
|
|
@ApiOperation(value="评奖数据生成", notes="评奖数据生成") |
|
|
|
@PostMapping(value = "/cxhq") |
|
|
|
@PostMapping(value = "/cxhq") |
|
|
|
public Result<String> cxhq(@RequestBody AwardPersion awardPersion,HttpServletRequest req) { |
|
|
|
public Result<String> cxhq(@RequestBody AwardPersion awardPersion,HttpServletRequest req) { |
|
|
|
|
|
|
|
AnnualCompAward annualCompAward = new AnnualCompAward(); |
|
|
|
|
|
|
|
QueryWrapper<AnnualCompAward> queryWrapper = QueryGenerator.initQueryWrapper(annualCompAward, req.getParameterMap()); |
|
|
|
|
|
|
|
queryWrapper.eq("annucompid",awardPersion.getAnnualCompP()); |
|
|
|
|
|
|
|
List<AnnualCompAward> list = annualCompAwardService.list(queryWrapper); |
|
|
|
|
|
|
|
if(list.size()==0){ |
|
|
|
|
|
|
|
return Result.error("未设置年度比赛奖项!"); |
|
|
|
|
|
|
|
} |
|
|
|
AwardPersion awardPersionqw = new AwardPersion(); |
|
|
|
AwardPersion awardPersionqw = new AwardPersion(); |
|
|
|
QueryWrapper<AwardPersion> queryWrapperap = QueryGenerator.initQueryWrapper(awardPersionqw, req.getParameterMap()); |
|
|
|
QueryWrapper<AwardPersion> queryWrapperap = QueryGenerator.initQueryWrapper(awardPersionqw, req.getParameterMap()); |
|
|
|
queryWrapperap.eq("annualid",awardPersion.getAnnualid()); |
|
|
|
queryWrapperap.eq("annualid",awardPersion.getAnnualid()); |
|
|
@ -668,10 +678,6 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
AnnualCompPoint annualCompPoint = annualCompPointService.getById(awardPersion.getAnnualCompP()); |
|
|
|
AnnualCompPoint annualCompPoint = annualCompPointService.getById(awardPersion.getAnnualCompP()); |
|
|
|
AnnualCompAward annualCompAward = new AnnualCompAward(); |
|
|
|
|
|
|
|
QueryWrapper<AnnualCompAward> queryWrapper = QueryGenerator.initQueryWrapper(annualCompAward, req.getParameterMap()); |
|
|
|
|
|
|
|
queryWrapper.eq("annucompid",awardPersion.getAnnualCompP()); |
|
|
|
|
|
|
|
List<AnnualCompAward> list = annualCompAwardService.list(queryWrapper); |
|
|
|
|
|
|
|
QueryWrapper<ScorePersion> queryWrappersp = new QueryWrapper<>(); |
|
|
|
QueryWrapper<ScorePersion> queryWrappersp = new QueryWrapper<>(); |
|
|
|
queryWrappersp.eq("annualid",annualCompService.getById(annualCompPoint.getAnnualCompId()).getAnnualid()); |
|
|
|
queryWrappersp.eq("annualid",annualCompService.getById(annualCompPoint.getAnnualCompId()).getAnnualid()); |
|
|
|
queryWrappersp.eq("annual_compid",annualCompPoint.getAnnualCompId()); |
|
|
|
queryWrappersp.eq("annual_compid",annualCompPoint.getAnnualCompId()); |
|
|
|