Commit cf7879cb authored by 李秀明's avatar 李秀明

feat: 提交地图接口

parent c2ae4797
......@@ -81,4 +81,12 @@ public class McbWarningController {
}};
return ResponseHelper.buildResponse(result);
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(httpMethod = "GET", value = "[监测总览]地图点位/路线", notes = "[监测总览]地图点位/路线")
@GetMapping(value = "/map/routes")
public ResponseModel<Object> queryMapRoutes(@RequestParam(value = "province", required = false) String province) {
return ResponseHelper.buildResponse(IMcbWarningService.queryMapRoutes(province));
}
}
......@@ -52,4 +52,11 @@ public interface IMcbWarningService {
*/
Long queryQuestionCount(Integer completionStatus);
/**
* 获取地图点位/路线
*
* @return 地图点位/路线
*/
Object queryMapRoutes(String province);
}
package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.feign.McbWarningFeign;
import com.yeejoin.amos.boot.module.jxiop.biz.mapper2.McbWarningMapper;
import com.yeejoin.amos.boot.module.jxiop.biz.service.IMcbWarningService;
import com.yeejoin.amos.boot.module.jxiop.biz.service.IPermissionService;
......@@ -21,6 +22,9 @@ public class McbWarningServiceImpl implements IMcbWarningService {
@Autowired
private IPermissionService permissionService;
@Autowired
private McbWarningFeign mcbWarningFeign;
/**
* 今日预警-预警总数
*
......@@ -107,6 +111,19 @@ public class McbWarningServiceImpl implements IMcbWarningService {
}
/**
* 获取地图点位/路线
*
* @param province 省份
* @return 地图点位/路线
*/
@Override
public Object queryMapRoutes(String province) {
List<String> projectOrgCodes = this.getProjectOrgCodes();
// TODO: 远程调用warning服务
return null;
}
/**
* 获取用户权限(此处使用gatewayId)
*
* @return gatewayIds
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment