Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
5cd522b3
Commit
5cd522b3
authored
Jun 01, 2021
by
王世昌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复加价购商品价格为空导致的异常
parent
0364a2c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
shopping-cart-application-service/src/main/java/cn/freemud/demo/adapter/service/CalculationSharingAdapter.java
+3
-2
shopping-cart-application-service/src/main/java/cn/freemud/demo/manager/coupon/KgdCouponServiceImpl.java
+1
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/demo/adapter/service/CalculationSharingAdapter.java
View file @
5cd522b3
...
@@ -27,6 +27,7 @@ import org.springframework.stereotype.Component;
...
@@ -27,6 +27,7 @@ import org.springframework.stereotype.Component;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Objects
;
import
java.util.Optional
;
import
static
java
.
util
.
stream
.
Collectors
.
toList
;
import
static
java
.
util
.
stream
.
Collectors
.
toList
;
...
@@ -106,8 +107,8 @@ public class CalculationSharingAdapter {
...
@@ -106,8 +107,8 @@ public class CalculationSharingAdapter {
GetCalculationDiscountBO
.
CalculationSendGoodsReqVO
reqs
=
new
GetCalculationDiscountBO
.
CalculationSendGoodsReqVO
();
GetCalculationDiscountBO
.
CalculationSendGoodsReqVO
reqs
=
new
GetCalculationDiscountBO
.
CalculationSendGoodsReqVO
();
reqs
.
setGoodsId
(
send
.
getGoodsId
());
reqs
.
setGoodsId
(
send
.
getGoodsId
());
reqs
.
setGoodsQuantity
(
send
.
getQty
());
reqs
.
setGoodsQuantity
(
send
.
getQty
());
reqs
.
setOriginalPrice
(
send
.
getOriginalPrice
(
).
intValue
());
reqs
.
setOriginalPrice
(
Optional
.
ofNullable
(
send
.
getOriginalPrice
()).
orElse
(
0L
).
intValue
());
reqs
.
setNowPrice
(
send
.
getOriginalPrice
(
).
intValue
());
reqs
.
setNowPrice
(
Optional
.
ofNullable
(
send
.
getOriginalPrice
()).
orElse
(
0L
).
intValue
());
sends
.
add
(
reqs
);
sends
.
add
(
reqs
);
activityCode
=
send
.
getActivityCode
();
activityCode
=
send
.
getActivityCode
();
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/demo/manager/coupon/KgdCouponServiceImpl.java
View file @
5cd522b3
...
@@ -66,7 +66,7 @@ public class KgdCouponServiceImpl implements CouponService {
...
@@ -66,7 +66,7 @@ public class KgdCouponServiceImpl implements CouponService {
@Override
@Override
public
CouponDetailBO
getCouponDetail
(
GetCouponDetailBO
getCouponDetailBO
)
{
public
CouponDetailBO
getCouponDetail
(
GetCouponDetailBO
getCouponDetailBO
)
{
Map
<
String
,
String
>
map
=
new
TreeMap
<
String
,
String
>();
Map
<
String
,
String
>
map
=
new
TreeMap
<>();
if
(
StringUtils
.
isBlank
(
getCouponDetailBO
.
getPartnerId
())
||
StringUtils
.
isBlank
(
getCouponDetailBO
.
getCouponCode
()))
{
if
(
StringUtils
.
isBlank
(
getCouponDetailBO
.
getPartnerId
())
||
StringUtils
.
isBlank
(
getCouponDetailBO
.
getCouponCode
()))
{
return
null
;
return
null
;
}
}
...
...
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