充值送积分
This commit is contained in:
@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -32,6 +33,8 @@ public class BookBuyConfigController {
|
||||
@RequestMapping("/getBookBuyConfigList")
|
||||
public R getBookBuyConfigList(@RequestBody Map 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 (params.containsKey("type")&&StringUtils.isNotEmpty(params.get("type").toString())){
|
||||
wrapper.eq(BookBuyConfigEntity::getType,params.get("type"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user