总结:MapStruct的List转换是使用了单个类转换的
public List<ExtranetConfigVO> findAllExtranetConfigs(Long workStationId) {
List<ExtranetConfig> extranetConfigs = extranetConfigService.getBaseMapper().selectList(Wrappers.<ExtranetConfig>lambdaQuery()
.eq(ExtranetConfig::getWorkStationId, workStationId));
// List<ExtranetConfigVO> extranetConfigVOList = new ArrayList<>();
// 1、使用forEach遍历赋值
// extranetConfigs.forEach(
// extranetConfig -> {
ExtranetConfigVO extranetConfigVO = new ExtranetConfigVO();
extranetConfigVO.setWorkStationId(extranetConfig.getWorkStationId());
extranetConfigVO.setUserVirtualIp(extranetConfig.getUserVirtualIp());
extranetConfigVO.setVirtualIp(extranetConfig.getVirtualIp());
extranetConfigVO.setNetworkIp(extranetConfig.getNetworkIp());