|
@@ -104,6 +104,13 @@ public class CpsPopularizeController {
|
|
|
data.setTitle(goods.getTitle());
|
|
data.setTitle(goods.getTitle());
|
|
|
data.setLogo(goods.getLogo());
|
|
data.setLogo(goods.getLogo());
|
|
|
data.setPrice(goods.getMinPrice());
|
|
data.setPrice(goods.getMinPrice());
|
|
|
|
|
+ UserPlatDistributeRate userPlatDistributeRate = userPlatDistributeRateMapper.selectOne(Wrappers.lambdaQuery(UserPlatDistributeRate.class)
|
|
|
|
|
+ .eq(UserPlatDistributeRate::getDistributeId, userDistribute.getId())
|
|
|
|
|
+ .eq(UserPlatDistributeRate::getGoodsId, data.getGoodsId())
|
|
|
|
|
+ .last("limit 1"));
|
|
|
|
|
+ if (userPlatDistributeRate != null) {
|
|
|
|
|
+ data.setRate(userPlatDistributeRate.getRate());
|
|
|
|
|
+ }
|
|
|
if (goods.getIsSkuDistribute()) {
|
|
if (goods.getIsSkuDistribute()) {
|
|
|
UserPlatSkuDistributeRate userPlatSkuDistributeRate = userPlatSkuDistributeRateMapper.selectOne(Wrappers.lambdaQuery(UserPlatSkuDistributeRate.class)
|
|
UserPlatSkuDistributeRate userPlatSkuDistributeRate = userPlatSkuDistributeRateMapper.selectOne(Wrappers.lambdaQuery(UserPlatSkuDistributeRate.class)
|
|
|
.eq(UserPlatSkuDistributeRate::getDistributeId, userDistribute.getId())
|
|
.eq(UserPlatSkuDistributeRate::getDistributeId, userDistribute.getId())
|
|
@@ -116,14 +123,6 @@ public class CpsPopularizeController {
|
|
|
if (userPlatSkuDistributeRate != null) {
|
|
if (userPlatSkuDistributeRate != null) {
|
|
|
data.setRate(userPlatSkuDistributeRate.getRate());
|
|
data.setRate(userPlatSkuDistributeRate.getRate());
|
|
|
}
|
|
}
|
|
|
- } else {
|
|
|
|
|
- UserPlatDistributeRate userPlatDistributeRate = userPlatDistributeRateMapper.selectOne(Wrappers.lambdaQuery(UserPlatDistributeRate.class)
|
|
|
|
|
- .eq(UserPlatDistributeRate::getDistributeId, userDistribute.getId())
|
|
|
|
|
- .eq(UserPlatDistributeRate::getGoodsId, data.getGoodsId())
|
|
|
|
|
- .last("limit 1"));
|
|
|
|
|
- if (userPlatDistributeRate != null) {
|
|
|
|
|
- data.setRate(userPlatDistributeRate.getRate());
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
data.setClickNum(distributePopularizeClickRecordMapper.selectCount(Wrappers.lambdaQuery(DistributePopularizeClickRecord.class)
|
|
data.setClickNum(distributePopularizeClickRecordMapper.selectCount(Wrappers.lambdaQuery(DistributePopularizeClickRecord.class)
|