引入包
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
判断对象属性不为空
if (StringUtils.isNotBlank(params.getName())) {
objectQueryWrapper.like("name",params.getName());
}
判断集合不为空
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
if (CollectionUtils.isNotEmpty(records)) {
System.out.println("records = " + records);
}