Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
point-project
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
point-project
Commits
982f12f6
Commit
982f12f6
authored
Jan 13, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分优化
parent
84939e98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
cloud-point/src/main/java/com/yizhi/application/constant/PointChangeReasonConstant.java
+6
-2
cloud-point/src/main/java/com/yizhi/application/service/impl/PointDetailsServiceImpl.java
+3
-0
No files found.
cloud-point/src/main/java/com/yizhi/application/constant/PointChangeReasonConstant.java
View file @
982f12f6
...
@@ -5,7 +5,7 @@ public enum PointChangeReasonConstant {
...
@@ -5,7 +5,7 @@ public enum PointChangeReasonConstant {
CREDITEXAMDONE
(
"CreditExamDone"
,
"考试阅卷通过"
),
CREDITEXAMDONE
(
"CreditExamDone"
,
"考试阅卷通过"
),
CREDITCOURSEDONE1
(
"CreditCourseDone1"
,
"课程学习完成"
),
CREDITCOURSEDONE1
(
"CreditCourseDone1"
,
"课程学习完成"
),
CREDITEXAMPASSED
(
"CreditExamPassed"
,
"考试通过"
),
CREDITEXAMPASSED
(
"CreditExamPassed"
,
"考试通过"
),
CREDITRESEARCHDONE
(
"CreditResearchDone"
,
"
调研
通过"
),
CREDITRESEARCHDONE
(
"CreditResearchDone"
,
"
投票
通过"
),
CREDITCOURSECHAPTERDONE
(
"CreditCourseChapterDone"
,
"课程章节完成"
),
CREDITCOURSECHAPTERDONE
(
"CreditCourseChapterDone"
,
"课程章节完成"
),
CREDITASSIGNMENTPASSED
(
"CreditAssignmentPassed"
,
"作业通过"
),
CREDITASSIGNMENTPASSED
(
"CreditAssignmentPassed"
,
"作业通过"
),
CREDITQUIZPASSED
(
"CreditQuizPassed"
,
"课程章节测验通过"
),
CREDITQUIZPASSED
(
"CreditQuizPassed"
,
"课程章节测验通过"
),
...
@@ -17,7 +17,11 @@ public enum PointChangeReasonConstant {
...
@@ -17,7 +17,11 @@ public enum PointChangeReasonConstant {
CREDITFORUMINVITATION
(
"CreditForumInvitation"
,
"发布论坛帖子发放积分"
),
CREDITFORUMINVITATION
(
"CreditForumInvitation"
,
"发布论坛帖子发放积分"
),
CREDITFORUMCOMMENT
(
"CreditForumComment"
,
"发布论坛回复发放积分"
),
CREDITFORUMCOMMENT
(
"CreditForumComment"
,
"发布论坛回复发放积分"
),
CREDITCALENDARDONE
(
"CreditClendarDone"
,
"签到打卡成功"
),
CREDITCALENDARDONE
(
"CreditClendarDone"
,
"签到打卡成功"
),
CREDITSIGNDONE
(
"CreditSignDone"
,
"项目签到成功"
);
CREDITSIGNDONE
(
"CreditSignDone"
,
"项目签到成功"
),
POINT_LOGIN
(
"point_login"
,
"登录"
),
POINT_READ
(
"point_read"
,
"阅读文章"
),
POINT_DRAFT
(
"point_draft"
,
"我要投稿"
),
POINT_COMMENT
(
"point_comment"
,
"发表评论"
);
// key
// key
private
String
key
;
private
String
key
;
...
...
cloud-point/src/main/java/com/yizhi/application/service/impl/PointDetailsServiceImpl.java
View file @
982f12f6
...
@@ -111,6 +111,9 @@ public class PointDetailsServiceImpl extends ServiceImpl<PointDetailsMapper, com
...
@@ -111,6 +111,9 @@ public class PointDetailsServiceImpl extends ServiceImpl<PointDetailsMapper, com
Page
<
PointDetailsVO
>
page
=
new
Page
<
PointDetailsVO
>(
pageNo
,
pageSize
);
Page
<
PointDetailsVO
>
page
=
new
Page
<
PointDetailsVO
>(
pageNo
,
pageSize
);
List
<
PointDetailsVO
>
list1
=
pointDetailsMapper
.
aMonthList
(
page
,
year
,
type
,
accountId
,
companyId
,
siteId
,
null
);
List
<
PointDetailsVO
>
list1
=
pointDetailsMapper
.
aMonthList
(
page
,
year
,
type
,
accountId
,
companyId
,
siteId
,
null
);
List
<
PointDetailsVO
>
pointList
=
list1
.
parallelStream
().
map
(
pointDetailsVO
->
{
List
<
PointDetailsVO
>
pointList
=
list1
.
parallelStream
().
map
(
pointDetailsVO
->
{
if
(
pointDetailsVO
.
getLearnType
()==
null
){
pointDetailsVO
.
setLearnType
(
""
);
}
log
.
info
(
"类型:"
+
pointDetailsVO
.
getLearnType
());
log
.
info
(
"类型:"
+
pointDetailsVO
.
getLearnType
());
if
(
pointDetailsVO
.
getLearnType
().
contains
(
PointChangeReasonConstant
.
CREDITEXAMDONE
.
getValue
()))
{
if
(
pointDetailsVO
.
getLearnType
().
contains
(
PointChangeReasonConstant
.
CREDITEXAMDONE
.
getValue
()))
{
// 考试阅卷通过
// 考试阅卷通过
...
...
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