fix:拉取jt场地数据

This commit is contained in:
xiang
2025-12-16 22:38:54 +08:00
parent a3c9e2eb51
commit 57a28b4049

View File

@@ -72,7 +72,8 @@ public class VenueServiceImpl implements IVenueService {
Map<Long, VenueInfoDO> map = Maps.newHashMap(); Map<Long, VenueInfoDO> map = Maps.newHashMap();
if (CollectionUtils.isNotEmpty(venueInfoDOS)) { if (CollectionUtils.isNotEmpty(venueInfoDOS)) {
map.putAll(venueInfoDOS.stream().filter(Objects::nonNull).collect(Collectors.toMap(VenueInfoDO::getPlaceMainId, Function.identity(), (a, b) -> a))); map.putAll(venueInfoDOS.stream().filter(Objects::nonNull)
.collect(Collectors.toMap(item -> Long.parseLong(String.valueOf(item.getPlaceId())), Function.identity(), (a, b) -> a)));
} }
List<VenueInfoDO> insertList = Lists.newArrayList(); List<VenueInfoDO> insertList = Lists.newArrayList();
for (SitePositionList sitePositionList : list) { for (SitePositionList sitePositionList : list) {