浏览代码

管乐迷商城改造

zouxuan 1 年之前
父节点
当前提交
ad5dbcd820
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/SellOrderServiceImpl.java

+ 4 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/SellOrderServiceImpl.java

@@ -660,7 +660,10 @@ public class SellOrderServiceImpl extends BaseServiceImpl<Integer, SellOrder> im
         List<Goods> goodies = goodsDao.getGoodies(goodsIds);
         List<Goods> goodies = goodsDao.getGoodies(goodsIds);
         BigDecimal goodsTotalPrice = goodies.stream().map(Goods::getGroupPurchasePrice).reduce(BigDecimal.ZERO, BigDecimal::add);
         BigDecimal goodsTotalPrice = goodies.stream().map(Goods::getGroupPurchasePrice).reduce(BigDecimal.ZERO, BigDecimal::add);
 
 
-        AccountType accountType = sysPaymentConfigService.checkAccountType(PaymentChannelEnum.valueOf(order.getPaymentChannel()), order.getMerNos(), order.getTenantId());
+        AccountType accountType = AccountType.INTERNAL;
+        if(StringUtils.isNotEmpty(order.getPaymentChannel())){
+            accountType  = sysPaymentConfigService.checkAccountType(PaymentChannelEnum.valueOf(order.getPaymentChannel()), order.getMerNos(), order.getTenantId());
+        }
         PmsProductQueryParamDto paramDto = new PmsProductQueryParamDto();
         PmsProductQueryParamDto paramDto = new PmsProductQueryParamDto();
         String skuIds = goodsSubService.lambdaQuery().in(GoodsSub::getGoodsId, goodies.stream().map(Goods::getId).collect(Collectors.toList())).list()
         String skuIds = goodsSubService.lambdaQuery().in(GoodsSub::getGoodsId, goodies.stream().map(Goods::getId).collect(Collectors.toList())).list()
                 .stream().map(e->e.getSku().toString()).collect(Collectors.joining(","));
                 .stream().map(e->e.getSku().toString()).collect(Collectors.joining(","));