Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
eb8ece33
Commit
eb8ece33
authored
Jul 18, 2024
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
121
parent
d2973f66
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
CartQueryServiceImpl.java
...com/egolm/shop/api/service/impl/CartQueryServiceImpl.java
+11
-4
No files found.
src/main/java/com/egolm/shop/api/service/impl/CartQueryServiceImpl.java
View file @
eb8ece33
...
@@ -894,13 +894,20 @@ public class CartQueryServiceImpl implements CartQueryService {
...
@@ -894,13 +894,20 @@ public class CartQueryServiceImpl implements CartQueryService {
BigDecimal
TotalAmount
=
BigDecimal
.
ZERO
;
BigDecimal
TotalAmount
=
BigDecimal
.
ZERO
;
Map
<
String
,
Object
>
goodsFirst
=
GoodsList
.
get
(
0
);
Map
<
String
,
Object
>
goodsFirst
=
GoodsList
.
get
(
0
);
logger
.
info
(
"goodsFirst-----"
+
GsonUtil
.
toJson
(
goodsFirst
));
logger
.
info
(
"goodsFirst-----"
+
GsonUtil
.
toJson
(
goodsFirst
));
String
nMinDCAmount
=
goodsFirst
.
get
(
"nMinDCAmount"
)+
""
;
Double
MinOrderAmt
;
Double
MinOrderAmt
;
try
{
try
{
if
(
StringUtil
.
isNotEmpty
(
nMinDCAmount
))
{
MinOrderAmt
=
Util
.
objTo
(
goodsFirst
.
get
(
"nMinDCAmount"
),
Double
.
class
);
MinOrderAmt
=
Util
.
objTo
(
goodsFirst
.
get
(
"nMinDCAmount"
),
Double
.
class
);
}
else
{
MinOrderAmt
=
Double
.
valueOf
(
"0"
);
logger
.
info
(
"MinOrderAmt 为null -----空值换值为: "
+
MinOrderAmt
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
MinOrderAmt
=
Double
.
valueOf
(
0
);
MinOrderAmt
=
Double
.
valueOf
(
"0"
);
logger
.
info
(
"MinOrderAmt 为null -----换值为: "
+
MinOrderAmt
);
logger
.
info
(
"MinOrderAmt 为null -----
异常
换值为: "
+
MinOrderAmt
);
}
}
String
WMSInfo
=
goodsFirst
.
get
(
"sWarehouseName"
)+
""
;
// 物流名称
String
WMSInfo
=
goodsFirst
.
get
(
"sWarehouseName"
)+
""
;
// 物流名称
String
sWarehouseNO
=
goodsFirst
.
get
(
"sWarehouseNO"
)+
""
;
// 物流名称
String
sWarehouseNO
=
goodsFirst
.
get
(
"sWarehouseNO"
)+
""
;
// 物流名称
...
...
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