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
b0ae4832
Commit
b0ae4832
authored
Jul 18, 2024
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1212
parent
aee44645
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
CartQueryServiceImpl.java
...com/egolm/shop/api/service/impl/CartQueryServiceImpl.java
+9
-11
No files found.
src/main/java/com/egolm/shop/api/service/impl/CartQueryServiceImpl.java
View file @
b0ae4832
...
@@ -894,21 +894,19 @@ public class CartQueryServiceImpl implements CartQueryService {
...
@@ -894,21 +894,19 @@ 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"
)+
""
;
Object
nMinDCAmount
=
goodsFirst
.
get
(
"nMinDCAmount"
);
Double
MinOrderAmt
;
Double
MinOrderAmt
;
try
{
if
(
nMinDCAmount
==
null
)
{
if
(
StringUtil
.
isNotEmpty
(
nMinDCAmount
))
{
MinOrderAmt
=
Util
.
objTo
(
goodsFirst
.
get
(
"nMinDCAmount"
),
Double
.
class
);
}
else
{
MinOrderAmt
=
Double
.
valueOf
(
"0"
);
logger
.
info
(
"MinOrderAmt 为null -----空值换值为: "
+
MinOrderAmt
);
}
}
catch
(
Exception
e
)
{
MinOrderAmt
=
Double
.
valueOf
(
"0"
);
MinOrderAmt
=
Double
.
valueOf
(
"0"
);
logger
.
info
(
"MinOrderAmt 为null -----异常换值为: "
+
MinOrderAmt
);
logger
.
info
(
"MinOrderAmt 为null -----空值换值为: "
+
MinOrderAmt
);
}
else
{
MinOrderAmt
=
Util
.
objTo
(
goodsFirst
.
get
(
"nMinDCAmount"
),
Double
.
class
);
logger
.
info
(
"MinOrderAmt 解 转换 : "
+
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