|  |  | @ -18,8 +18,12 @@ | 
			
		
	
		
			
				
					|  |  |  | package com.epmet.controller; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.utils.Result; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.validator.ValidatorUtils; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.form.CustomerGridListFormDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.form.StrangerFormDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.result.CustomerGridForStrangerResultDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.result.HomeDesignByCustomerResultDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.service.StrangerAccessRecordService; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.service.StrangerService; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
			
		
	
	
		
			
				
					|  |  | @ -27,6 +31,8 @@ import org.springframework.web.bind.annotation.RequestBody; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.RestController; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | import java.util.List; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | /** | 
			
		
	
		
			
				
					|  |  |  |  * 居民端-陌生人导览 | 
			
		
	
	
		
			
				
					|  |  | @ -40,6 +46,9 @@ public class StrangerResiGuideController { | 
			
		
	
		
			
				
					|  |  |  | 	@Autowired | 
			
		
	
		
			
				
					|  |  |  | 	private StrangerService strangerService; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 	@Autowired | 
			
		
	
		
			
				
					|  |  |  | 	private StrangerAccessRecordService strangerAccessRecordService; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 	/** | 
			
		
	
		
			
				
					|  |  |  | 	 * @param | 
			
		
	
		
			
				
					|  |  |  | 	 * @Author  sun | 
			
		
	
	
		
			
				
					|  |  | @ -51,4 +60,37 @@ public class StrangerResiGuideController { | 
			
		
	
		
			
				
					|  |  |  | 		return strangerService.getgridhome(formDTO); | 
			
		
	
		
			
				
					|  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 	/** | 
			
		
	
		
			
				
					|  |  |  | 	 * @Description 陌生访客根据自动定位获取附近网格数据 | 
			
		
	
		
			
				
					|  |  |  | 	 * @Param CustomerGridListFormDTO | 
			
		
	
		
			
				
					|  |  |  | 	 * @return Result<List<CustomerGridForStrangerResultDTO>> | 
			
		
	
		
			
				
					|  |  |  | 	 * @Author wangc | 
			
		
	
		
			
				
					|  |  |  | 	 * @Date 2020.03.19 14:13 | 
			
		
	
		
			
				
					|  |  |  | 	 **/ | 
			
		
	
		
			
				
					|  |  |  | 	@PostMapping("getlocationcustomergridlist") | 
			
		
	
		
			
				
					|  |  |  | 	Result<List<CustomerGridForStrangerResultDTO>> getLocationCustomerGridList(@RequestBody CustomerGridListFormDTO customerGridListFormDTO){ | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		ValidatorUtils.validateEntity(customerGridListFormDTO); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		return strangerAccessRecordService.listCustomerGrid(customerGridListFormDTO); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 	/** | 
			
		
	
		
			
				
					|  |  |  | 	 * @Description 陌生访客手动选定位置获取附近网格数据 | 
			
		
	
		
			
				
					|  |  |  | 	 * @Param CustomerGridListFormDTO | 
			
		
	
		
			
				
					|  |  |  | 	 * @return Result<List<CustomerGridForStrangerResultDTO>> | 
			
		
	
		
			
				
					|  |  |  | 	 * @Author wangc | 
			
		
	
		
			
				
					|  |  |  | 	 * @Date 2020.03.19 14:13 | 
			
		
	
		
			
				
					|  |  |  | 	 **/ | 
			
		
	
		
			
				
					|  |  |  | 	@PostMapping("getselectcdcustomergridlist") | 
			
		
	
		
			
				
					|  |  |  | 	Result<List<CustomerGridForStrangerResultDTO>> getSelectcdCustomerGridList(@RequestBody CustomerGridListFormDTO customerGridListFormDTO){ | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		ValidatorUtils.validateEntity(customerGridListFormDTO); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		return strangerAccessRecordService.listCustomerGrid(customerGridListFormDTO); | 
			
		
	
		
			
				
					|  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
	
		
			
				
					|  |  | 
 |