|  |  | @ -31,6 +31,7 @@ import com.epmet.feign.GovOrgFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.OperCustomizeFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.service.StrangerAccessRecordService; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.utils.ModuleConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.github.pagehelper.PageHelper; | 
			
		
	
		
			
				
					|  |  |  | import org.apache.commons.lang3.StringUtils; | 
			
		
	
		
			
				
					|  |  |  | import org.slf4j.Logger; | 
			
		
	
		
			
				
					|  |  |  | import org.slf4j.LoggerFactory; | 
			
		
	
	
		
			
				
					|  |  | @ -303,6 +304,48 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * @Description H5版 自动/选定定位获取地附近网格列表 | 
			
		
	
		
			
				
					|  |  |  |      * @param customerGridListFormDTO | 
			
		
	
		
			
				
					|  |  |  |      * @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.CustomerGridForStrangerResultDTO>> | 
			
		
	
		
			
				
					|  |  |  |      * @author wangc | 
			
		
	
		
			
				
					|  |  |  |      * @date 2021.01.18 16:39 | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<CustomerGridForStrangerResultDTO>> listCustomerGridH5(CustomerGridListFormDTO customerGridListFormDTO) { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         ListCustomerGridFormDTO listCustomerGridFormDTO = new ListCustomerGridFormDTO(); | 
			
		
	
		
			
				
					|  |  |  |         listCustomerGridFormDTO.setAreaCode(StringUtils.isBlank(customerGridListFormDTO.getSelectedAreaCode()) ? | 
			
		
	
		
			
				
					|  |  |  |                 customerGridListFormDTO.getAreaCode() : customerGridListFormDTO.getSelectedAreaCode()); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         listCustomerGridFormDTO.setPageNo(null == customerGridListFormDTO.getPageNo() ? ModuleConstant.MIN_CURRENT_PAGE_NO : customerGridListFormDTO.getPageNo()); | 
			
		
	
		
			
				
					|  |  |  |         listCustomerGridFormDTO.setPageSize(customerGridListFormDTO.getPageSize()); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         Result<List<CustomerGridForStrangerResultDTO>> queryResult = | 
			
		
	
		
			
				
					|  |  |  |                 govOrgFeignClient | 
			
		
	
		
			
				
					|  |  |  |                         .queryGridListByAreaCode(listCustomerGridFormDTO); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         //Feign调用成功
 | 
			
		
	
		
			
				
					|  |  |  |         if (queryResult.success()) { | 
			
		
	
		
			
				
					|  |  |  |             List<CustomerGridForStrangerResultDTO> queryList = queryResult.getData(); | 
			
		
	
		
			
				
					|  |  |  |             if (null != queryResult && queryList.size() > 0) { | 
			
		
	
		
			
				
					|  |  |  |                 StrangerAccessRecordEntity strangerTrance = new StrangerAccessRecordEntity(); | 
			
		
	
		
			
				
					|  |  |  |                 strangerTrance.setLocationAreaCode(listCustomerGridFormDTO.getAreaCode()); | 
			
		
	
		
			
				
					|  |  |  |                 strangerTrance.setIsAuthorized(customerGridListFormDTO.getIsAuthorized()); | 
			
		
	
		
			
				
					|  |  |  |                 strangerTrance.setGridNumber(queryList.size()); | 
			
		
	
		
			
				
					|  |  |  |                 strangerTrance.setVisitTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |                 strangerTrance.setProvince(customerGridListFormDTO.getProvince()); | 
			
		
	
		
			
				
					|  |  |  |                 strangerTrance.setCity(customerGridListFormDTO.getCity()); | 
			
		
	
		
			
				
					|  |  |  |                 strangerTrance.setArea(customerGridListFormDTO.getArea()); | 
			
		
	
		
			
				
					|  |  |  |                 insert(strangerTrance); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         return queryResult; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * @Description  获取客户信息 | 
			
		
	
		
			
				
					|  |  |  |      * @param appId | 
			
		
	
	
		
			
				
					|  |  | 
 |