充值配置列表 修改参数
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user