| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -25,6 +25,7 @@ import com.epmet.service.StrangerAccessRecordService; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import org.apache.commons.lang3.StringUtils; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import org.slf4j.Logger; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import org.slf4j.LoggerFactory; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.utils.ModuleConstant; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import org.springframework.stereotype.Service; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import org.springframework.transaction.annotation.Transactional; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -61,6 +62,7 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    @Override | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public PageData<StrangerAccessRecordDTO> getStrangerAccessRecordPage(Map<String, Object> params) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //当前陌生人访客记录查询只能查询最近三天,无法查询三天以外的数据,需要完善功能
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        IPage<StrangerAccessRecordEntity> page = baseDao.selectPage( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                getPage(params, "VISIT_TIME", false), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                getWrapper(params) | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -88,7 +90,6 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    /** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * sql语句条件查询拼接 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * 陌生人访客记录,逻辑删除标识为0,访问时间为当前三天,按照访问时间降序排列 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param params | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @return QueryWrapper<StrangerAccessRecordEntity> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @author | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -135,9 +136,9 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    /** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @return Result<List < CustomerGridForStrangerResultDTO>> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @Description 陌生人根据地区编码查询附近网格数据具体实现 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @Param CustomerGridListFormDTO | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @return Result<List<CustomerGridForStrangerResultDTO>> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @Author wangc | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @Date 2020.03.19 14:28 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     **/ | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -147,17 +148,17 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        ListCustomerGridFormDTO listCustomerGridFormDTO = new ListCustomerGridFormDTO(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        listCustomerGridFormDTO.setAreaCode(0 == customerGridListFormDTO.getIsAuthorized() ? | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        listCustomerGridFormDTO.setAreaCode(ModuleConstant.NOT_POSITION_AUTHORIZED == customerGridListFormDTO.getIsAuthorized() ? | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                customerGridListFormDTO.getSelectedAreaCode() : customerGridListFormDTO.getAreaCode()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        listCustomerGridFormDTO.setPageNo(null == customerGridListFormDTO.getPageNo() ? 1 : customerGridListFormDTO.getPageNo()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        listCustomerGridFormDTO.setPageNo(null == customerGridListFormDTO.getPageNo() ? ModuleConstant.MIN_CURRENT_PAGE_NO : customerGridListFormDTO.getPageNo()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        listCustomerGridFormDTO.setPageSize(customerGridListFormDTO.getPageSize()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Result<List<CustomerGridForStrangerResultDTO>> queryResult = | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            govOrgFeignClient | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        .getPageForStrangerGuideInterface(listCustomerGridFormDTO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    .queryGridListByAreaCode(listCustomerGridFormDTO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //Feign调用成功
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (queryResult.success()) { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -166,13 +167,11 @@ public class StrangerAccessRecordServiceImpl extends BaseServiceImpl<StrangerAcc | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (null != queryResult && queryList.size() > 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                StrangerAccessRecordEntity strangerTrance = new StrangerAccessRecordEntity(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //未授权,手动选择
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (0 == customerGridListFormDTO.getIsAuthorized()) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (ModuleConstant.NOT_POSITION_AUTHORIZED == customerGridListFormDTO.getIsAuthorized()) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    strangerTrance.setSelectedAreaCode(customerGridListFormDTO.getSelectedAreaCode()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    strangerTrance.setLocationAreaCode(""); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } else if (1 == customerGridListFormDTO.getIsAuthorized()) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } else if (ModuleConstant.POSITION_AUTHORIZED == customerGridListFormDTO.getIsAuthorized()) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    //已授权,自动选择
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    strangerTrance.setLocationAreaCode(customerGridListFormDTO.getAreaCode()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    strangerTrance.setSelectedAreaCode(""); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                strangerTrance.setIsAuthorized(customerGridListFormDTO.getIsAuthorized()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                strangerTrance.setGridNumber(queryList.size()); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |