字段错误
This commit is contained in:
@@ -49,10 +49,10 @@ public class MkLimitTimeDiscountServiceImpl extends ServiceImpl<MkLimitTimeDisco
|
|||||||
.orderBy(MkLimitTimeDiscount::getUpdateTime).desc();
|
.orderBy(MkLimitTimeDiscount::getUpdateTime).desc();
|
||||||
|
|
||||||
queryWrapper.and(q -> {
|
queryWrapper.and(q -> {
|
||||||
q.eq(MkLimitTimeDiscount::getUseType, "all").or(q1 -> {
|
q.eq(MkLimitTimeDiscount::getUseShopType, "all").or(q1 -> {
|
||||||
q1.eq(MkLimitTimeDiscount::getUseType, "only").eq(MkLimitTimeDiscount::getShopId, shopId);
|
q1.eq(MkLimitTimeDiscount::getUseShopType, "only").eq(MkLimitTimeDiscount::getShopId, shopId);
|
||||||
}).or(q2 -> {
|
}).or(q2 -> {
|
||||||
q2.eq(MkLimitTimeDiscount::getUseType, "custom").gt("FIND_IN_SET(" + shopId + ", use_shops)", 0);
|
q2.eq(MkLimitTimeDiscount::getUseShopType, "custom").gt("FIND_IN_SET(" + shopId + ", use_shops)", 0);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return pageAs(PageUtil.buildPage(), queryWrapper, MkLimitTimeDiscountDTO.class);
|
return pageAs(PageUtil.buildPage(), queryWrapper, MkLimitTimeDiscountDTO.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user