Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
e065ae6d
Commit
e065ae6d
authored
Sep 14, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat-492: 客户端兑换日志列表新增兑换状态显示
parent
9f7a3655
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
AppRewardRedeemListRespVO.java
...d/controller/app/redeem/vo/AppRewardRedeemListRespVO.java
+6
-2
RewardRedeemServiceImpl.java
...module/reward/service/redeem/RewardRedeemServiceImpl.java
+4
-1
No files found.
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/controller/app/redeem/vo/AppRewardRedeemListRespVO.java
View file @
e065ae6d
...
@@ -31,8 +31,6 @@ public class AppRewardRedeemListRespVO {
...
@@ -31,8 +31,6 @@ public class AppRewardRedeemListRespVO {
private
String
rewardTitleZh
;
private
String
rewardTitleZh
;
@ApiModelProperty
(
value
=
"礼品名称(英文)"
)
@ApiModelProperty
(
value
=
"礼品名称(英文)"
)
private
String
rewardTitleEn
;
private
String
rewardTitleEn
;
@ApiModelProperty
(
value
=
"礼品名称(法文)"
)
private
String
rewardTitleFr
;
@ApiModelProperty
(
value
=
"中文礼品图片"
)
@ApiModelProperty
(
value
=
"中文礼品图片"
)
private
String
imgZh
;
private
String
imgZh
;
@ApiModelProperty
(
value
=
"英文礼品图片"
)
@ApiModelProperty
(
value
=
"英文礼品图片"
)
...
@@ -44,4 +42,10 @@ public class AppRewardRedeemListRespVO {
...
@@ -44,4 +42,10 @@ public class AppRewardRedeemListRespVO {
@ApiModelProperty
(
value
=
"日志时间"
)
@ApiModelProperty
(
value
=
"日志时间"
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
private
Date
createTime
;
private
Date
createTime
;
@ApiModelProperty
(
value
=
"兑换状态"
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"兑换状态中文"
)
private
String
statusZh
;
@ApiModelProperty
(
value
=
"兑换状态英文"
)
private
String
statusEn
;
}
}
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/service/redeem/RewardRedeemServiceImpl.java
View file @
e065ae6d
...
@@ -322,18 +322,21 @@ public class RewardRedeemServiceImpl extends AbstractService<RewardRedeemMapper,
...
@@ -322,18 +322,21 @@ public class RewardRedeemServiceImpl extends AbstractService<RewardRedeemMapper,
// 获得兑换记录列表,并根据时间倒序
// 获得兑换记录列表,并根据时间倒序
return
rewardRedeemDOList
.
stream
().
map
(
rewardRedeemDO
->
{
return
rewardRedeemDOList
.
stream
().
map
(
rewardRedeemDO
->
{
RewardDO
rewardDO
=
rewardService
.
getById
(
rewardRedeemDO
.
getRewardId
());
RewardDO
rewardDO
=
rewardService
.
getById
(
rewardRedeemDO
.
getRewardId
());
String
status
=
rewardRedeemDO
.
getStatus
().
toString
();
return
AppRewardRedeemListRespVO
.
builder
()
return
AppRewardRedeemListRespVO
.
builder
()
.
id
(
rewardRedeemDO
.
getId
())
.
id
(
rewardRedeemDO
.
getId
())
.
redemptionNumber
(
rewardRedeemDO
.
getRedemptionNumber
())
.
redemptionNumber
(
rewardRedeemDO
.
getRedemptionNumber
())
.
createTime
(
rewardRedeemDO
.
getCreateTime
())
.
createTime
(
rewardRedeemDO
.
getCreateTime
())
.
rewardCode
(
rewardRedeemDO
.
getRewardId
())
.
rewardCode
(
rewardRedeemDO
.
getRewardId
())
.
rewardTitleEn
(
rewardDO
.
getTitleEn
())
.
rewardTitleEn
(
rewardDO
.
getTitleEn
())
.
rewardTitleFr
(
rewardDO
.
getTitleFr
())
.
rewardTitleZh
(
rewardDO
.
getTitleZh
())
.
rewardTitleZh
(
rewardDO
.
getTitleZh
())
.
imgZh
(
rewardDO
.
getImgZh
())
.
imgZh
(
rewardDO
.
getImgZh
())
.
imgEn
(
rewardDO
.
getImgEn
())
.
imgEn
(
rewardDO
.
getImgEn
())
.
rewardCount
(
rewardRedeemDO
.
getRewardCount
())
.
rewardCount
(
rewardRedeemDO
.
getRewardCount
())
.
scoreCount
(
rewardRedeemDO
.
getScoreCount
())
.
scoreCount
(
rewardRedeemDO
.
getScoreCount
())
.
status
(
rewardRedeemDO
.
getStatus
())
.
statusEn
(
DictFrameworkUtils
.
getDictDataFromCache
(
"reward_redeem_status"
,
status
).
getLabelEn
())
.
statusZh
(
DictFrameworkUtils
.
getDictDataFromCache
(
"reward_redeem_status"
,
status
).
getLabel
())
.
build
();
.
build
();
}).
sorted
(
Comparator
.
comparing
(
AppRewardRedeemListRespVO:
:
getCreateTime
).
reversed
()).
collect
(
Collectors
.
toList
());
}).
sorted
(
Comparator
.
comparing
(
AppRewardRedeemListRespVO:
:
getCreateTime
).
reversed
()).
collect
(
Collectors
.
toList
());
}
}
...
...
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