|
|
@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.jianwei.common.core.domain.SearchParam; |
|
|
|
import com.jianwei.common.utils.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import com.jianwei.common.core.service.BaseService; |
|
|
@ -24,11 +25,9 @@ public class BsSgcYxjdZhxxService extends BaseService<BsSgcYxjdZhxxMapper, BsSgc |
|
|
|
|
|
|
|
public IPage selectPage(SearchParam<BsSgcYxjdZhxx> sp) { |
|
|
|
|
|
|
|
|
|
|
|
Page<BsSgcYxjdZhxx> bsSgcYxjdZhxxPage = bsSgcYxjdZhxxMapper.selectPage(new Page<>(sp.getPageNum(), sp.getPageSize()), Wrappers.lambdaQuery(BsSgcYxjdZhxx.class) |
|
|
|
.like(sp.getData().getTitle()!=null,BsSgcYxjdZhxx::getTitle, sp.getData().getTitle())); |
|
|
|
.like(StringUtils.isNotEmpty(sp.getData().getTitle()),BsSgcYxjdZhxx::getTitle, sp.getData().getTitle())); |
|
|
|
|
|
|
|
return bsSgcYxjdZhxxPage; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|