Browse Source

Merge branch 'distribute_func' into pre

zoujiajian 2 years ago
parent
commit
d331296ff1

+ 1 - 5
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -896,11 +896,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 		GoodsDon goodsDon = goodsDonMapper.selectById(ticket.getGoodsId());
 		if (goodsDon.getIsSkuDistribute()) {
 			//最低规格价格
-			BigDecimal price = goodsDon.getMinPrice();
-			GoodsDonSku sku = goodsDonSkuMapper.selectOne(Wrappers.lambdaQuery(GoodsDonSku.class)
-					.eq(GoodsDonSku::getGoodsId, goodsDon.getId())
-					.eq(GoodsDonSku::getPrice, price)
-					.last("limit 1"));
+			GoodsDonSku sku = goodsDonSkuMapper.selectById(ticket.getSkuId());
 			if (sku != null) {
 				if (userDistribute != null) {
 					UserPlatSkuDistributeRate userPlatSkuDistributeRate = userPlatSkuDistributeRateMapper.selectOne(Wrappers.lambdaQuery(UserPlatSkuDistributeRate.class)