记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
ebd062bd
Commit
ebd062bd
authored
Nov 11, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最大积分限制 添加
parent
c84ffaae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
StoneScoreLogsServiceImpl.java
...service/stone/service/impl/StoneScoreLogsServiceImpl.java
+17
-0
No files found.
liquidnet-bus-service/liquidnet-service-stone/liquidnet-service-stone-impl/src/main/java/com/liquidnet/service/stone/service/impl/StoneScoreLogsServiceImpl.java
View file @
ebd062bd
...
...
@@ -72,6 +72,20 @@ public class StoneScoreLogsServiceImpl implements IStoneScoreLogsService {
if
(
TaskId
==
2111
)
{
StoneUserVo
vo
=
stoneRedisUtils
.
getUserData
(
uid
);
if
(
vo
==
null
)
{
vo
=
StoneUserVo
.
getNew
();
vo
.
getTask
();
vo
.
setUid
(
uid
);
vo
.
setStatus
(
1
);
//redis
stoneRedisUtils
.
setUserData
(
uid
,
vo
);
//mongo
stoneMongoUtils
.
userCreate
(
vo
);
//mysql 创建用户积分表数据
queueUtils
.
sendMsgByRedis
(
MQConst
.
StoneQueue
.
STONE_INSERT_USER
.
getKey
(),
SqlMapping
.
get
(
"stone_score_user.insert"
,
IDGenerator
.
nextTimeId2
(),
vo
.
getUid
(),
vo
.
getStatus
(),
LocalDateTime
.
now
())
);
}
// Date userDay = DateUtil.parse(vo.getCurrentDay()==null ? DateUtil.getNowTime() : vo.getCurrentDay(), "yyyy-MM-dd");
Date
userMonth
=
DateUtil
.
parse
(
vo
.
getCurrentMonth
()==
null
?
DateUtil
.
getNowTime
()
:
vo
.
getCurrentMonth
(),
"yyyy-MM"
);
int
monthScore
=
vo
.
getMonthScore
()
==
null
?
0
:
vo
.
getMonthScore
();
...
...
@@ -94,6 +108,9 @@ public class StoneScoreLogsServiceImpl implements IStoneScoreLogsService {
// score = dayMax;
// }
// }
vo
.
setCurrentMonth
(
DateUtil
.
format
(
userMonth
,
DateUtil
.
Formatter
.
yyyyMMddHHmmss
));
vo
.
setMonthScore
(
monthScore
+
score
);
stoneRedisUtils
.
setUserData
(
uid
,
vo
);
if
(
score
==
0
)
{
return
"成功"
;
}
...
...
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