Commit 04991136 authored by caotao's avatar caotao

1.大屏中间地图接口返回新增platformStationId字段。

2.地图区域新增areaCode字段。 3.indicator字段名称进行修改。
parent ac4f08c5
......@@ -39,4 +39,7 @@ public class MapRegionDto extends BaseDto {
@ApiModelProperty(value = "片区中心点")
private CameraInfo cameraInfo;
@ApiModelProperty(value = "片区code")
private CameraInfo areaCode;
}
......@@ -27,6 +27,9 @@ public class StationInfoDto {
@ApiModelProperty(value ="场站id")
private Long stationId;
@ApiModelProperty(value ="平台id")
private String platformStationId;
@ApiModelProperty(value = "场站名称")
private String stationName;
......
......@@ -13,6 +13,9 @@ public class StationRecordInfo {
@ApiModelProperty(value = "场站id")
private Long stationId;
@ApiModelProperty(value = "平台id")
private String platformStationId;
@ApiModelProperty(value = "场站名称")
private String stationName;
......
......@@ -17,7 +17,7 @@ import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("indicator")
@TableName("map_indicator")
public class Indicator extends BaseEntity {
private static final long serialVersionUID = 1L;
......
......@@ -54,4 +54,10 @@ public class MapRegion extends BaseEntity {
*/
@TableField(value = "cameraInfo", typeHandler = FastjsonTypeHandler.class)
private CameraInfo cameraInfo;
/**
* 片区文字显示的省份
*/
@TableField("area_code")
private String areaCode;
}
......@@ -17,7 +17,7 @@ import java.util.Date;
*/
@Data
@Accessors(chain = true)
@TableName(value = "monitor_fan_indicator" ,autoResultMap = true)
@TableName(value = "monitor_fan_indicator_copy3" ,autoResultMap = true)
public class MonitorFanIndicator extends BaseEntity {
......
......@@ -108,6 +108,7 @@
<select id="getStationList" resultType="com.yeejoin.amos.boot.module.jxiop.api.dto.StationRecordInfo">
select
station_basic.sequence_nbr stationId,
station_basic.platform_station_id platformStationId,
station_basic.station_name stationName ,
station_basic.station_type stationType,
station_basic.station_flag stationFlag,
......
......@@ -172,7 +172,7 @@ public class StationBasicController extends BaseController {
*
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@TycloudOperation(ApiLevel = UserType.AGENCY,needAuth = false)
@ApiOperation(httpMethod = "GET", value = "场站地图数据", notes = "场站地图数据")
@GetMapping(value = "/listforMap")
public ResponseModel<List<StationInfoDto>> getStationList(@RequestParam(value = "areaCode", required = false) String areaCode,@RequestParam(value = "type", required = false,defaultValue = "qj") String type) {
......
......@@ -311,6 +311,7 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto, Statio
list.forEach(stationRecordInfo -> {
StationInfoDto stationInfoDto = new StationInfoDto();
stationInfoDto.setStationId(stationRecordInfo.getStationId());
stationInfoDto.setPlatformStationId(stationRecordInfo.getPlatformStationId());
stationInfoDto.setStationName(stationRecordInfo.getStationName());
stationInfoDto.setType(stationRecordInfo.getStationType());
//url 暂时写死
......
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