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