|
@ -271,11 +271,17 @@ public class ExcelService implements IExcelService { |
|
|
//个人项目名报名
|
|
|
//个人项目名报名
|
|
|
List<TableVo.CompeteJoin> playerForSingleList = competeProjectDao.getPlayerForSingle(level, type); |
|
|
List<TableVo.CompeteJoin> playerForSingleList = competeProjectDao.getPlayerForSingle(level, type); |
|
|
playerForSingleList.forEach(mes->{ |
|
|
playerForSingleList.forEach(mes->{ |
|
|
|
|
|
if (mes.getJoinRule()==1){ |
|
|
|
|
|
mes.setCompeteGroup("不限组别"); |
|
|
|
|
|
} |
|
|
competeJoinList.add(mes); |
|
|
competeJoinList.add(mes); |
|
|
}); |
|
|
}); |
|
|
//团队项目报名
|
|
|
//团队项目报名
|
|
|
List<TableVo.CompeteJoin> playerForTeamList = competeProjectDao.getPlayerForTeam(level, type); |
|
|
List<TableVo.CompeteJoin> playerForTeamList = competeProjectDao.getPlayerForTeam(level, type); |
|
|
playerForTeamList.forEach(mes->{ |
|
|
playerForTeamList.forEach(mes->{ |
|
|
|
|
|
if (mes.getJoinRule()==1){ |
|
|
|
|
|
mes.setCompeteGroup("不限组别"); |
|
|
|
|
|
} |
|
|
competeJoinList.add(mes); |
|
|
competeJoinList.add(mes); |
|
|
}); |
|
|
}); |
|
|
return competeJoinList; |
|
|
return competeJoinList; |
|
@ -648,6 +654,7 @@ public class ExcelService implements IExcelService { |
|
|
three3 = new PoiUtil.PoiUtilCell("不限组别", 1, j); |
|
|
three3 = new PoiUtil.PoiUtilCell("不限组别", 1, j); |
|
|
} |
|
|
} |
|
|
q++; |
|
|
q++; |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
three1 = new PoiUtil.PoiUtilCell(); |
|
|
three1 = new PoiUtil.PoiUtilCell(); |
|
|
three2 = new PoiUtil.PoiUtilCell(); |
|
|
three2 = new PoiUtil.PoiUtilCell(); |
|
@ -1078,6 +1085,11 @@ public class ExcelService implements IExcelService { |
|
|
// }
|
|
|
// }
|
|
|
PageHelper.startPage(params.getPage(),params.getSize()); |
|
|
PageHelper.startPage(params.getPage(),params.getSize()); |
|
|
List<TableVo.CompeteJoin> competeJoinList = competeProjectConfigDao.selectPeople(params.getProjectId(), params.getGroupId(), params.getCompanyId(), params.getName(), params.getIdCard()); |
|
|
List<TableVo.CompeteJoin> competeJoinList = competeProjectConfigDao.selectPeople(params.getProjectId(), params.getGroupId(), params.getCompanyId(), params.getName(), params.getIdCard()); |
|
|
|
|
|
competeJoinList.forEach(mes->{ |
|
|
|
|
|
if (mes.getJoinRule()==1){ |
|
|
|
|
|
mes.setCompeteGroup("不限组别"); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
PageInfo pageInfo = new PageInfo<>(competeJoinList); |
|
|
PageInfo pageInfo = new PageInfo<>(competeJoinList); |
|
|
return pageInfo; |
|
|
return pageInfo; |
|
|
} |
|
|
} |
|
@ -1167,6 +1179,7 @@ public class ExcelService implements IExcelService { |
|
|
cells.add(poiUtilCel3); |
|
|
cells.add(poiUtilCel3); |
|
|
StringBuilder stringBuilder = new StringBuilder(); |
|
|
StringBuilder stringBuilder = new StringBuilder(); |
|
|
if (CollectionUtil.isNotEmpty(schedulePlan.getSchedulePlanDetailListMorning())) { |
|
|
if (CollectionUtil.isNotEmpty(schedulePlan.getSchedulePlanDetailListMorning())) { |
|
|
|
|
|
int a = 1; |
|
|
for (TableVo.SchedulePlanDetail schedulePlanDetail : schedulePlan.getSchedulePlanDetailListMorning()) { |
|
|
for (TableVo.SchedulePlanDetail schedulePlanDetail : schedulePlan.getSchedulePlanDetailListMorning()) { |
|
|
Date date = new Date(schedulePlanDetail.getStartTime()); |
|
|
Date date = new Date(schedulePlanDetail.getStartTime()); |
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm"); |
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm"); |
|
@ -1175,7 +1188,8 @@ public class ExcelService implements IExcelService { |
|
|
SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("HH:mm"); |
|
|
SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("HH:mm"); |
|
|
String year1 = simpleDateFormat1.format(date1); |
|
|
String year1 = simpleDateFormat1.format(date1); |
|
|
String string = schedulePlanDetail.getProjectName() + "(" + year +"-"+ year1 + ")"; |
|
|
String string = schedulePlanDetail.getProjectName() + "(" + year +"-"+ year1 + ")"; |
|
|
stringBuilder.append(string+" \n"); |
|
|
stringBuilder.append(a+"、"+string+" \n"); |
|
|
|
|
|
a++; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -1183,6 +1197,7 @@ public class ExcelService implements IExcelService { |
|
|
cells.add(poiUtilCel); |
|
|
cells.add(poiUtilCel); |
|
|
StringBuilder stringBuilder1 = new StringBuilder(); |
|
|
StringBuilder stringBuilder1 = new StringBuilder(); |
|
|
if (CollectionUtil.isNotEmpty(schedulePlan.getSchedulePlanDetailListAfternoon())) { |
|
|
if (CollectionUtil.isNotEmpty(schedulePlan.getSchedulePlanDetailListAfternoon())) { |
|
|
|
|
|
int a =1; |
|
|
for (TableVo.SchedulePlanDetail schedulePlanDetail : schedulePlan.getSchedulePlanDetailListAfternoon()) { |
|
|
for (TableVo.SchedulePlanDetail schedulePlanDetail : schedulePlan.getSchedulePlanDetailListAfternoon()) { |
|
|
Date date = new Date(schedulePlanDetail.getStartTime()); |
|
|
Date date = new Date(schedulePlanDetail.getStartTime()); |
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm"); |
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm"); |
|
@ -1191,13 +1206,15 @@ public class ExcelService implements IExcelService { |
|
|
SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("HH:mm"); |
|
|
SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("HH:mm"); |
|
|
String year1 = simpleDateFormat1.format(date1); |
|
|
String year1 = simpleDateFormat1.format(date1); |
|
|
String string = schedulePlanDetail.getProjectName() + "(" + year +"-"+ year1 + ")"; |
|
|
String string = schedulePlanDetail.getProjectName() + "(" + year +"-"+ year1 + ")"; |
|
|
stringBuilder1.append(string+" "+"\n"); |
|
|
stringBuilder1.append(a+"、"+string+" \n"); |
|
|
|
|
|
a++; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
PoiUtil.PoiUtilCell poiUtilCell = new PoiUtil.PoiUtilCell(stringBuilder1.toString()); |
|
|
PoiUtil.PoiUtilCell poiUtilCell = new PoiUtil.PoiUtilCell(stringBuilder1.toString()); |
|
|
cells.add(poiUtilCell); |
|
|
cells.add(poiUtilCell); |
|
|
StringBuilder stringBuilder2 = new StringBuilder(); |
|
|
StringBuilder stringBuilder2 = new StringBuilder(); |
|
|
if (CollectionUtil.isNotEmpty(schedulePlan.getSchedulePlanDetailListNight())){ |
|
|
if (CollectionUtil.isNotEmpty(schedulePlan.getSchedulePlanDetailListNight())){ |
|
|
|
|
|
int a=1; |
|
|
for (TableVo.SchedulePlanDetail schedulePlanDetail: schedulePlan.getSchedulePlanDetailListNight()){ |
|
|
for (TableVo.SchedulePlanDetail schedulePlanDetail: schedulePlan.getSchedulePlanDetailListNight()){ |
|
|
Date date = new Date(schedulePlanDetail.getStartTime()); |
|
|
Date date = new Date(schedulePlanDetail.getStartTime()); |
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm"); |
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm"); |
|
@ -1206,7 +1223,8 @@ public class ExcelService implements IExcelService { |
|
|
SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("HH:mm"); |
|
|
SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("HH:mm"); |
|
|
String year1 = simpleDateFormat1.format(date1); |
|
|
String year1 = simpleDateFormat1.format(date1); |
|
|
String string = schedulePlanDetail.getProjectName() + "(" + year +"-"+ year1 + ")"; |
|
|
String string = schedulePlanDetail.getProjectName() + "(" + year +"-"+ year1 + ")"; |
|
|
stringBuilder2.append(string+" "+"\n"); |
|
|
stringBuilder2.append(a+"、"+string+" \n"); |
|
|
|
|
|
a++; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
PoiUtil.PoiUtilCell poiUtilCel2 = new PoiUtil.PoiUtilCell(stringBuilder2.toString()); |
|
|
PoiUtil.PoiUtilCell poiUtilCel2 = new PoiUtil.PoiUtilCell(stringBuilder2.toString()); |
|
|