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
ffe6012b
Commit
ffe6012b
authored
Nov 26, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改抽奖日志
parent
35c298f6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
32 deletions
+9
-32
LotteryRecordsLog.java
.../src/main/java/share/system/domain/LotteryRecordsLog.java
+1
-24
WheelGameServiceImpl.java
.../java/share/system/service/impl/WheelGameServiceImpl.java
+7
-7
LotteryRecordsLogMapper.xml
.../main/resources/mapper/system/LotteryRecordsLogMapper.xml
+1
-1
No files found.
share-system/src/main/java/share/system/domain/LotteryRecordsLog.java
View file @
ffe6012b
...
...
@@ -5,8 +5,6 @@ import com.baomidou.mybatisplus.annotation.TableId;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
share.common.annotation.Excel
;
import
share.common.core.domain.BaseEntity
;
...
...
@@ -70,7 +68,7 @@ public class LotteryRecordsLog extends BaseEntity {
* 中奖奖品
*/
@Excel
(
name
=
"中奖奖品"
)
private
String
hitPrize
;
private
Integer
hitPrize
;
/**
* 是否发放 0:未发放,1:已发放
...
...
@@ -84,25 +82,4 @@ public class LotteryRecordsLog extends BaseEntity {
@Excel
(
name
=
"发放结果"
)
private
String
sendMsg
;
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"gameId"
,
getGameId
())
.
append
(
"userId"
,
getUserId
())
.
append
(
"userName"
,
getUserName
())
.
append
(
"phone"
,
getPhone
())
.
append
(
"drawTime"
,
getDrawTime
())
.
append
(
"isHit"
,
getIsHit
())
.
append
(
"hitPrize"
,
getHitPrize
())
.
append
(
"isSend"
,
getIsSend
())
.
append
(
"sendMsg"
,
getSendMsg
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
}
}
share-system/src/main/java/share/system/service/impl/WheelGameServiceImpl.java
View file @
ffe6012b
...
...
@@ -165,7 +165,7 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
SConsumerCoupon
give
=
sConsumerCouponService
.
give
(
user
.
getId
(),
prize
.
getCouponId
(),
30
);
log
.
setIsHit
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setHitPrize
(
PrizeTypeEnum
.
COUPON
.
get
Nam
e
());
log
.
setHitPrize
(
PrizeTypeEnum
.
COUPON
.
get
Cod
e
());
log
.
setSendMsg
(
PrizeTypeEnum
.
COUPON
.
getName
()
+
":"
+
give
.
getName
()
+
"以发放"
);
lotteryRecordsLogService
.
save
(
log
);
prize
.
setCurrentNum
(
prize
.
getCurrentNum
()
+
YesNoEnum
.
yes
.
getIndex
());
...
...
@@ -176,7 +176,7 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
case
GOODS:
log
.
setIsHit
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
no
.
getIndex
());
log
.
setHitPrize
(
PrizeTypeEnum
.
GOODS
.
get
Nam
e
());
log
.
setHitPrize
(
PrizeTypeEnum
.
GOODS
.
get
Cod
e
());
log
.
setSendMsg
(
PrizeTypeEnum
.
GOODS
.
getName
()
+
":"
+
prize
.
getPrizeName
()
+
"未发放"
);
lotteryRecordsLogService
.
save
(
log
);
prize
.
setCurrentNum
(
prize
.
getCurrentNum
()
+
YesNoEnum
.
yes
.
getIndex
());
...
...
@@ -191,7 +191,7 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
consumerWalletService
.
giveIntegral
(
consumerWallet
);
log
.
setIsHit
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setHitPrize
(
PrizeTypeEnum
.
INTEGRAL
.
get
Nam
e
());
log
.
setHitPrize
(
PrizeTypeEnum
.
INTEGRAL
.
get
Cod
e
());
log
.
setSendMsg
(
PrizeTypeEnum
.
INTEGRAL
.
getName
()
+
":"
+
prize
.
getPrizeValue
()
+
"以发放"
);
lotteryRecordsLogService
.
save
(
log
);
prize
.
setCurrentNum
(
prize
.
getCurrentNum
()
+
YesNoEnum
.
yes
.
getIndex
());
...
...
@@ -206,7 +206,7 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
consumerWalletService
.
giveDuration
(
durationrWallet
);
log
.
setIsHit
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setHitPrize
(
PrizeTypeEnum
.
TIME
.
get
Nam
e
());
log
.
setHitPrize
(
PrizeTypeEnum
.
TIME
.
get
Cod
e
());
log
.
setSendMsg
(
PrizeTypeEnum
.
TIME
.
getName
()
+
":"
+
prize
.
getPrizeValue
()
+
"以发放"
);
lotteryRecordsLogService
.
save
(
log
);
prize
.
setCurrentNum
(
prize
.
getCurrentNum
()
+
YesNoEnum
.
yes
.
getIndex
());
...
...
@@ -221,7 +221,7 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
consumerWalletService
.
giveAmount
(
giveAmountWallet
);
log
.
setIsHit
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setHitPrize
(
PrizeTypeEnum
.
MONEY
.
get
Nam
e
());
log
.
setHitPrize
(
PrizeTypeEnum
.
MONEY
.
get
Cod
e
());
log
.
setSendMsg
(
PrizeTypeEnum
.
MONEY
.
getName
()
+
":"
+
prize
.
getPrizeValue
()
+
"以发放"
);
lotteryRecordsLogService
.
save
(
log
);
prize
.
setCurrentNum
(
prize
.
getCurrentNum
()
+
YesNoEnum
.
yes
.
getIndex
());
...
...
@@ -232,7 +232,7 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
case
THANK:
log
.
setIsHit
(
YesNoEnum
.
no
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
no
.
getIndex
());
log
.
setHitPrize
(
"谢谢参与"
);
log
.
setHitPrize
(
PrizeTypeEnum
.
THANK
.
getCode
()
);
log
.
setSendMsg
(
"谢谢参与"
);
lotteryRecordsLogService
.
save
(
log
);
prize
.
setCurrentNum
(
prize
.
getCurrentNum
()
+
YesNoEnum
.
yes
.
getIndex
());
...
...
@@ -255,7 +255,7 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
sConsumerService
.
updateById
(
user
);
log
.
setIsHit
(
YesNoEnum
.
no
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
no
.
getIndex
());
log
.
setHitPrize
(
"谢谢参与"
);
log
.
setHitPrize
(
PrizeTypeEnum
.
THANK
.
getCode
()
);
log
.
setSendMsg
(
"谢谢参与"
);
lotteryRecordsLogService
.
save
(
log
);
return
new
Prize
();
...
...
share-system/src/main/resources/mapper/system/LotteryRecordsLogMapper.xml
View file @
ffe6012b
...
...
@@ -66,7 +66,7 @@
<if
test=
"gameName != null "
>
and w.name like concat('%', #{gameName}, '%')
</if>
<if
test=
"userId != null "
>
and l.user_id = #{userId}
</if>
<if
test=
"userName != null and userName != ''"
>
and l.user_name like concat('%', #{userName}, '%')
</if>
<if
test=
"phone != null and phone != ''"
>
and l.phone
= #{phone}
</if>
<if
test=
"phone != null and phone != ''"
>
and l.phone
like concat('%', #{phone}, '%')
</if>
<if
test=
"drawTime != null "
>
and l.draw_time = #{drawTime}
</if>
<if
test=
"isHit != null "
>
and l.is_hit = #{isHit}
</if>
<if
test=
"hitPrize != null and hitPrize != ''"
>
and l.hit_prize = #{hitPrize}
</if>
...
...
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