Browse Source

feat:商城-郑多燕,调整支付方式

caoliqin 1 day ago
parent
commit
63f1e89ac2

+ 9 - 8
fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreOrderScrmServiceImpl.java

@@ -990,8 +990,8 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
                 if("广州郑多燕".equals(cloudHostProper.getCompanyName())){
                     BigDecimal amount = redisCache.getCacheObject("createOrderAmount:" + param.getCreateOrderKey());
                     storeOrder.setPayDelivery(amount != null ? amount : BigDecimal.ZERO);
-                    storeOrder.setPayType(storeOrder.getPayPrice().compareTo(storeOrder.getTotalPrice()) == 0 ?"1":"5");
-                    logger.info("订单创建--------实际支付金额和总金额:{},{},", storeOrder.getPayPrice(), storeOrder.getTotalPrice());
+//                    storeOrder.setPayType(storeOrder.getPayPrice().compareTo(storeOrder.getTotalPrice()) == 0 ?"1":"5");
+//                    logger.info("订单创建--------实际支付金额和总金额:{},{},", storeOrder.getPayPrice(), storeOrder.getTotalPrice());
                 }
             } else if (param.getPayType().equals("2")) {
                 //物流代收
@@ -1772,8 +1772,8 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
             if("广州郑多燕".equals(cloudHostProper.getCompanyName())){
                 BigDecimal amount = redisCache.getCacheObject("createOrderAmount:" + param.getOrderKey());
                 storeOrder.setPayDelivery(amount != null ? amount : BigDecimal.ZERO);
-                storeOrder.setPayType(storeOrder.getPayPrice().compareTo(storeOrder.getTotalPrice()) == 0 ?"1":"5");
-                logger.info("套餐包制单---------实际支付金额和总金额:{},{},", storeOrder.getPayPrice(), storeOrder.getTotalPrice());
+//                storeOrder.setPayType(storeOrder.getPayPrice().compareTo(storeOrder.getTotalPrice()) == 0 ?"1":"5");
+//                logger.info("套餐包制单---------实际支付金额和总金额:{},{},", storeOrder.getPayPrice(), storeOrder.getTotalPrice());
             }
             storeOrder.setIsPackage(1);
             FsStoreProductPackageScrm productPackage = new FsStoreProductPackageScrm();
@@ -4752,11 +4752,12 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
                     order.setPayMoney(order.getPayPrice());
                     if(!"广州郑多燕".equals(cloudHostProper.getCompanyName())){
                         order.setPayDelivery(BigDecimal.ZERO);
-                    } else {
-                        // 郑多燕单独设置支付类型
-                        order.setPayType(order.getPayPrice().compareTo(order.getTotalPrice()) == 0 ?"1":"5");
-                        logger.info("修改价格--------实际支付金额和总金额:{},{},", order.getPayPrice(), order.getTotalPrice());
                     }
+//                    else {
+//                        // 郑多燕单独设置支付类型
+//                        order.setPayType(order.getPayPrice().compareTo(order.getTotalPrice()) == 0 ?"1":"5");
+//                        logger.info("修改价格--------实际支付金额和总金额:{},{},", order.getPayPrice(), order.getTotalPrice());
+//                    }
                 }
                 else if(param.getPayType().equals(2)){
                     // 物流代收