|
|
|
@ -106,34 +106,52 @@ public class ExpScoreController extends JeecgController<ExpScore, IExpScoreServi |
|
|
|
|
queryWrapperlist.eq("topid",annComGroTop.getTopid()); |
|
|
|
|
List<ExpScore> listeslist = expScoreService.list(queryWrapperlist); |
|
|
|
|
if(listeslist.size()==0){ |
|
|
|
|
for (int i = 0 ; i < listeg.size();i++){ |
|
|
|
|
AnnComGroTopP annComGroTopP = new AnnComGroTopP(); |
|
|
|
|
QueryWrapper<AnnComGroTopP> queryWrapperacgtp = QueryGenerator.initQueryWrapper(annComGroTopP, req.getParameterMap()); |
|
|
|
|
queryWrapperacgtp.eq("ann_com_gro_topid",xmtmid); |
|
|
|
|
List<AnnComGroTopP> listacftp = annComGroTopPService.list(queryWrapperacgtp); |
|
|
|
|
ExpScore expScore1 = new ExpScore(); |
|
|
|
|
expScore1.setAnnid(annComGroTop.getAnnid()); |
|
|
|
|
expScore1.setAnnComP(annComGroTop.getAnnComP()); |
|
|
|
|
expScore1.setAnnalComp(annualCompPointService.getById(annComGroTop.getAnnComP()).getAnnualCompId()); |
|
|
|
|
expScore1.setTopid(annComGroTop.getTopid()); |
|
|
|
|
expScore1.setBmcode(listacftp.get(0).getBmcode()); |
|
|
|
|
AnnComGroTopP annComGroTopP = new AnnComGroTopP(); |
|
|
|
|
QueryWrapper<AnnComGroTopP> queryWrapperacgtp = QueryGenerator.initQueryWrapper(annComGroTopP, req.getParameterMap()); |
|
|
|
|
queryWrapperacgtp.eq("ann_com_gro_topid",xmtmid); |
|
|
|
|
List<AnnComGroTopP> listacftp = annComGroTopPService.list(queryWrapperacgtp); |
|
|
|
|
if(listacftp.size()==0){ |
|
|
|
|
return Result.error("题目未绑定报名编号,请联系组委会"); |
|
|
|
|
} |
|
|
|
|
for(int l = 0 ; l < listacftp.size() ; l++){ |
|
|
|
|
UpfilePersion upfilePersion = new UpfilePersion(); |
|
|
|
|
QueryWrapper<UpfilePersion> queryWrapperup = QueryGenerator.initQueryWrapper(upfilePersion, req.getParameterMap()); |
|
|
|
|
queryWrapperup.eq("apply_code",listacftp.get(0).getBmcode()); |
|
|
|
|
queryWrapperup.eq("apply_code",listacftp.get(l).getBmcode()); |
|
|
|
|
List<UpfilePersion> listup = upfilePersionService.list(queryWrapperup); |
|
|
|
|
expScore1.setUpfilePersionId(listup.get(0).getId().toString()); |
|
|
|
|
ScoreSta scoreSta = new ScoreSta(); |
|
|
|
|
QueryWrapper<ScoreSta> queryWrapperss = QueryGenerator.initQueryWrapper(scoreSta, req.getParameterMap()); |
|
|
|
|
queryWrapperss.eq("annual_id",annComGroTop.getAnnid()); |
|
|
|
|
queryWrapperss.eq("annal_comp",annualCompPointService.getById(annComGroTop.getAnnComP()).getAnnualCompId()); |
|
|
|
|
queryWrapperss.eq("annual_compid",annComGroTop.getAnnComP()); |
|
|
|
|
queryWrapperss.eq("topicid",annComGroTop.getTopid()); |
|
|
|
|
List<ScoreSta> listss = scoreStaService.list(queryWrapperss); |
|
|
|
|
expScore1.setScoreStaid(listss.get(0).getId()); |
|
|
|
|
expScore1.setScore(0); |
|
|
|
|
expScore1.setUserid(expertService.getById(listeg.get(i).getGrouid()).getUserId()); |
|
|
|
|
expScore1.setIspf("0"); |
|
|
|
|
expScoreService.save(expScore1); |
|
|
|
|
if(listup.size()==0){ |
|
|
|
|
return Result.error("报名编号为:"+listacftp.get(l).getBmcode()+"未上传作品,请联系组委会"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
ScoreSta scoreSta = new ScoreSta(); |
|
|
|
|
QueryWrapper<ScoreSta> queryWrapperss = QueryGenerator.initQueryWrapper(scoreSta, req.getParameterMap()); |
|
|
|
|
queryWrapperss.eq("annual_id",annComGroTop.getAnnid()); |
|
|
|
|
queryWrapperss.eq("annal_comp",annualCompPointService.getById(annComGroTop.getAnnComP()).getAnnualCompId()); |
|
|
|
|
queryWrapperss.eq("annual_compid",annComGroTop.getAnnComP()); |
|
|
|
|
queryWrapperss.eq("topicid",annComGroTop.getTopid()); |
|
|
|
|
List<ScoreSta> listss = scoreStaService.list(queryWrapperss); |
|
|
|
|
if(listss.size()==0){ |
|
|
|
|
return Result.error("未设置评分标准,请联系组委会"); |
|
|
|
|
} |
|
|
|
|
for (int i = 0 ; i < listeg.size();i++){ |
|
|
|
|
for(int l = 0 ; l < listacftp.size() ; l++){ |
|
|
|
|
UpfilePersion upfilePersion = new UpfilePersion(); |
|
|
|
|
QueryWrapper<UpfilePersion> queryWrapperup = QueryGenerator.initQueryWrapper(upfilePersion, req.getParameterMap()); |
|
|
|
|
queryWrapperup.eq("apply_code",listacftp.get(l).getBmcode()); |
|
|
|
|
List<UpfilePersion> listup = upfilePersionService.list(queryWrapperup); |
|
|
|
|
ExpScore expScore1 = new ExpScore(); |
|
|
|
|
expScore1.setAnnid(annComGroTop.getAnnid()); |
|
|
|
|
expScore1.setAnnComP(annComGroTop.getAnnComP()); |
|
|
|
|
expScore1.setAnnalComp(annualCompPointService.getById(annComGroTop.getAnnComP()).getAnnualCompId()); |
|
|
|
|
expScore1.setTopid(annComGroTop.getTopid()); |
|
|
|
|
expScore1.setBmcode(listacftp.get(l).getBmcode()); |
|
|
|
|
expScore1.setUpfilePersionId(listup.get(0).getId().toString()); |
|
|
|
|
expScore1.setScoreStaid(listss.get(0).getId()); |
|
|
|
|
expScore1.setScore(0); |
|
|
|
|
expScore1.setUserid(expertService.getById(listeg.get(i).getGrouid()).getUserId()); |
|
|
|
|
expScore1.setIspf("0"); |
|
|
|
|
expScoreService.save(expScore1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|