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