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
45ce2726
Commit
45ce2726
authored
Aug 14, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兑换礼品核销校验
parent
c6ce937a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
RewardRedeemServiceImpl.java
...module/reward/service/redeem/RewardRedeemServiceImpl.java
+9
-9
No files found.
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/service/redeem/RewardRedeemServiceImpl.java
View file @
45ce2726
...
@@ -125,13 +125,13 @@ public class RewardRedeemServiceImpl extends AbstractService<RewardRedeemMapper,
...
@@ -125,13 +125,13 @@ public class RewardRedeemServiceImpl extends AbstractService<RewardRedeemMapper,
LambdaUpdateWrapper
<
RewardRedeemDO
>
wrapper
=
Wrappers
.
lambdaUpdate
();
LambdaUpdateWrapper
<
RewardRedeemDO
>
wrapper
=
Wrappers
.
lambdaUpdate
();
wrapper
.
eq
(
RewardRedeemDO:
:
getId
,
request
.
getId
());
wrapper
.
eq
(
RewardRedeemDO:
:
getId
,
request
.
getId
());
wrapper
.
set
(
RewardRedeemDO:
:
getStatus
,
RewardRedeemStatusEnum
.
REDEEMED
.
getValue
());
wrapper
.
set
(
RewardRedeemDO:
:
getStatus
,
RewardRedeemStatusEnum
.
REDEEMED
.
getValue
());
wrapper
.
set
(
RewardRedeemDO:
:
getRecipientName
,
request
.
getRecipientName
());
wrapper
.
set
(
StringUtils
.
isNotBlank
(
request
.
getRecipientName
()),
RewardRedeemDO:
:
getRecipientName
,
request
.
getRecipientName
());
wrapper
.
set
(
RewardRedeemDO:
:
getRecipientPhoneNum
,
request
.
getRecipientPhoneNum
());
wrapper
.
set
(
StringUtils
.
isNotBlank
(
request
.
getRecipientPhoneNum
()),
RewardRedeemDO:
:
getRecipientPhoneNum
,
request
.
getRecipientPhoneNum
());
wrapper
.
set
(
RewardRedeemDO:
:
getRecipientAddress
,
request
.
getRecipientAddress
());
wrapper
.
set
(
StringUtils
.
isNotBlank
(
request
.
getRecipientAddress
()),
RewardRedeemDO:
:
getRecipientAddress
,
request
.
getRecipientAddress
());
wrapper
.
set
(
RewardRedeemDO:
:
getCourierCompany
,
request
.
getCourierCompany
());
wrapper
.
set
(
request
.
getCourierCompany
()
!=
null
,
RewardRedeemDO:
:
getCourierCompany
,
request
.
getCourierCompany
());
wrapper
.
set
(
RewardRedeemDO:
:
getExpressNo
,
request
.
getExpressNo
());
wrapper
.
set
(
StringUtils
.
isNotBlank
(
request
.
getExpressNo
()),
RewardRedeemDO:
:
getExpressNo
,
request
.
getExpressNo
());
wrapper
.
set
(
RewardRedeemDO:
:
getExpressDate
,
request
.
getExpressDate
());
wrapper
.
set
(
request
.
getExpressDate
()
!=
null
,
RewardRedeemDO:
:
getExpressDate
,
request
.
getExpressDate
());
wrapper
.
set
(
RewardRedeemDO:
:
getExpressSender
,
request
.
getExpressSender
());
wrapper
.
set
(
StringUtils
.
isNotBlank
(
request
.
getExpressSender
()),
RewardRedeemDO:
:
getExpressSender
,
request
.
getExpressSender
());
wrapper
.
set
(
RewardRedeemDO:
:
getVerifyUser
,
request
.
getVerifyUser
());
wrapper
.
set
(
RewardRedeemDO:
:
getVerifyUser
,
request
.
getVerifyUser
());
wrapper
.
set
(
RewardRedeemDO:
:
getVerifyTime
,
request
.
getVerifyTime
());
wrapper
.
set
(
RewardRedeemDO:
:
getVerifyTime
,
request
.
getVerifyTime
());
wrapper
.
set
(
RewardRedeemDO:
:
getUpdater
,
SecurityFrameworkUtils
.
getLoginUserId
());
wrapper
.
set
(
RewardRedeemDO:
:
getUpdater
,
SecurityFrameworkUtils
.
getLoginUserId
());
...
@@ -328,10 +328,10 @@ public class RewardRedeemServiceImpl extends AbstractService<RewardRedeemMapper,
...
@@ -328,10 +328,10 @@ public class RewardRedeemServiceImpl extends AbstractService<RewardRedeemMapper,
.
collect
(
Collectors
.
toMap
(
RewardRedeemDO:
:
getId
,
Function
.
identity
(),
(
c1
,
c2
)
->
c1
));
.
collect
(
Collectors
.
toMap
(
RewardRedeemDO:
:
getId
,
Function
.
identity
(),
(
c1
,
c2
)
->
c1
));
Map
<
String
,
String
>
failedInfoMap
=
new
HashMap
<>();
Map
<
String
,
String
>
failedInfoMap
=
new
HashMap
<>();
dataList
.
forEach
(
data
->
{
dataList
.
forEach
(
data
->
{
long
id
;
long
id
;
try
{
try
{
id
=
Long
.
parseLong
(
data
.
getId
());
id
=
Long
.
parseLong
(
data
.
getId
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
failedInfoMap
.
put
(
data
.
getId
()
==
null
?
""
:
data
.
getId
(),
I18nMessage
.
getMessage
(
"reward.redeem.not.exist"
));
failedInfoMap
.
put
(
data
.
getId
()
==
null
?
""
:
data
.
getId
(),
I18nMessage
.
getMessage
(
"reward.redeem.not.exist"
));
return
;
return
;
}
}
...
...
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