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
37d98533
Commit
37d98533
authored
Nov 27, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'quanku_v3.6' into quanku_v3.7
parents
f00339db
3615b9e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserSigninServiceImpl.java
.../main/java/com/wwdz/ch/wx/impl/UserSigninServiceImpl.java
+9
-4
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserSigninServiceImpl.java
View file @
37d98533
...
...
@@ -163,7 +163,7 @@ public class UserSigninServiceImpl implements UserSigninService {
distributionOrder
.
setUpdateTime
(
new
Date
());
distributionOrder
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
GIFT
.
getCode
());
distributionOrder
.
setRemark
(
null
);
distributionOrder
.
setState
(
DistributionEnum
.
DistributionOrderStateEnum
.
PRE_S
IGNE
D
.
getCode
());
distributionOrder
.
setState
(
DistributionEnum
.
DistributionOrderStateEnum
.
PRE_S
EN
D
.
getCode
());
distributionOrderDao
.
insert
(
distributionOrder
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
...
...
@@ -189,11 +189,14 @@ public class UserSigninServiceImpl implements UserSigninService {
//检查昨天是否打过卡
UserSignIn
yesterdaySignIn
=
userSignInDao
.
findYesterdayRecord
(
userId
);
if
(
yesterdaySignIn
==
null
)
{
if
(
yesterdaySignIn
==
null
&&
todayRecord
==
null
)
{
//连续签到天数
resultMap
.
put
(
"consecutiveDays"
,
0
);
//还需签到的天数
resultMap
.
put
(
"needConsecutiveDays"
,
7
);
}
else
if
(
yesterdaySignIn
==
null
&&
todayRecord
!=
null
)
{
resultMap
.
put
(
"consecutiveDays"
,
todayRecord
.
getConsecutiveDays
());
resultMap
.
put
(
"needConsecutiveDays"
,
6
);
}
else
{
if
(
todayRecord
!=
null
)
{
resultMap
.
put
(
"consecutiveDays"
,
todayRecord
.
getConsecutiveDays
());
...
...
@@ -201,12 +204,14 @@ public class UserSigninServiceImpl implements UserSigninService {
resultMap
.
put
(
"consecutiveDays"
,
yesterdaySignIn
.
getConsecutiveDays
());
}
int
consecutiveDays
=
Integer
.
valueOf
(
resultMap
.
get
(
"consecutiveDays"
).
toString
());
if
(
yesterdaySignIn
.
getConsecutiveDays
()
<
7
)
{
if
(
consecutiveDays
<
7
)
{
resultMap
.
put
(
"needConsecutiveDays"
,
7
-
consecutiveDays
);
}
else
if
(
consecutiveDays
>=
7
&&
consecutiveDays
<
14
)
{
resultMap
.
put
(
"needConsecutiveDays"
,
14
-
consecutiveDays
);
}
else
{
}
else
if
(
consecutiveDays
>=
14
&&
consecutiveDays
<
21
)
{
resultMap
.
put
(
"needConsecutiveDays"
,
21
-
consecutiveDays
);
}
else
{
resultMap
.
put
(
"needConsecutiveDays"
,
7
);
}
}
//当前是几号
...
...
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