Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
d50a0c66
Commit
d50a0c66
authored
Dec 20, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
fb5c4749
65956a4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
ActivityPopularizeBiz.java
...com/xxfc/platform/activity/biz/ActivityPopularizeBiz.java
+16
-5
No files found.
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/ActivityPopularizeBiz.java
View file @
d50a0c66
...
@@ -103,6 +103,9 @@ public class ActivityPopularizeBiz extends BaseBiz<ActivityPopularizeMapper, Act
...
@@ -103,6 +103,9 @@ public class ActivityPopularizeBiz extends BaseBiz<ActivityPopularizeMapper, Act
//判断是否活动超时
//判断是否活动超时
if
(
now
.
before
(
start
)
||
now
.
after
(
end
))
{
if
(
now
.
before
(
start
)
||
now
.
after
(
end
))
{
log
.
error
(
"不在活动范围内 入参Json:"
+
JSONUtil
.
toJsonStr
(
registerQueueDTO
));
log
.
error
(
"不在活动范围内 入参Json:"
+
JSONUtil
.
toJsonStr
(
registerQueueDTO
));
//已完成,设置为活动结束
activityPopularize
.
setStatus
(
1
);
popularizeBiz
.
updateSelectiveByIdRe
(
activityPopularize
);
return
;
return
;
}
}
...
@@ -170,13 +173,21 @@ public class ActivityPopularizeBiz extends BaseBiz<ActivityPopularizeMapper, Act
...
@@ -170,13 +173,21 @@ public class ActivityPopularizeBiz extends BaseBiz<ActivityPopularizeMapper, Act
if
(!
SYS_TRUE
.
equals
(
activityPopularizeUser
.
getStatus
()))
{
if
(!
SYS_TRUE
.
equals
(
activityPopularizeUser
.
getStatus
()))
{
// AwardDTO awardDTO = JSONUtil.toBean(activityPopularize.getValue(), AwardDTO.class);
// AwardDTO awardDTO = JSONUtil.toBean(activityPopularize.getValue(), AwardDTO.class);
//检查是否满足奖励
//检查是否满足奖励
if
(
relationBiz
.
selectList
(
new
ActivityPopularizeRelation
()
{{
Long
limitNumber
=
popularizeUserBiz
.
selectCount
(
new
ActivityPopularizeUser
()
{{
setMajorUserId
(
majorUserId
);
setPopularizeId
(
activityPopularize
.
getId
());
}}).
size
()
>=
10
&&
popularizeUserBiz
.
selectCount
(
new
ActivityPopularizeUser
()
{{
setPopularizeId
(
activityPopularize
.
getId
());
setPopularizeId
(
activityPopularize
.
getId
());
setCurrentProgress
(
new
BigDecimal
(
"50"
));
setCurrentProgress
(
new
BigDecimal
(
"50"
));
}})
<=
activityPopularize
.
getNumLimit
())
{
}});
Long
userNumber
=
relationBiz
.
selectCount
(
new
ActivityPopularizeRelation
()
{{
setMajorUserId
(
majorUserId
);
setPopularizeId
(
activityPopularize
.
getId
());
}});
if
(
limitNumber
>=
activityPopularize
.
getNumLimit
())
{
//已完成,设置为活动结束
activityPopularize
.
setStatus
(
1
);
popularizeBiz
.
updateSelectiveByIdRe
(
activityPopularize
);
return
;
}
if
(
userNumber
>=
10
&&
limitNumber
<
activityPopularize
.
getNumLimit
())
{
apLogDTO
.
setStatus
(
SYS_TRUE
);
apLogDTO
.
setStatus
(
SYS_TRUE
);
popularizeLogBiz
.
updateSelectiveById
(
BeanUtil
.
toBean
(
apLogDTO
,
ActivityPopularizeLog
.
class
));
popularizeLogBiz
.
updateSelectiveById
(
BeanUtil
.
toBean
(
apLogDTO
,
ActivityPopularizeLog
.
class
));
activityPopularizeUser
.
setStatus
(
SYS_TRUE
);
activityPopularizeUser
.
setStatus
(
SYS_TRUE
);
...
...
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