Commit b0ae4832 authored by 张永's avatar 张永

1212

parent aee44645
...@@ -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"); 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);
} }
} catch (Exception e) {
MinOrderAmt = Double.valueOf("0");
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")+""; // 物流名称
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment