|
@ -795,6 +795,27 @@ public class IcNeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao |
|
|
@Override |
|
|
@Override |
|
|
@Transactional |
|
|
@Transactional |
|
|
public void updateNeighborHood(List<ImportGeneralDTO> needUpdateList) { |
|
|
public void updateNeighborHood(List<ImportGeneralDTO> needUpdateList) { |
|
|
|
|
|
|
|
|
|
|
|
needUpdateList.forEach( |
|
|
|
|
|
needUpdate->{ |
|
|
|
|
|
if (StringUtils.isNotBlank(needUpdate.getOpenTypeName())){ |
|
|
|
|
|
if (needUpdate.getOpenTypeName().equals("自然村")){ |
|
|
|
|
|
needUpdate.setOpenType("2"); |
|
|
|
|
|
} |
|
|
|
|
|
if (needUpdate.getOpenTypeName().equals("住宅小区")){ |
|
|
|
|
|
needUpdate.setOpenType("1"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(needUpdate.getViliageTypeName())){ |
|
|
|
|
|
if (needUpdate.getViliageTypeName().equals("封闭式")){ |
|
|
|
|
|
needUpdate.setViliageTypeName("1"); |
|
|
|
|
|
} |
|
|
|
|
|
if (needUpdate.getViliageTypeName().equals("开放式")){ |
|
|
|
|
|
needUpdate.setViliageTypeName("2"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(needUpdateList)){ |
|
|
if (CollectionUtils.isNotEmpty(needUpdateList)){ |
|
|
baseDao.updateNeighborHood(needUpdateList); |
|
|
baseDao.updateNeighborHood(needUpdateList); |
|
|
} |
|
|
} |
|
|