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