mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
【bug】解决满减活动未到时间,还显示的问题
This commit is contained in:
parent
267cd7acf3
commit
6e56ca4b2e
@ -66,11 +66,12 @@ public interface RewardActivityMapper extends BaseMapperX<RewardActivityDO> {
|
|||||||
.eq(RewardActivityDO::getStatus,status)
|
.eq(RewardActivityDO::getStatus,status)
|
||||||
.lt(RewardActivityDO::getStartTime, dateTime)
|
.lt(RewardActivityDO::getStartTime, dateTime)
|
||||||
.gt(RewardActivityDO::getEndTime, dateTime)
|
.gt(RewardActivityDO::getEndTime, dateTime)
|
||||||
.and(i -> i. eq(RewardActivityDO::getProductScope, PromotionProductScopeEnum.SPU.getScope()).and(i1 -> i1.apply(productScopeValuesFindInSetFunc.apply(spuIds))))
|
.and(i -> i.eq(RewardActivityDO::getProductScope, PromotionProductScopeEnum.SPU.getScope())
|
||||||
.or(i -> i.eq(RewardActivityDO::getProductScope, PromotionProductScopeEnum.ALL.getScope()))
|
.and(i1 -> i1.apply(productScopeValuesFindInSetFunc.apply(spuIds)))
|
||||||
.or(i -> i. eq(RewardActivityDO::getProductScope, PromotionProductScopeEnum.CATEGORY.getScope()).and(i1 -> i1.apply(productScopeValuesFindInSetFunc.apply(categoryIds))))
|
.or(i1 -> i1.eq(RewardActivityDO::getProductScope, PromotionProductScopeEnum.ALL.getScope()))
|
||||||
|
.or(i1 -> i1.eq(RewardActivityDO::getProductScope, PromotionProductScopeEnum.CATEGORY.getScope())
|
||||||
|
.and(i2 -> i2.apply(productScopeValuesFindInSetFunc.apply(categoryIds)))))
|
||||||
.orderByDesc(RewardActivityDO::getId)
|
.orderByDesc(RewardActivityDO::getId)
|
||||||
.last("limit 1")
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user