소스 검색

展示对应规格分销比例

zoujiajian 2 년 전
부모
커밋
b6c995662e
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

+ 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)