Commit 0e874f33 by rongkailun

【修改】视频管理筛选条件添加过滤

parent 5ec70f6a
......@@ -2,6 +2,7 @@ package io.office.modules.manage.service.impl;
import io.office.modules.manage.vo.request.NewsMovieEntityVo;
import io.office.modules.sys.entity.SysUserEntity;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
......@@ -31,12 +32,12 @@ public class NewsMovieServiceImpl extends ServiceImpl<NewsMovieDao, NewsMovieEnt
} else{
newsMovieEntityQueryWrapper.gt("levels","0");
}
newsMovieEntityQueryWrapper.likeLeft(params.containsKey("title"),"title",params.get("title"));
newsMovieEntityQueryWrapper.likeLeft(params.containsKey("author"),"author",params.get("author"));
newsMovieEntityQueryWrapper.likeLeft(params.containsKey("auditor"),"auditor",params.get("auditor"));
newsMovieEntityQueryWrapper.likeLeft(params.containsKey("keyword"),"keyword",params.get("keyword"));
newsMovieEntityQueryWrapper.eq(params.containsKey("status"),"status",params.get("status"));
newsMovieEntityQueryWrapper.eq(params.containsKey("clanguage"),"clanguage",params.get("clanguage"));
newsMovieEntityQueryWrapper.likeLeft(params.containsKey("title") && StringUtils.isNotBlank(String.valueOf(params.get("title"))),"title",params.get("title"));
newsMovieEntityQueryWrapper.likeLeft(params.containsKey("author")&& StringUtils.isNotBlank(String.valueOf(params.get("author"))),"author",params.get("author"));
newsMovieEntityQueryWrapper.likeLeft(params.containsKey("auditor")&& StringUtils.isNotBlank(String.valueOf(params.get("auditor"))),"auditor",params.get("auditor"));
newsMovieEntityQueryWrapper.likeLeft(params.containsKey("keyword")&& StringUtils.isNotBlank(String.valueOf(params.get("keyword"))),"keyword",params.get("keyword"));
newsMovieEntityQueryWrapper.eq(params.containsKey("status")&& StringUtils.isNotBlank(String.valueOf(params.get("status"))),"status",params.get("status"));
newsMovieEntityQueryWrapper.eq(params.containsKey("clanguage")&& StringUtils.isNotBlank(String.valueOf(params.get("clanguage"))),"clanguage",params.get("clanguage"));
newsMovieEntityQueryWrapper.orderByDesc("releasedate");
IPage<NewsMovieEntity> page = this.page(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment