|
|
|
@ -557,6 +557,7 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
|
String name1 = list.get(i).getFirstPrize(); |
|
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
|
for(int j = 0 ; j < Integer.valueOf(num1);j++){ |
|
|
|
|
if(j<listsp.size()){ |
|
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
@ -570,16 +571,19 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
|
awardPersion.setStudentname(sysUser.getRealname()); |
|
|
|
|
awardPersion.setStudentcode(sysUser.getUsername()); |
|
|
|
|
awardPersion1.setStudentname(sysUser.getRealname()); |
|
|
|
|
awardPersion1.setStudentcode(sysUser.getUsername()); |
|
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(list.get(i).getIsSecondPrize().equals("Y")){ |
|
|
|
|
String name2 = list.get(i).getSecondPrize(); |
|
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
|
String num2 = list.get(i).getSecondNum(); |
|
|
|
|
for(int j = Integer.valueOf(num1) ; j < (Integer.valueOf(num1)+Integer.valueOf(num2));j++){ |
|
|
|
|
if(j<listsp.size()) { |
|
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
@ -590,20 +594,22 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
|
queryWrappertm.eq("enroll_code", listsp.get(j).getEnrollCode()); |
|
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
|
awardPersion.setStudentname(sysUser.getRealname()); |
|
|
|
|
awardPersion.setStudentcode(sysUser.getUsername()); |
|
|
|
|
awardPersion1.setStudentname(sysUser.getRealname()); |
|
|
|
|
awardPersion1.setStudentcode(sysUser.getUsername()); |
|
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(list.get(i).getIsThirdPrize().equals("Y")){ |
|
|
|
|
String name3 = list.get(i).getThirdPrize(); |
|
|
|
|
String num3 = list.get(i).getThirdNum(); |
|
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
|
String num2 = list.get(i).getSecondNum(); |
|
|
|
|
for(int j = (Integer.valueOf(num1)+Integer.valueOf(num2)) ; j < (Integer.valueOf(num1)+Integer.valueOf(num2)+Integer.valueOf(num3));j++){ |
|
|
|
|
if(j<listsp.size()) { |
|
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
@ -614,14 +620,15 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
|
queryWrappertm.eq("enroll_code", listsp.get(j).getEnrollCode()); |
|
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
|
awardPersion.setStudentname(sysUser.getRealname()); |
|
|
|
|
awardPersion.setStudentcode(sysUser.getUsername()); |
|
|
|
|
awardPersion1.setStudentname(sysUser.getRealname()); |
|
|
|
|
awardPersion1.setStudentcode(sysUser.getUsername()); |
|
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(list.get(i).getIsFourthPrize().equals("Y")){ |
|
|
|
|
String name4 = list.get(i).getFourthPrize(); |
|
|
|
|
String num4 = list.get(i).getFourthNum(); |
|
|
|
@ -629,6 +636,7 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
|
String num2 = list.get(i).getSecondNum(); |
|
|
|
|
for(int j = (Integer.valueOf(num1)+Integer.valueOf(num2)+Integer.valueOf(num3)) ; j < (Integer.valueOf(num1)+Integer.valueOf(num2)+Integer.valueOf(num3)+Integer.valueOf(num4));j++){ |
|
|
|
|
if(j<listsp.size()) { |
|
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
@ -639,14 +647,15 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
|
queryWrappertm.eq("enroll_code", listsp.get(j).getEnrollCode()); |
|
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
|
awardPersion.setStudentname(sysUser.getRealname()); |
|
|
|
|
awardPersion.setStudentcode(sysUser.getUsername()); |
|
|
|
|
awardPersion1.setStudentname(sysUser.getRealname()); |
|
|
|
|
awardPersion1.setStudentcode(sysUser.getUsername()); |
|
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(list.get(i).getIsFifthPrize().equals("Y")){ |
|
|
|
|
String name5 = list.get(i).getFifthPrize(); |
|
|
|
|
String num5 = list.get(i).getFifthNum(); |
|
|
|
@ -655,6 +664,7 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
|
String num2 = list.get(i).getSecondNum(); |
|
|
|
|
for(int j = (Integer.valueOf(num1)+Integer.valueOf(num2)+Integer.valueOf(num3)+Integer.valueOf(num4)) ; j < (Integer.valueOf(num1)+Integer.valueOf(num2)+Integer.valueOf(num3)+Integer.valueOf(num4)+Integer.valueOf(num5));j++){ |
|
|
|
|
if(j<listsp.size()) { |
|
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
@ -665,14 +675,15 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
|
queryWrappertm.eq("enroll_code", listsp.get(j).getEnrollCode()); |
|
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
|
awardPersion.setStudentname(sysUser.getRealname()); |
|
|
|
|
awardPersion.setStudentcode(sysUser.getUsername()); |
|
|
|
|
awardPersion1.setStudentname(sysUser.getRealname()); |
|
|
|
|
awardPersion1.setStudentcode(sysUser.getUsername()); |
|
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
annualCompPoint.setIsPj(1); |
|
|
|
|
annualCompPointService.updateById(annualCompPoint); |
|
|
|
|
} |
|
|
|
|