|
|
@ -494,6 +494,21 @@ public class AwardPersionController extends JeecgController<AwardPersion, IAward |
|
|
|
List<AwardPersion> list = ExcelImportUtil.importExcel(file.getInputStream(), AwardPersion.class, params); |
|
|
|
List<AwardPersion> list = ExcelImportUtil.importExcel(file.getInputStream(), AwardPersion.class, params); |
|
|
|
List<AwardPersion> listsave = new ArrayList<>(); |
|
|
|
List<AwardPersion> listsave = new ArrayList<>(); |
|
|
|
for(int i = 0 ; i < list.size() ; i++){ |
|
|
|
for(int i = 0 ; i < list.size() ; i++){ |
|
|
|
|
|
|
|
if(list.get(i).getAnnualid()==null||list.get(i).getAnnualid().equals("")){ |
|
|
|
|
|
|
|
return Result.error("文件导入失败:第"+(i+1)+"行年度为空"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(list.get(i).getAnnalComp()==null||list.get(i).getAnnalComp().equals("")){ |
|
|
|
|
|
|
|
return Result.error("文件导入失败:第"+(i+1)+"行年度比赛为空"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(list.get(i).getAnnualCompP()==null||list.get(i).getAnnualCompP().equals("")){ |
|
|
|
|
|
|
|
return Result.error("文件导入失败:第"+(i+1)+"行年度比赛项目为空"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(list.get(i).getEnrollCode()==null||list.get(i).getEnrollCode().equals("")){ |
|
|
|
|
|
|
|
return Result.error("文件导入失败:第"+(i+1)+"行报名编号为空"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(list.get(i).getAwardname()==null||list.get(i).getAwardname().equals("")){ |
|
|
|
|
|
|
|
return Result.error("文件导入失败:第"+(i+1)+"行奖项名称为空"); |
|
|
|
|
|
|
|
} |
|
|
|
AnnualCompetitionProjectRegistration annualCompetitionProjectRegistration = new AnnualCompetitionProjectRegistration(); |
|
|
|
AnnualCompetitionProjectRegistration annualCompetitionProjectRegistration = new AnnualCompetitionProjectRegistration(); |
|
|
|
QueryWrapper<AnnualCompetitionProjectRegistration> queryWrappera = QueryGenerator.initQueryWrapper(annualCompetitionProjectRegistration, request.getParameterMap()); |
|
|
|
QueryWrapper<AnnualCompetitionProjectRegistration> queryWrappera = QueryGenerator.initQueryWrapper(annualCompetitionProjectRegistration, request.getParameterMap()); |
|
|
|
queryWrappera.eq("annual_compid",list.get(i).getAnnualCompP()); |
|
|
|
queryWrappera.eq("annual_compid",list.get(i).getAnnualCompP()); |
|
|
|