在这里插`在这里插入代码片`入代码片
``` LambdaQueryWrapper<OtcWithdrawEntity> wrapper = new LambdaQueryWrapper<OtcWithdrawEntity>();
wrapper.eq(OtcWithdrawEntity::getDealLocked, 0);//发起
wrapper.eq(OtcWithdrawEntity::getDealStatus, 0);//未锁定
if(Func.isNotEmpty(qo) && Func.isNotBlank(qo.getPaymentIds())){
//字符串转集合
List<String> list = ListUtil.strToList(qo.getPaymentIds());
//多条件模糊查询
wrapper.and(obj->{
list.stream().filter(Func::isNotBlank).collect(Collectors.toList()).forEach(s->{
obj.or(s1->{
s1.like(OtcWithdrawEntity::getPaymentIds,s);
});
});
});
}
IPage<OtcWithdrawEntity> page = this.page(Condition.getPage(query),wrapper);
LambdaQueryWrapper根据list集合模糊查询(like)
最新推荐文章于 2025-06-08 22:01:45 发布