|
|
@@ -973,6 +973,10 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
if (param.getPayType().equals("1")) {
|
|
|
//全款支付
|
|
|
storeOrder.setStatus(0);
|
|
|
+ if("广州郑多燕".equals(cloudHostProper.getCompanyName())){
|
|
|
+ BigDecimal amount = redisCache.getCacheObject("createOrderAmount:" + param.getCreateOrderKey());
|
|
|
+ storeOrder.setPayDelivery(amount != null ? amount : BigDecimal.ZERO);
|
|
|
+ }
|
|
|
} else if (param.getPayType().equals("2")) {
|
|
|
//物流代收
|
|
|
storeOrder.setStatus(1);
|
|
|
@@ -1749,6 +1753,10 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
storeOrder.setOrderCreateType(2);
|
|
|
storeOrder.setPayType(storeProductPackage.getPayType().toString());
|
|
|
storeOrder.setPayPrice(totalMoney);
|
|
|
+ if("广州郑多燕".equals(cloudHostProper.getCompanyName())){
|
|
|
+ BigDecimal amount = redisCache.getCacheObject("createOrderAmount:" + param.getOrderKey());
|
|
|
+ storeOrder.setPayDelivery(amount != null ? amount : BigDecimal.ZERO);
|
|
|
+ }
|
|
|
storeOrder.setIsPackage(1);
|
|
|
FsStoreProductPackageScrm productPackage = new FsStoreProductPackageScrm();
|
|
|
productPackage.setTitle(storeProductPackage.getTitle());
|
|
|
@@ -2760,8 +2768,8 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
totalMoney = totalMoney.add(vo.getPrice().multiply(new BigDecimal(vo.getCartNum().toString())));
|
|
|
}
|
|
|
} else {
|
|
|
- //套餐制单
|
|
|
- totalMoney = carts.get(0).getPrice();
|
|
|
+ //套餐制单,这个金额是套餐的金额
|
|
|
+ totalMoney = redisCache.getCacheObject("createOrderMoney:" + createOrderKey);
|
|
|
}
|
|
|
if (money.compareTo(totalMoney) == 1) {
|
|
|
throw new CustomException("价格不能大于商品总价", 501);
|
|
|
@@ -4205,7 +4213,9 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
if(param.getPayType().equals(1)){
|
|
|
order.setPayType("1");
|
|
|
order.setPayMoney(order.getPayPrice());
|
|
|
- order.setPayDelivery(BigDecimal.ZERO);
|
|
|
+ if(!"广州郑多燕".equals(cloudHostProper.getCompanyName())){
|
|
|
+ order.setPayDelivery(BigDecimal.ZERO);
|
|
|
+ }
|
|
|
}
|
|
|
else if(param.getPayType().equals(2)){
|
|
|
order.setPayType("2");
|
|
|
@@ -4718,7 +4728,9 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
if(param.getPayType().equals(1)){
|
|
|
order.setPayType("1");
|
|
|
order.setPayMoney(order.getPayPrice());
|
|
|
- order.setPayDelivery(BigDecimal.ZERO);
|
|
|
+ if(!"广州郑多燕".equals(cloudHostProper.getCompanyName())){
|
|
|
+ order.setPayDelivery(BigDecimal.ZERO);
|
|
|
+ }
|
|
|
}
|
|
|
else if(param.getPayType().equals(2)){
|
|
|
// 物流代收
|