记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
1f858362
Commit
1f858362
authored
Oct 19, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:会员退款回调返回描述赋值属性纠正;
fix:券码生成规则调整;
parent
3753fa7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
PlatformMemberRefundService.java
...atform/service/impl/adam/PlatformMemberRefundService.java
+1
-1
PlatformCandyCouponService.java
...atform/service/impl/candy/PlatformCandyCouponService.java
+7
-1
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/PlatformMemberRefundService.java
View file @
1f858362
...
...
@@ -58,7 +58,7 @@ public class PlatformMemberRefundService extends ServiceImpl<AdamMemberRefundMap
LambdaUpdateWrapper
<
AdamMemberRefund
>
memberRefundLambdaUpdateWrapper
=
Wrappers
.
lambdaUpdate
(
AdamMemberRefund
.
class
)
.
eq
(
AdamMemberRefund:
:
getRefundNo
,
refundNo
);
memberRefundLambdaUpdateWrapper
.
set
(
AdamMemberRefund:
:
getRefundAt
,
refundAt
);
memberRefundLambdaUpdateWrapper
.
set
(
AdamMemberRefund:
:
getRe
fund
Reason
,
refundError
);
memberRefundLambdaUpdateWrapper
.
set
(
AdamMemberRefund:
:
getRe
pay
Reason
,
refundError
);
memberRefundLambdaUpdateWrapper
.
set
(
AdamMemberRefund:
:
getUpdatedAt
,
now
);
switch
(
status
)
{
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/candy/PlatformCandyCouponService.java
View file @
1f858362
...
...
@@ -21,8 +21,10 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
java.nio.charset.StandardCharsets
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Base64
;
import
java.util.List
;
@Slf4j
...
...
@@ -89,9 +91,13 @@ public class PlatformCandyCouponService extends ServiceImpl<CandyCouponMapper, C
List
<
CandyCouponCode
>
initCouponCodeList
=
new
ArrayList
<>();
LocalDateTime
now
=
LocalDateTime
.
now
();
Integer
eventAmt
=
mgtCoupon
.
getEventAmt
();
Base64
.
Encoder
encoder
=
Base64
.
getEncoder
();
for
(
int
i
=
0
;
i
<
eventAmt
;
i
++)
{
CandyCouponCode
couponCode
=
new
CandyCouponCode
();
couponCode
.
setCcode
(
RandomStringUtils
.
randomAlphanumeric
(
16
));
String
lStrEncoder
=
encoder
.
encodeToString
((
System
.
nanoTime
()
+
RandomStringUtils
.
randomNumeric
(
3
)).
getBytes
(
StandardCharsets
.
UTF_8
));
couponCode
.
setCcode
(
lStrEncoder
.
replace
(
"="
,
""
));
couponCode
.
setCouponId
(
coupon
.
getCouponId
());
couponCode
.
setState
(
0
);
couponCode
.
setCreatedAt
(
now
);
...
...
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