Commit eb8ece33 authored by 张永's avatar 张永

121

parent d2973f66
......@@ -894,13 +894,20 @@ public class CartQueryServiceImpl implements CartQueryService {
BigDecimal TotalAmount = BigDecimal.ZERO;
Map<String, Object> goodsFirst = GoodsList.get(0);
logger.info("goodsFirst-----"+GsonUtil.toJson(goodsFirst));
String nMinDCAmount = goodsFirst.get("nMinDCAmount")+"";
Double MinOrderAmt ;
try {
MinOrderAmt = Util.objTo(goodsFirst.get("nMinDCAmount"), Double.class);
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);
logger.info("MinOrderAmt 为null -----换值为: "+MinOrderAmt);
MinOrderAmt = Double.valueOf("0");
logger.info("MinOrderAmt 为null -----异常换值为: "+MinOrderAmt);
}
String WMSInfo = goodsFirst.get("sWarehouseName")+""; // 物流名称
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