方式一、在配置文件中加上全局配置
mybatis-plus.global-config.db-config.field-strategy=not_empty
方式二、对某一字段单独进行判断非空
QueryWrapper<BillCust> queryWrapper = new QueryWrapper<BillCust>(BeanUtil.mapToBean(params, BillCust.class, false));
queryWrapper.lambda().eq(ObjectUtils.isNotEmpty(params.get("erpCustomerName")), BillCust::getErpCustomerName, params.get("erpCustomerName"));