Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
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
pseer
gxpt_ht
Commits
0950b7ac
Commit
0950b7ac
authored
Nov 25, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改抽奖
parent
b642fd7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
LotteryRecordsLog.java
.../src/main/java/share/system/domain/LotteryRecordsLog.java
+2
-2
WheelGameServiceImpl.java
.../java/share/system/service/impl/WheelGameServiceImpl.java
+3
-6
No files found.
share-system/src/main/java/share/system/domain/LotteryRecordsLog.java
View file @
0950b7ac
...
...
@@ -73,9 +73,9 @@ public class LotteryRecordsLog extends BaseEntity {
private
String
hitPrize
;
/**
* 是否发放
1未发放,2 已发放 3 发放失败
* 是否发放
0:未发放,1:已发放
*/
@Excel
(
name
=
" 是否发放
1未发放,2 已发放 3 发放失败
"
)
@Excel
(
name
=
" 是否发放
0:未发放,1:已发放
"
)
private
Integer
isSend
;
/**
...
...
share-system/src/main/java/share/system/service/impl/WheelGameServiceImpl.java
View file @
0950b7ac
...
...
@@ -134,7 +134,7 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
}
List
<
Prize
>
prizeList
=
prizeService
.
list
(
new
LambdaQueryWrapper
<
Prize
>().
eq
(
Prize:
:
getGameId
,
wheelGame
.
getId
()));
Prize
prize
=
luckDraw
(
prizeList
,
wheelGame
.
getId
());
Prize
prize
=
luckDraw
(
prizeList
,
user
.
getId
());
LotteryRecordsLog
log
=
new
LotteryRecordsLog
();
log
.
setGameId
(
wheelGame
.
getId
());
...
...
@@ -149,13 +149,10 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
try
{
switch
(
couponType
)
{
case
COUPON:
SConsumerCoupon
sConsumerCoupon
=
new
SConsumerCoupon
();
sConsumerCoupon
.
setConsumerId
(
user
.
getId
());
sConsumerCoupon
.
setCouponId
(
prize
.
getCouponId
());
SConsumerCoupon
give
=
sConsumerCouponService
.
give
(
user
.
getId
(),
prize
.
getCouponId
(),
30
);
log
.
setIsHit
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setHitPrize
(
prize
.
getPrizeName
()
+
":"
+
give
.
getName
());
log
.
setHitPrize
(
PrizeTypeEnum
.
COUPON
.
getName
());
log
.
setSendMsg
(
PrizeTypeEnum
.
COUPON
.
getName
()
+
":"
+
give
.
getName
()
+
"以发放"
);
lotteryRecordsLogService
.
save
(
log
);
prize
.
setCurrentNum
(
prize
.
getCurrentNum
()
+
YesNoEnum
.
yes
.
getIndex
());
...
...
@@ -166,7 +163,7 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
case
GOODS:
log
.
setIsHit
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setHitPrize
(
PrizeTypeEnum
.
GOODS
.
getName
()
+
":"
+
prize
.
getPrizeName
()
);
log
.
setHitPrize
(
PrizeTypeEnum
.
GOODS
.
getName
());
log
.
setSendMsg
(
PrizeTypeEnum
.
GOODS
.
getName
()
+
":"
+
prize
.
getPrizeName
()
+
"以发放"
);
lotteryRecordsLogService
.
save
(
log
);
prize
.
setCurrentNum
(
prize
.
getCurrentNum
()
+
YesNoEnum
.
yes
.
getIndex
());
...
...
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