浏览代码

bug fixes

plf 3 年之前
父节点
当前提交
1b7171fa3f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/java/com/caimei/modules/order/web/CmPayShopController.java

+ 2 - 1
src/main/java/com/caimei/modules/order/web/CmPayShopController.java

@@ -797,7 +797,8 @@ public class CmPayShopController extends BaseController {
         ChangePayShopOther payShopOther = cmPayShopService.shopOtherFeeForm(shopOrderId);
         payShopOther.setShopOrderId(shopOrderId);
         NewShopOrder shopOrder = newShopOrderService.findByShopOrderID(shopOrderId);
-        payShopOther.setShopOtherFee(BigDecimal.valueOf(shopOrder.getShopOtherFee()));
+        double ShopOtherFee = shopOrder.getShopOtherFee() == null ? 0d : shopOrder.getShopOtherFee();
+        payShopOther.setShopOtherFee(BigDecimal.valueOf(ShopOtherFee));
         Double brokerage = shopOrder.getBrokerage();
         brokerage = brokerage == null ? 0d : brokerage;
         model.addAttribute("brokerage", brokerage);