记得上下班打卡 | 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
dfd7ee1a
Commit
dfd7ee1a
authored
Feb 16, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交平台券
parent
6b7486cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
application-dev.yml
liquidnet-bus-config/liquidnet-config/application-dev.yml
+6
-0
GoblinOrderServiceImpl.java
...t/service/goblin/service/impl/GoblinOrderServiceImpl.java
+5
-1
No files found.
liquidnet-bus-config/liquidnet-config/application-dev.yml
View file @
dfd7ee1a
...
@@ -73,6 +73,12 @@ liquidnet:
...
@@ -73,6 +73,12 @@ liquidnet:
host
:
39.107.71.112
host
:
39.107.71.112
port
:
6379
port
:
6379
password
:
3Xa%8p
password
:
3Xa%8p
# goblin:
# dbs: 0,256
# database: 255
# host: r-2ze7002ckw5u75fgukpd.redis.rds.aliyuncs.com
# port: 6380
# password: PO@B!Iud32
mongodb
:
mongodb
:
host
:
39.107.71.112:27017
host
:
39.107.71.112:27017
port
:
27017
port
:
27017
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinOrderServiceImpl.java
View file @
dfd7ee1a
...
@@ -254,7 +254,11 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -254,7 +254,11 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
//优惠券
//优惠券
BigDecimal
voucherPrice
=
BigDecimal
.
ZERO
;
BigDecimal
voucherPrice
=
BigDecimal
.
ZERO
;
if
(
platVoucherCode
!=
null
&&
!
platVoucherCode
.
equals
(
""
))
{
if
(
platVoucherCode
!=
null
&&
!
platVoucherCode
.
equals
(
""
))
{
HashMap
<
String
,
Object
>
hashMap
=
orderUtils
.
useCoupon
(
platVoucherCode
,
"购买商品["
+
orderCode
+
"]"
,
storeTotalPrice
,
""
);
//todo
String
spuIds
=
""
;
for
(
GoblinOrderSkuParam
item:
storeParam
.
getGoblinOrderSkuParamArrayList
()){
spuIds
=
spuIds
.
concat
(
item
.
getSpuId
());
}
HashMap
<
String
,
Object
>
hashMap
=
orderUtils
.
useCoupon
(
platVoucherCode
,
"购买商品["
+
orderCode
+
"]"
,
storeTotalPrice
,
spuIds
);
//todo
voucherPrice
=
(
BigDecimal
)
hashMap
.
get
(
"voucher"
);
voucherPrice
=
(
BigDecimal
)
hashMap
.
get
(
"voucher"
);
Integer
typeVoucher
=
(
Integer
)
hashMap
.
get
(
"type"
);
Integer
typeVoucher
=
(
Integer
)
hashMap
.
get
(
"type"
);
if
(
typeVoucher
.
equals
(-
1
))
{
if
(
typeVoucher
.
equals
(-
1
))
{
...
...
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