Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7d846edc
authored
Feb 07, 2022
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签到逻辑,签到数大于等于当日可签到数就表示已经签过到了
1 parent
356c09ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/main/java/com/subsidy/service/impl/SignInRecordServiceImpl.java
src/main/resources/application.properties
src/main/java/com/subsidy/service/impl/SignInRecordServiceImpl.java
View file @
7d846ed
...
...
@@ -116,9 +116,9 @@ public class SignInRecordServiceImpl extends ServiceImpl<SignInRecordMapper, Sig
signInStatusVO
.
setStatus
(
flag
);
//获取有效课程
long
count
=
classMemberMappingMapper
.
getMemberClassCount
(
signInRecordDO
.
getMemberId
());
long
size
=
redisUtil
.
scan
(
RedisPrefixConstant
.
SUBSIDY_SIGN_INFO_PREFIX
+
signInRecordDO
.
getMemberId
()
+
"*:"
+
DateFormatUtil
.
format
(
new
Date
(),
"yyyy
MM
dd"
)+
"*"
).
stream
().
count
();
long
size
=
redisUtil
.
scan
(
RedisPrefixConstant
.
SUBSIDY_SIGN_INFO_PREFIX
+
signInRecordDO
.
getMemberId
()
+
"*:"
+
DateFormatUtil
.
format
(
new
Date
(),
"yyyy
-MM-
dd"
)+
"*"
).
stream
().
count
();
if
(
size
!
=
count
)
{
if
(
size
<
=
count
)
{
signInStatusVO
.
setStatus
(
false
);
}
...
...
src/main/resources/application.properties
View file @
7d846ed
# 环境配置
spring.profiles.active
=
dev
spring.profiles.active
=
prod
# 端口号
spring.server.port
=
2345
7
spring.server.port
=
2345
9
#嵌入tomcat配置
#和CPU数
spring.server.acceptorThreadCount
=
600
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment