|  |  | @@ -1,46 +0,0 @@ | 
		
	
		
			
			|  |  |  | package com.iformall.controller.market; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | import com.iformall.common.Result; | 
		
	
		
			
			|  |  |  | import com.iformall.common.ResultData; | 
		
	
		
			
			|  |  |  | import com.iformall.controller.base.BaseController; | 
		
	
		
			
			|  |  |  | import com.iformall.domain.po.FengNiaoMapConfig; | 
		
	
		
			
			|  |  |  | import com.iformall.service.FengNiaoMapService; | 
		
	
		
			
			|  |  |  | import io.swagger.annotations.Api; | 
		
	
		
			
			|  |  |  | import io.swagger.annotations.ApiOperation; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | import org.apache.commons.lang3.StringUtils; | 
		
	
		
			
			|  |  |  | import org.slf4j.Logger; | 
		
	
		
			
			|  |  |  | import org.slf4j.LoggerFactory; | 
		
	
		
			
			|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
		
	
		
			
			|  |  |  | import org.springframework.web.bind.annotation.*; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | /** | 
		
	
		
			
			|  |  |  | * @author gongbiao | 
		
	
		
			
			|  |  |  | */ | 
		
	
		
			
			|  |  |  | @RestController | 
		
	
		
			
			|  |  |  | @RequestMapping("fengniaomap") | 
		
	
		
			
			|  |  |  | @Api(description = "蜂鸟地图") | 
		
	
		
			
			|  |  |  | public class FengNiaoMapController extends BaseController { | 
		
	
		
			
			|  |  |  | private final Logger logger = LoggerFactory.getLogger(this.getClass()); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | @Autowired | 
		
	
		
			
			|  |  |  | private FengNiaoMapService fengNiaoMapService; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | @ApiOperation("查询地图配置") | 
		
	
		
			
			|  |  |  | @GetMapping("/getConfig") | 
		
	
		
			
			|  |  |  | public ResultData getConfig() { | 
		
	
		
			
			|  |  |  | String tenantId = getTenantInfo().getTenantId(); | 
		
	
		
			
			|  |  |  | if (!StringUtils.isBlank(tenantId)) { | 
		
	
		
			
			|  |  |  | try { | 
		
	
		
			
			|  |  |  | FengNiaoMapConfig config = fengNiaoMapService.getConfigByTenantId(tenantId); | 
		
	
		
			
			|  |  |  | return new ResultData(Result.SUCCESS, "查询成功", config); | 
		
	
		
			
			|  |  |  | }catch(Exception e) { | 
		
	
		
			
			|  |  |  | logger.error("fengniaomap getConfig error.",e); | 
		
	
		
			
			|  |  |  | return new ResultData(Result.SUCCESS, "查询成功", null); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | }else { | 
		
	
		
			
			|  |  |  | return new ResultData(Result.SUCCESS, "查询成功", null); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } |