|
|
@@ -894,26 +894,20 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
}
|
|
|
GoodsDon goodsDon = goodsDonMapper.selectById(ticket.getGoodsId());
|
|
|
if (goodsDon.getIsSkuDistribute()) {
|
|
|
- //最低规格价格
|
|
|
- GoodsDonSku sku = goodsDonSkuMapper.selectById(ticket.getSkuId());
|
|
|
- if (sku != null) {
|
|
|
- if (userDistribute != null) {
|
|
|
- UserPlatSkuDistributeRate userPlatSkuDistributeRate = userPlatSkuDistributeRateMapper.selectOne(Wrappers.lambdaQuery(UserPlatSkuDistributeRate.class)
|
|
|
- .eq(UserPlatSkuDistributeRate::getDistributeId, userDistribute.getId())
|
|
|
- .eq(UserPlatSkuDistributeRate::getGoodsId, goodsDon.getId())
|
|
|
- .eq(UserPlatSkuDistributeRate::getSkuId, sku.getId())
|
|
|
- .last("limit 1"));
|
|
|
- if (userPlatSkuDistributeRate != null) {
|
|
|
- distributePosterGoodsDetailView.setRate(userPlatSkuDistributeRate.getRate());
|
|
|
- }
|
|
|
- } else {
|
|
|
- DistributeGeneralSkuRate distributeGeneralSkuRate = distributeGeneralSkuRateMapper.selectOne(Wrappers.lambdaQuery(DistributeGeneralSkuRate.class)
|
|
|
- .eq(DistributeGeneralSkuRate::getGoodsId, goodsDon.getId())
|
|
|
- .eq(DistributeGeneralSkuRate::getSkuId, sku.getId())
|
|
|
- .last("limit 1"));
|
|
|
- if (distributeGeneralSkuRate != null) {
|
|
|
- distributePosterGoodsDetailView.setRate(distributeGeneralSkuRate.getRate());
|
|
|
- }
|
|
|
+ if (userDistribute != null) {
|
|
|
+ UserPlatSkuDistributeRate userPlatSkuDistributeRate = userPlatSkuDistributeRateMapper.selectOne(Wrappers.lambdaQuery(UserPlatSkuDistributeRate.class)
|
|
|
+ .eq(UserPlatSkuDistributeRate::getDistributeId, userDistribute.getId())
|
|
|
+ .eq(UserPlatSkuDistributeRate::getSkuId, ticket.getSkuId())
|
|
|
+ .last("limit 1"));
|
|
|
+ if (userPlatSkuDistributeRate != null) {
|
|
|
+ distributePosterGoodsDetailView.setRate(userPlatSkuDistributeRate.getRate());
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ DistributeGeneralSkuRate distributeGeneralSkuRate = distributeGeneralSkuRateMapper.selectOne(Wrappers.lambdaQuery(DistributeGeneralSkuRate.class)
|
|
|
+ .eq(DistributeGeneralSkuRate::getSkuId, ticket.getSkuId())
|
|
|
+ .last("limit 1"));
|
|
|
+ if (distributeGeneralSkuRate != null) {
|
|
|
+ distributePosterGoodsDetailView.setRate(distributeGeneralSkuRate.getRate());
|
|
|
}
|
|
|
}
|
|
|
}
|