充值配置列表 修改参数

This commit is contained in:
wuchunlei
2024-11-11 15:26:13 +08:00
parent 1da547ad53
commit 8dfbfa7d86

View File

@@ -31,11 +31,12 @@ public class BuyConfigController {
@RequestMapping("/getBookBuyConfigList")
public R getBookBuyConfigList(@RequestBody Map<String, Object> params) {
LambdaQueryWrapper<BookBuyConfigEntity> wrapper = new LambdaQueryWrapper();
wrapper.and(t->t.eq(BookBuyConfigEntity::getEffective,0)
.or(q->q.le(BookBuyConfigEntity::getStartTime,new Date()).ge(BookBuyConfigEntity::getEndTime,new Date())));
if (StringUtils.isNotEmpty(params.get("qudao").toString())) {
wrapper.eq(BookBuyConfigEntity::getQudao,params.get("qudao"));
}
if (params.containsKey("type")&&StringUtils.isNotEmpty(params.get("type").toString())){
wrapper.eq(BookBuyConfigEntity::getType,params.get("type"));
}
Page<BookBuyConfigEntity> page = bookBuyConfigService.page(new Page<>(
Long.parseLong(params.get("page").toString()), Long.parseLong(params.get("limit").toString())), wrapper);
return R.ok().put("result", page);