//單個數據使用selectOne,多條數據使用selectList Entity放置你的實體 eq中放置你的查詢條件
mapper.selectOne(new QueryWrapper<Entity>().lambda().eq(Entity::getId, id).eq(Entity::getCustomerId, customerId));
//查詢用in的情況: ids為你的id集合,后面可以繼續使用.eq添加查詢條件
mapper.selectList(new QueryWrapper<Entity>().lambda().in(Entity:: getId,ids).eq(Entity:: getCustomerId,customerId));
