
tech.jhipster.service.mybatis.CriteriaUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jhipster-framework Show documentation
Show all versions of jhipster-framework Show documentation
Server-side library used by applications created with the BegCode generator, see https://www.begcode.com/ for more information on BegCode
package tech.jhipster.service.mybatis;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.function.Consumer;
public class CriteriaUtil {
public static QueryWrapper build(boolean useOr, QueryWrapper queryWrapper, Consumer> consumer) {
if (useOr) {
return queryWrapper.or(true,consumer);
} else {
return queryWrapper.and(true,consumer);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy