Commit 0f9a313a authored by 赵桢's avatar 赵桢

admin首页加载慢,临时注掉,方便测试

parent 35ffe98e
......@@ -52,88 +52,88 @@ public class IndexCtrl {
public IndexCtrl() {
}
@RequestMapping({"/getEducationIndex"})
@ResponseBody
public Map<String, Object> getEducationIndex(HttpServletRequest request, HttpServletResponse response, HttpEntity<String> data) {
Map<String, Object> map = new HashMap();
int authorityID = Integer.parseInt(request.getSession().getAttribute("authorityID").toString());
if (authorityID != 2) {
map.put("result", false);
return map;
} else {
map.put("spaceMessageNum0", this.spaceMessageService.getSpaceMessageNumByAll(0));
map.put("spaceMessageNum1", this.spaceMessageService.getSpaceMessageNumByAll(1));
map.put("teamMessageNum0", this.teamMessageService.getTeamInformationNumByCertification(0));
map.put("teamMessageNum1", this.teamMessageService.getTeamInformationNumByCertification(1));
map.put("teamMessagecompanyNum0", this.teamMessageService.getTeamInformationNumByCertificationAndCompanyRegisterIF(0, 1));
map.put("teamMessagecompanyNum1", this.teamMessageService.getTeamInformationNumByCertificationAndCompanyRegisterIF(1, 1));
map.put("spaceFundNum0", this.spaceFundServer.getSpaceFundUseNumByCertification(0));
map.put("spaceFundNum1", this.spaceFundServer.getSpaceFundUseNumByCertification(1));
map.put("studentNum0", this.memberService.listMemberAllNumBySpaceMessageCertification(0));
map.put("studentNum1", this.memberService.listMemberAllNumBySpaceMessageCertification(1));
List<TeamMessage> teamMessage_list0 = this.teamMessageService.getTeamInformationByCertificationSimple(0);
int intellectualPropertyNum1;
if (teamMessage_list0 == null) {
map.put("intellectualPropertyNum0", 0);
map.put("employmentNum0", 0);
map.put("financingMoneyNum0", 0);
} else {
int intellectualPropertyNum0 = 0;
intellectualPropertyNum1 = 0;
double financingMoneyNum0 = 0.0D;
Iterator var11 = teamMessage_list0.iterator();
while(var11.hasNext()) {
TeamMessage teamMessage_list0_i = (TeamMessage)var11.next();
intellectualPropertyNum0 += teamMessage_list0_i.getIntellectualPropertyNumber();
intellectualPropertyNum1 += teamMessage_list0_i.getEmploymentNumber();
try {
financingMoneyNum0 += Double.parseDouble(teamMessage_list0_i.getFinancingMoneyNumber());
} catch (Exception var16) {
}
}
map.put("intellectualPropertyNum0", intellectualPropertyNum0);
map.put("employmentNum0", intellectualPropertyNum1);
map.put("financingMoneyNum0", financingMoneyNum0);
}
List<TeamMessage> teamMessage_list1 = this.teamMessageService.getTeamInformationByCertificationSimple(1);
if (teamMessage_list1 == null) {
map.put("intellectualPropertyNum1", 0);
map.put("employmentNum1", 0);
map.put("financingMoneyNum1", 0);
} else {
intellectualPropertyNum1 = 0;
int employmentNum1 = 0;
double financingMoneyNum1 = 0.0D;
Iterator var19 = teamMessage_list1.iterator();
while(var19.hasNext()) {
TeamMessage teamMessage_list1_i = (TeamMessage)var19.next();
intellectualPropertyNum1 += teamMessage_list1_i.getIntellectualPropertyNumber();
employmentNum1 += teamMessage_list1_i.getEmploymentNumber();
try {
financingMoneyNum1 += Double.parseDouble(teamMessage_list1_i.getFinancingMoneyNumber());
} catch (Exception var15) {
}
}
map.put("intellectualPropertyNum1", intellectualPropertyNum1);
map.put("employmentNum1", employmentNum1);
map.put("financingMoneyNum1", financingMoneyNum1);
}
map.put("spaceExerciseNum0", this.spaceExerciseService.getSpaceExerciseNumByCertification(0));
map.put("spaceExerciseNum1", this.spaceExerciseService.getSpaceExerciseNumByCertification(1));
map.put("spaceTeacherRecordNum0", this.spaceTeacherServer.SpaceTeacherRecordNumByCertification(0));
map.put("spaceTeacherRecordNum1", this.spaceTeacherServer.SpaceTeacherRecordNumByCertification(1));
map.put("result", true);
return map;
}
}
// @RequestMapping({"/getEducationIndex"})
// @ResponseBody
// public Map<String, Object> getEducationIndex(HttpServletRequest request, HttpServletResponse response, HttpEntity<String> data) {
// Map<String, Object> map = new HashMap();
// int authorityID = Integer.parseInt(request.getSession().getAttribute("authorityID").toString());
// if (authorityID != 2) {
// map.put("result", false);
// return map;
// } else {
// map.put("spaceMessageNum0", this.spaceMessageService.getSpaceMessageNumByAll(0));
// map.put("spaceMessageNum1", this.spaceMessageService.getSpaceMessageNumByAll(1));
// map.put("teamMessageNum0", this.teamMessageService.getTeamInformationNumByCertification(0));
// map.put("teamMessageNum1", this.teamMessageService.getTeamInformationNumByCertification(1));
// map.put("teamMessagecompanyNum0", this.teamMessageService.getTeamInformationNumByCertificationAndCompanyRegisterIF(0, 1));
// map.put("teamMessagecompanyNum1", this.teamMessageService.getTeamInformationNumByCertificationAndCompanyRegisterIF(1, 1));
// map.put("spaceFundNum0", this.spaceFundServer.getSpaceFundUseNumByCertification(0));
// map.put("spaceFundNum1", this.spaceFundServer.getSpaceFundUseNumByCertification(1));
// map.put("studentNum0", this.memberService.listMemberAllNumBySpaceMessageCertification(0));
// map.put("studentNum1", this.memberService.listMemberAllNumBySpaceMessageCertification(1));
// List<TeamMessage> teamMessage_list0 = this.teamMessageService.getTeamInformationByCertificationSimple(0);
// int intellectualPropertyNum1;
// if (teamMessage_list0 == null) {
// map.put("intellectualPropertyNum0", 0);
// map.put("employmentNum0", 0);
// map.put("financingMoneyNum0", 0);
// } else {
// int intellectualPropertyNum0 = 0;
// intellectualPropertyNum1 = 0;
// double financingMoneyNum0 = 0.0D;
// Iterator var11 = teamMessage_list0.iterator();
//
// while(var11.hasNext()) {
// TeamMessage teamMessage_list0_i = (TeamMessage)var11.next();
// intellectualPropertyNum0 += teamMessage_list0_i.getIntellectualPropertyNumber();
// intellectualPropertyNum1 += teamMessage_list0_i.getEmploymentNumber();
//
// try {
// financingMoneyNum0 += Double.parseDouble(teamMessage_list0_i.getFinancingMoneyNumber());
// } catch (Exception var16) {
// }
// }
//
// map.put("intellectualPropertyNum0", intellectualPropertyNum0);
// map.put("employmentNum0", intellectualPropertyNum1);
// map.put("financingMoneyNum0", financingMoneyNum0);
// }
//
// List<TeamMessage> teamMessage_list1 = this.teamMessageService.getTeamInformationByCertificationSimple(1);
// if (teamMessage_list1 == null) {
// map.put("intellectualPropertyNum1", 0);
// map.put("employmentNum1", 0);
// map.put("financingMoneyNum1", 0);
// } else {
// intellectualPropertyNum1 = 0;
// int employmentNum1 = 0;
// double financingMoneyNum1 = 0.0D;
// Iterator var19 = teamMessage_list1.iterator();
//
// while(var19.hasNext()) {
// TeamMessage teamMessage_list1_i = (TeamMessage)var19.next();
// intellectualPropertyNum1 += teamMessage_list1_i.getIntellectualPropertyNumber();
// employmentNum1 += teamMessage_list1_i.getEmploymentNumber();
//
// try {
// financingMoneyNum1 += Double.parseDouble(teamMessage_list1_i.getFinancingMoneyNumber());
// } catch (Exception var15) {
// }
// }
//
// map.put("intellectualPropertyNum1", intellectualPropertyNum1);
// map.put("employmentNum1", employmentNum1);
// map.put("financingMoneyNum1", financingMoneyNum1);
// }
//
// map.put("spaceExerciseNum0", this.spaceExerciseService.getSpaceExerciseNumByCertification(0));
// map.put("spaceExerciseNum1", this.spaceExerciseService.getSpaceExerciseNumByCertification(1));
// map.put("spaceTeacherRecordNum0", this.spaceTeacherServer.SpaceTeacherRecordNumByCertification(0));
// map.put("spaceTeacherRecordNum1", this.spaceTeacherServer.SpaceTeacherRecordNumByCertification(1));
// map.put("result", true);
// return map;
// }
// }
@RequestMapping({"/getSpaceIndex"})
@ResponseBody
......
......@@ -760,16 +760,16 @@ public class SitesInformationCtrl {
}
@RequestMapping({"/getAllLoginRemindNum"})
@ResponseBody
public Map<String, Object> getAllLoginRemindNum(String sendUserType, HttpServletRequest request, HttpServletResponse response, HttpEntity<String> data) throws ParseException {
Map<String, Object> map = new HashMap();
String realID = request.getSession().getAttribute("realID").toString();
String loginRemind_list = this.loginRemindService.listLoginRemindNum(realID);
map.put("loginRemindNum", loginRemind_list);
map.put("result", true);
return map;
}
// @RequestMapping({"/getAllLoginRemindNum"})
// @ResponseBody
// public Map<String, Object> getAllLoginRemindNum(String sendUserType, HttpServletRequest request, HttpServletResponse response, HttpEntity<String> data) throws ParseException {
// Map<String, Object> map = new HashMap();
// String realID = request.getSession().getAttribute("realID").toString();
// String loginRemind_list = this.loginRemindService.listLoginRemindNum(realID);
// map.put("loginRemindNum", loginRemind_list);
// map.put("result", true);
// return map;
// }
@RequestMapping({"/getAllsitesInformationNum"})
@ResponseBody
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment