Explorar o código

展示对应规格分销比例

zoujiajian %!s(int64=2) %!d(string=hai) anos
pai
achega
b6c995662e

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

@@ -895,11 +895,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)