Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
4fc0e652
Commit
4fc0e652
authored
Dec 12, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
累计签到
parent
fafddce1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserSigninServiceImpl.java
.../main/java/com/wwdz/ch/wx/impl/UserSigninServiceImpl.java
+4
-7
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserSigninServiceImpl.java
View file @
4fc0e652
...
...
@@ -204,14 +204,18 @@ public class UserSigninServiceImpl implements UserSigninService {
resultMap
.
put
(
"consecutiveDays"
,
0
);
//还需签到的天数
resultMap
.
put
(
"needConsecutiveDays"
,
7
);
resultMap
.
put
(
"totalConsecutiveDays"
,
0
);
}
else
if
(
yesterdaySignIn
==
null
&&
todayRecord
!=
null
)
{
resultMap
.
put
(
"consecutiveDays"
,
todayRecord
.
getConsecutiveDays
());
resultMap
.
put
(
"needConsecutiveDays"
,
6
);
resultMap
.
put
(
"totalConsecutiveDays"
,
todayRecord
.
getTotalConsecutiveDays
());
}
else
{
if
(
todayRecord
!=
null
)
{
resultMap
.
put
(
"consecutiveDays"
,
todayRecord
.
getConsecutiveDays
());
resultMap
.
put
(
"totalConsecutiveDays"
,
todayRecord
.
getTotalConsecutiveDays
());
}
else
{
resultMap
.
put
(
"consecutiveDays"
,
yesterdaySignIn
.
getConsecutiveDays
());
resultMap
.
put
(
"totalConsecutiveDays"
,
yesterdaySignIn
.
getTotalConsecutiveDays
());
}
int
consecutiveDays
=
Integer
.
valueOf
(
resultMap
.
get
(
"consecutiveDays"
).
toString
());
if
(
consecutiveDays
<
7
)
{
...
...
@@ -224,13 +228,6 @@ public class UserSigninServiceImpl implements UserSigninService {
resultMap
.
put
(
"needConsecutiveDays"
,
7
);
}
}
//连续签到天数
UserSignIn
lastedRecord
=
userSignInDao
.
findLastedRecord
(
userId
);
if
(
lastedRecord
==
null
)
{
resultMap
.
put
(
"totalConsecutiveDays"
,
0
);
}
else
{
resultMap
.
put
(
"totalConsecutiveDays"
,
lastedRecord
.
getTotalConsecutiveDays
()
==
null
?
0
:
lastedRecord
.
getTotalConsecutiveDays
());
}
//当前是几号
LocalDate
today
=
LocalDate
.
now
();
...
...
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