|
|
@ -557,22 +557,25 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
String name1 = list.get(i).getFirstPrize(); |
|
|
|
String name1 = list.get(i).getFirstPrize(); |
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
for(int j = 0 ; j < Integer.valueOf(num1);j++){ |
|
|
|
for(int j = 0 ; j < Integer.valueOf(num1);j++){ |
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
if(j<listsp.size()){ |
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
awardPersion1.setAnnualCompP(listsp.get(j).getAnnualCompP()); |
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
awardPersion1.setEnrollCode(listsp.get(j).getEnrollCode()); |
|
|
|
awardPersion1.setAnnualCompP(listsp.get(j).getAnnualCompP()); |
|
|
|
awardPersion1.setAwardname(name1); |
|
|
|
awardPersion1.setEnrollCode(listsp.get(j).getEnrollCode()); |
|
|
|
awardPersion1.setAwardsort(1); |
|
|
|
awardPersion1.setAwardname(name1); |
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
awardPersion1.setAwardsort(1); |
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
awardPersion.setStudentname(sysUser.getRealname()); |
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
awardPersion.setStudentcode(sysUser.getUsername()); |
|
|
|
awardPersion1.setStudentname(sysUser.getRealname()); |
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
awardPersion1.setStudentcode(sysUser.getUsername()); |
|
|
|
|
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(list.get(i).getIsSecondPrize().equals("Y")){ |
|
|
|
if(list.get(i).getIsSecondPrize().equals("Y")){ |
|
|
@ -580,22 +583,24 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
String num2 = list.get(i).getSecondNum(); |
|
|
|
String num2 = list.get(i).getSecondNum(); |
|
|
|
for(int j = Integer.valueOf(num1) ; j < (Integer.valueOf(num1)+Integer.valueOf(num2));j++){ |
|
|
|
for(int j = Integer.valueOf(num1) ; j < (Integer.valueOf(num1)+Integer.valueOf(num2));j++){ |
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
if(j<listsp.size()) { |
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
awardPersion1.setAnnualCompP(listsp.get(j).getAnnualCompP()); |
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
awardPersion1.setEnrollCode(listsp.get(j).getEnrollCode()); |
|
|
|
awardPersion1.setAnnualCompP(listsp.get(j).getAnnualCompP()); |
|
|
|
awardPersion1.setAwardname(name2); |
|
|
|
awardPersion1.setEnrollCode(listsp.get(j).getEnrollCode()); |
|
|
|
awardPersion1.setAwardsort(2); |
|
|
|
awardPersion1.setAwardname(name2); |
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
awardPersion1.setAwardsort(2); |
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
queryWrappertm.eq("enroll_code", listsp.get(j).getEnrollCode()); |
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
awardPersion.setStudentname(sysUser.getRealname()); |
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
awardPersion.setStudentcode(sysUser.getUsername()); |
|
|
|
awardPersion1.setStudentname(sysUser.getRealname()); |
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
awardPersion1.setStudentcode(sysUser.getUsername()); |
|
|
|
|
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(list.get(i).getIsThirdPrize().equals("Y")){ |
|
|
|
if(list.get(i).getIsThirdPrize().equals("Y")){ |
|
|
@ -604,22 +609,24 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
String num2 = list.get(i).getSecondNum(); |
|
|
|
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++){ |
|
|
|
for(int j = (Integer.valueOf(num1)+Integer.valueOf(num2)) ; j < (Integer.valueOf(num1)+Integer.valueOf(num2)+Integer.valueOf(num3));j++){ |
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
if(j<listsp.size()) { |
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
awardPersion1.setAnnualCompP(listsp.get(j).getAnnualCompP()); |
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
awardPersion1.setEnrollCode(listsp.get(j).getEnrollCode()); |
|
|
|
awardPersion1.setAnnualCompP(listsp.get(j).getAnnualCompP()); |
|
|
|
awardPersion1.setAwardname(name3); |
|
|
|
awardPersion1.setEnrollCode(listsp.get(j).getEnrollCode()); |
|
|
|
awardPersion1.setAwardsort(3); |
|
|
|
awardPersion1.setAwardname(name3); |
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
awardPersion1.setAwardsort(3); |
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
queryWrappertm.eq("enroll_code", listsp.get(j).getEnrollCode()); |
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
awardPersion.setStudentname(sysUser.getRealname()); |
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
awardPersion.setStudentcode(sysUser.getUsername()); |
|
|
|
awardPersion1.setStudentname(sysUser.getRealname()); |
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
awardPersion1.setStudentcode(sysUser.getUsername()); |
|
|
|
|
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(list.get(i).getIsFourthPrize().equals("Y")){ |
|
|
|
if(list.get(i).getIsFourthPrize().equals("Y")){ |
|
|
@ -629,22 +636,24 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
String num2 = list.get(i).getSecondNum(); |
|
|
|
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++){ |
|
|
|
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++){ |
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
if(j<listsp.size()) { |
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
awardPersion1.setAnnualCompP(listsp.get(j).getAnnualCompP()); |
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
awardPersion1.setEnrollCode(listsp.get(j).getEnrollCode()); |
|
|
|
awardPersion1.setAnnualCompP(listsp.get(j).getAnnualCompP()); |
|
|
|
awardPersion1.setAwardname(name4); |
|
|
|
awardPersion1.setEnrollCode(listsp.get(j).getEnrollCode()); |
|
|
|
awardPersion1.setAwardsort(4); |
|
|
|
awardPersion1.setAwardname(name4); |
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
awardPersion1.setAwardsort(4); |
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
queryWrappertm.eq("enroll_code", listsp.get(j).getEnrollCode()); |
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
awardPersion.setStudentname(sysUser.getRealname()); |
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
awardPersion.setStudentcode(sysUser.getUsername()); |
|
|
|
awardPersion1.setStudentname(sysUser.getRealname()); |
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
awardPersion1.setStudentcode(sysUser.getUsername()); |
|
|
|
|
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(list.get(i).getIsFifthPrize().equals("Y")){ |
|
|
|
if(list.get(i).getIsFifthPrize().equals("Y")){ |
|
|
@ -655,22 +664,24 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint, |
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
String num1 = list.get(i).getFirstNum(); |
|
|
|
String num2 = list.get(i).getSecondNum(); |
|
|
|
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++){ |
|
|
|
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++){ |
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
if(j<listsp.size()) { |
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
AwardPersion awardPersion1 = new AwardPersion(); |
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
awardPersion1.setAnnualid(listsp.get(j).getAnnualid()); |
|
|
|
awardPersion1.setAnnualCompP(listsp.get(j).getAnnualCompP()); |
|
|
|
awardPersion1.setAnnalComp(listsp.get(j).getAnnualCompid()); |
|
|
|
awardPersion1.setEnrollCode(listsp.get(j).getEnrollCode()); |
|
|
|
awardPersion1.setAnnualCompP(listsp.get(j).getAnnualCompP()); |
|
|
|
awardPersion1.setAwardname(name5); |
|
|
|
awardPersion1.setEnrollCode(listsp.get(j).getEnrollCode()); |
|
|
|
awardPersion1.setAwardsort(5); |
|
|
|
awardPersion1.setAwardname(name5); |
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
awardPersion1.setAwardsort(5); |
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
awardPersion1.setAwardid(list.get(i).getId()); |
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
TeamManagement teamManagement = new TeamManagement(); |
|
|
|
queryWrappertm.eq("enroll_code",listsp.get(j).getEnrollCode()); |
|
|
|
QueryWrapper<TeamManagement> queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap()); |
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
queryWrappertm.eq("enroll_code", listsp.get(j).getEnrollCode()); |
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
List<TeamManagement> listtm = teamManagementService.list(queryWrappertm); |
|
|
|
awardPersion.setStudentname(sysUser.getRealname()); |
|
|
|
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId()); |
|
|
|
awardPersion.setStudentcode(sysUser.getUsername()); |
|
|
|
awardPersion1.setStudentname(sysUser.getRealname()); |
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
awardPersion1.setStudentcode(sysUser.getUsername()); |
|
|
|
|
|
|
|
awardPersionService.save(awardPersion1); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
annualCompPoint.setIsPj(1); |
|
|
|
annualCompPoint.setIsPj(1); |
|
|
|