Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王琮
platform
Commits
0f9a313a
Commit
0f9a313a
authored
Jul 11, 2023
by
赵桢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin首页加载慢,临时注掉,方便测试
parent
35ffe98e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
92 deletions
+92
-92
IndexCtrl.java
src/main/java/com/tiptimes/ctrl/IndexCtrl.java
+82
-82
SitesInformationCtrl.java
src/main/java/com/tiptimes/ctrl/SitesInformationCtrl.java
+10
-10
No files found.
src/main/java/com/tiptimes/ctrl/IndexCtrl.java
View file @
0f9a313a
...
@@ -52,88 +52,88 @@ public class IndexCtrl {
...
@@ -52,88 +52,88 @@ public class IndexCtrl {
public
IndexCtrl
()
{
public
IndexCtrl
()
{
}
}
@RequestMapping
({
"/getEducationIndex"
})
//
@RequestMapping({"/getEducationIndex"})
@ResponseBody
//
@ResponseBody
public
Map
<
String
,
Object
>
getEducationIndex
(
HttpServletRequest
request
,
HttpServletResponse
response
,
HttpEntity
<
String
>
data
)
{
//
public Map<String, Object> getEducationIndex(HttpServletRequest request, HttpServletResponse response, HttpEntity<String> data) {
Map
<
String
,
Object
>
map
=
new
HashMap
();
//
Map<String, Object> map = new HashMap();
int
authorityID
=
Integer
.
parseInt
(
request
.
getSession
().
getAttribute
(
"authorityID"
).
toString
());
//
int authorityID = Integer.parseInt(request.getSession().getAttribute("authorityID").toString());
if
(
authorityID
!=
2
)
{
//
if (authorityID != 2) {
map
.
put
(
"result"
,
false
);
//
map.put("result", false);
return
map
;
//
return map;
}
else
{
//
} else {
map
.
put
(
"spaceMessageNum0"
,
this
.
spaceMessageService
.
getSpaceMessageNumByAll
(
0
));
//
map.put("spaceMessageNum0", this.spaceMessageService.getSpaceMessageNumByAll(0));
map
.
put
(
"spaceMessageNum1"
,
this
.
spaceMessageService
.
getSpaceMessageNumByAll
(
1
));
//
map.put("spaceMessageNum1", this.spaceMessageService.getSpaceMessageNumByAll(1));
map
.
put
(
"teamMessageNum0"
,
this
.
teamMessageService
.
getTeamInformationNumByCertification
(
0
));
//
map.put("teamMessageNum0", this.teamMessageService.getTeamInformationNumByCertification(0));
map
.
put
(
"teamMessageNum1"
,
this
.
teamMessageService
.
getTeamInformationNumByCertification
(
1
));
//
map.put("teamMessageNum1", this.teamMessageService.getTeamInformationNumByCertification(1));
map
.
put
(
"teamMessagecompanyNum0"
,
this
.
teamMessageService
.
getTeamInformationNumByCertificationAndCompanyRegisterIF
(
0
,
1
));
//
map.put("teamMessagecompanyNum0", this.teamMessageService.getTeamInformationNumByCertificationAndCompanyRegisterIF(0, 1));
map
.
put
(
"teamMessagecompanyNum1"
,
this
.
teamMessageService
.
getTeamInformationNumByCertificationAndCompanyRegisterIF
(
1
,
1
));
//
map.put("teamMessagecompanyNum1", this.teamMessageService.getTeamInformationNumByCertificationAndCompanyRegisterIF(1, 1));
map
.
put
(
"spaceFundNum0"
,
this
.
spaceFundServer
.
getSpaceFundUseNumByCertification
(
0
));
//
map.put("spaceFundNum0", this.spaceFundServer.getSpaceFundUseNumByCertification(0));
map
.
put
(
"spaceFundNum1"
,
this
.
spaceFundServer
.
getSpaceFundUseNumByCertification
(
1
));
//
map.put("spaceFundNum1", this.spaceFundServer.getSpaceFundUseNumByCertification(1));
map
.
put
(
"studentNum0"
,
this
.
memberService
.
listMemberAllNumBySpaceMessageCertification
(
0
));
//
map.put("studentNum0", this.memberService.listMemberAllNumBySpaceMessageCertification(0));
map
.
put
(
"studentNum1"
,
this
.
memberService
.
listMemberAllNumBySpaceMessageCertification
(
1
));
//
map.put("studentNum1", this.memberService.listMemberAllNumBySpaceMessageCertification(1));
List
<
TeamMessage
>
teamMessage_list0
=
this
.
teamMessageService
.
getTeamInformationByCertificationSimple
(
0
);
//
List<TeamMessage> teamMessage_list0 = this.teamMessageService.getTeamInformationByCertificationSimple(0);
int
intellectualPropertyNum1
;
//
int intellectualPropertyNum1;
if
(
teamMessage_list0
==
null
)
{
//
if (teamMessage_list0 == null) {
map
.
put
(
"intellectualPropertyNum0"
,
0
);
//
map.put("intellectualPropertyNum0", 0);
map
.
put
(
"employmentNum0"
,
0
);
//
map.put("employmentNum0", 0);
map
.
put
(
"financingMoneyNum0"
,
0
);
//
map.put("financingMoneyNum0", 0);
}
else
{
//
} else {
int
intellectualPropertyNum0
=
0
;
//
int intellectualPropertyNum0 = 0;
intellectualPropertyNum1
=
0
;
//
intellectualPropertyNum1 = 0;
double
financingMoneyNum0
=
0.0
D
;
//
double financingMoneyNum0 = 0.0D;
Iterator
var11
=
teamMessage_list0
.
iterator
();
//
Iterator var11 = teamMessage_list0.iterator();
//
while
(
var11
.
hasNext
())
{
//
while(var11.hasNext()) {
TeamMessage
teamMessage_list0_i
=
(
TeamMessage
)
var11
.
next
();
//
TeamMessage teamMessage_list0_i = (TeamMessage)var11.next();
intellectualPropertyNum0
+=
teamMessage_list0_i
.
getIntellectualPropertyNumber
();
//
intellectualPropertyNum0 += teamMessage_list0_i.getIntellectualPropertyNumber();
intellectualPropertyNum1
+=
teamMessage_list0_i
.
getEmploymentNumber
();
//
intellectualPropertyNum1 += teamMessage_list0_i.getEmploymentNumber();
//
try
{
//
try {
financingMoneyNum0
+=
Double
.
parseDouble
(
teamMessage_list0_i
.
getFinancingMoneyNumber
());
//
financingMoneyNum0 += Double.parseDouble(teamMessage_list0_i.getFinancingMoneyNumber());
}
catch
(
Exception
var16
)
{
//
} catch (Exception var16) {
}
//
}
}
//
}
//
map
.
put
(
"intellectualPropertyNum0"
,
intellectualPropertyNum0
);
//
map.put("intellectualPropertyNum0", intellectualPropertyNum0);
map
.
put
(
"employmentNum0"
,
intellectualPropertyNum1
);
//
map.put("employmentNum0", intellectualPropertyNum1);
map
.
put
(
"financingMoneyNum0"
,
financingMoneyNum0
);
//
map.put("financingMoneyNum0", financingMoneyNum0);
}
//
}
//
List
<
TeamMessage
>
teamMessage_list1
=
this
.
teamMessageService
.
getTeamInformationByCertificationSimple
(
1
);
//
List<TeamMessage> teamMessage_list1 = this.teamMessageService.getTeamInformationByCertificationSimple(1);
if
(
teamMessage_list1
==
null
)
{
//
if (teamMessage_list1 == null) {
map
.
put
(
"intellectualPropertyNum1"
,
0
);
//
map.put("intellectualPropertyNum1", 0);
map
.
put
(
"employmentNum1"
,
0
);
//
map.put("employmentNum1", 0);
map
.
put
(
"financingMoneyNum1"
,
0
);
//
map.put("financingMoneyNum1", 0);
}
else
{
//
} else {
intellectualPropertyNum1
=
0
;
//
intellectualPropertyNum1 = 0;
int
employmentNum1
=
0
;
//
int employmentNum1 = 0;
double
financingMoneyNum1
=
0.0
D
;
//
double financingMoneyNum1 = 0.0D;
Iterator
var19
=
teamMessage_list1
.
iterator
();
//
Iterator var19 = teamMessage_list1.iterator();
//
while
(
var19
.
hasNext
())
{
//
while(var19.hasNext()) {
TeamMessage
teamMessage_list1_i
=
(
TeamMessage
)
var19
.
next
();
//
TeamMessage teamMessage_list1_i = (TeamMessage)var19.next();
intellectualPropertyNum1
+=
teamMessage_list1_i
.
getIntellectualPropertyNumber
();
//
intellectualPropertyNum1 += teamMessage_list1_i.getIntellectualPropertyNumber();
employmentNum1
+=
teamMessage_list1_i
.
getEmploymentNumber
();
//
employmentNum1 += teamMessage_list1_i.getEmploymentNumber();
//
try
{
//
try {
financingMoneyNum1
+=
Double
.
parseDouble
(
teamMessage_list1_i
.
getFinancingMoneyNumber
());
//
financingMoneyNum1 += Double.parseDouble(teamMessage_list1_i.getFinancingMoneyNumber());
}
catch
(
Exception
var15
)
{
//
} catch (Exception var15) {
}
//
}
}
//
}
//
map
.
put
(
"intellectualPropertyNum1"
,
intellectualPropertyNum1
);
//
map.put("intellectualPropertyNum1", intellectualPropertyNum1);
map
.
put
(
"employmentNum1"
,
employmentNum1
);
//
map.put("employmentNum1", employmentNum1);
map
.
put
(
"financingMoneyNum1"
,
financingMoneyNum1
);
//
map.put("financingMoneyNum1", financingMoneyNum1);
}
//
}
//
map
.
put
(
"spaceExerciseNum0"
,
this
.
spaceExerciseService
.
getSpaceExerciseNumByCertification
(
0
));
//
map.put("spaceExerciseNum0", this.spaceExerciseService.getSpaceExerciseNumByCertification(0));
map
.
put
(
"spaceExerciseNum1"
,
this
.
spaceExerciseService
.
getSpaceExerciseNumByCertification
(
1
));
//
map.put("spaceExerciseNum1", this.spaceExerciseService.getSpaceExerciseNumByCertification(1));
map
.
put
(
"spaceTeacherRecordNum0"
,
this
.
spaceTeacherServer
.
SpaceTeacherRecordNumByCertification
(
0
));
//
map.put("spaceTeacherRecordNum0", this.spaceTeacherServer.SpaceTeacherRecordNumByCertification(0));
map
.
put
(
"spaceTeacherRecordNum1"
,
this
.
spaceTeacherServer
.
SpaceTeacherRecordNumByCertification
(
1
));
//
map.put("spaceTeacherRecordNum1", this.spaceTeacherServer.SpaceTeacherRecordNumByCertification(1));
map
.
put
(
"result"
,
true
);
//
map.put("result", true);
return
map
;
//
return map;
}
//
}
}
//
}
@RequestMapping
({
"/getSpaceIndex"
})
@RequestMapping
({
"/getSpaceIndex"
})
@ResponseBody
@ResponseBody
...
...
src/main/java/com/tiptimes/ctrl/SitesInformationCtrl.java
View file @
0f9a313a
...
@@ -760,16 +760,16 @@ public class SitesInformationCtrl {
...
@@ -760,16 +760,16 @@ public class SitesInformationCtrl {
}
}
@RequestMapping
({
"/getAllLoginRemindNum"
})
//
@RequestMapping({"/getAllLoginRemindNum"})
@ResponseBody
//
@ResponseBody
public
Map
<
String
,
Object
>
getAllLoginRemindNum
(
String
sendUserType
,
HttpServletRequest
request
,
HttpServletResponse
response
,
HttpEntity
<
String
>
data
)
throws
ParseException
{
//
public Map<String, Object> getAllLoginRemindNum(String sendUserType, HttpServletRequest request, HttpServletResponse response, HttpEntity<String> data) throws ParseException {
Map
<
String
,
Object
>
map
=
new
HashMap
();
//
Map<String, Object> map = new HashMap();
String
realID
=
request
.
getSession
().
getAttribute
(
"realID"
).
toString
();
//
String realID = request.getSession().getAttribute("realID").toString();
String
loginRemind_list
=
this
.
loginRemindService
.
listLoginRemindNum
(
realID
);
//
String loginRemind_list = this.loginRemindService.listLoginRemindNum(realID);
map
.
put
(
"loginRemindNum"
,
loginRemind_list
);
//
map.put("loginRemindNum", loginRemind_list);
map
.
put
(
"result"
,
true
);
//
map.put("result", true);
return
map
;
//
return map;
}
//
}
@RequestMapping
({
"/getAllsitesInformationNum"
})
@RequestMapping
({
"/getAllsitesInformationNum"
})
@ResponseBody
@ResponseBody
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment