|  |  | @ -48,6 +48,7 @@ import com.epmet.dao.IcBuildingDao; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dao.IcNeighborHoodDao; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dao.IcPropertyManagementDao; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.*; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.form.IcNeighborHoodFormDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.form.ImportInfoFormDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.form.ImportTaskCommonFormDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.result.ImportTaskCommonResultDTO; | 
			
		
	
	
		
			
				
					|  |  | @ -61,6 +62,8 @@ import com.epmet.model.ImportNeighborHoodInfoListener; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.model.NeighborHoodInfoModel; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.redis.IcHouseRedis; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.service.*; | 
			
		
	
		
			
				
					|  |  |  | import com.github.pagehelper.Page; | 
			
		
	
		
			
				
					|  |  |  | import com.github.pagehelper.PageHelper; | 
			
		
	
		
			
				
					|  |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
		
			
				
					|  |  |  | import org.apache.commons.collections4.CollectionUtils; | 
			
		
	
		
			
				
					|  |  |  | import org.apache.commons.collections4.ListUtils; | 
			
		
	
	
		
			
				
					|  |  | @ -680,4 +683,25 @@ public class IcNeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao | 
			
		
	
		
			
				
					|  |  |  |         return uploadResult.getData().getUrl(); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     public PageData<IcNeighborHoodDTO> openPage(IcNeighborHoodFormDTO params) { | 
			
		
	
		
			
				
					|  |  |  |         LambdaQueryWrapper<IcNeighborHoodEntity> wrapper = new LambdaQueryWrapper<>(); | 
			
		
	
		
			
				
					|  |  |  |         wrapper.eq(IcNeighborHoodEntity::getAgencyId,params.getAgencyId()); | 
			
		
	
		
			
				
					|  |  |  |         PageData<IcNeighborHoodDTO> result = null; | 
			
		
	
		
			
				
					|  |  |  |         List<IcNeighborHoodDTO> list = null; | 
			
		
	
		
			
				
					|  |  |  |         if (params.isPage()){ | 
			
		
	
		
			
				
					|  |  |  |             Page<IcNeighborHoodEntity> objects = PageHelper.startPage(params.getPageNo(), params.getPageSize()).doSelectPage(() -> { | 
			
		
	
		
			
				
					|  |  |  |                 baseDao.selectList(wrapper); | 
			
		
	
		
			
				
					|  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |             list = ConvertUtils.sourceToTarget(objects.getResult(),IcNeighborHoodDTO.class); | 
			
		
	
		
			
				
					|  |  |  |             result = new PageData<>(list,objects.getTotal()); | 
			
		
	
		
			
				
					|  |  |  |             return result; | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         List<IcNeighborHoodEntity> listEntity = baseDao.selectList(wrapper); | 
			
		
	
		
			
				
					|  |  |  |         list = ConvertUtils.sourceToTarget(listEntity,IcNeighborHoodDTO.class); | 
			
		
	
		
			
				
					|  |  |  |         result = new PageData<>(list,list.size()); | 
			
		
	
		
			
				
					|  |  |  |         return result; | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
	
		
			
				
					|  |  | 
 |