查询用户关注台站数据信息接口xml查询返回字段修改
增加查询台站监测数据信息返回值 关注台站查询接口返回海拔信息没有时,返回-- 关注台站查询接口增加状态信息返回
This commit is contained in:
parent
ebbce5c359
commit
ef6d114f23
|
@ -54,8 +54,8 @@ public class StationOperationController {
|
||||||
|
|
||||||
@GetMapping("getDataReceivingStatus")
|
@GetMapping("getDataReceivingStatus")
|
||||||
@ApiOperation(value = "查询台站监测数据信息", notes = "查询台站监测数据信息")
|
@ApiOperation(value = "查询台站监测数据信息", notes = "查询台站监测数据信息")
|
||||||
public void getDataReceivingStatus(String userId){
|
public Result getDataReceivingStatus(String userId){
|
||||||
stationOperationService.getDataReceivingStatus(userId);
|
return stationOperationService.getDataReceivingStatus(userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,4 +80,10 @@ public class SysUserFocusStation implements Serializable {
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String altitude;
|
private String altitude;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
<select id="findMetDataList" resultType="org.jeecg.modules.base.entity.GardsMetData">
|
<select id="findMetDataList" resultType="org.jeecg.modules.base.entity.GardsMetData">
|
||||||
select
|
select
|
||||||
|
STATION_ID,
|
||||||
START_TIME,
|
START_TIME,
|
||||||
END_TIME
|
END_TIME
|
||||||
from ORIGINAL.GARDS_MET_DATA
|
from ORIGINAL.GARDS_MET_DATA
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
<select id="findSampleDataList" resultType="org.jeecg.modules.base.entity.GardsSampleData">
|
<select id="findSampleDataList" resultType="org.jeecg.modules.base.entity.GardsSampleData">
|
||||||
select
|
select
|
||||||
|
DETECTOR_ID,
|
||||||
DATA_TYPE,
|
DATA_TYPE,
|
||||||
SPECTRAL_QUALIFIE,
|
SPECTRAL_QUALIFIE,
|
||||||
COLLECT_START,
|
COLLECT_START,
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
<select id="findSohDataList" resultType="org.jeecg.modules.base.entity.GardsSohData">
|
<select id="findSohDataList" resultType="org.jeecg.modules.base.entity.GardsSohData">
|
||||||
select
|
select
|
||||||
|
DETECTOR_ID,
|
||||||
START_TIME,
|
START_TIME,
|
||||||
TIME
|
TIME
|
||||||
FROM ORIGINAL.GARDS_SOH_DATA
|
FROM ORIGINAL.GARDS_SOH_DATA
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class StationOperationServiceImpl extends ServiceImpl<StationOperationMap
|
||||||
stationOperation.setStationName(gardsStation.getStationCode());
|
stationOperation.setStationName(gardsStation.getStationCode());
|
||||||
String stationType = StationTypeUtil.getStationType(gardsStation.getStationId());
|
String stationType = StationTypeUtil.getStationType(gardsStation.getStationId());
|
||||||
stationOperation.setStationType(stationType);
|
stationOperation.setStationType(stationType);
|
||||||
stationOperation.setAltitude(Objects.isNull(gardsStation.getElevation())?"":gardsStation.getElevation()+"m");
|
stationOperation.setAltitude(Objects.isNull(gardsStation.getElevation())?"--":gardsStation.getElevation()+"m");
|
||||||
stationOperation.setLon(String.valueOf(gardsStation.getLon()));
|
stationOperation.setLon(String.valueOf(gardsStation.getLon()));
|
||||||
stationOperation.setLat(String.valueOf(gardsStation.getLat()));
|
stationOperation.setLat(String.valueOf(gardsStation.getLat()));
|
||||||
stationOperation.setStatus(gardsStation.getStatus());
|
stationOperation.setStatus(gardsStation.getStatus());
|
||||||
|
@ -449,7 +449,7 @@ public class StationOperationServiceImpl extends ServiceImpl<StationOperationMap
|
||||||
}
|
}
|
||||||
detectorData.setDataList(dataInfoList);
|
detectorData.setDataList(dataInfoList);
|
||||||
if (CollectionUtils.isNotEmpty(detectorInfoMap)){
|
if (CollectionUtils.isNotEmpty(detectorInfoMap)){
|
||||||
if (detectorInfoMap.containsKey(detectorId)){
|
if (StringUtils.isNotBlank(detectorInfoMap.get(detectorId))){
|
||||||
detectorData.setDetectorCode(detectorInfoMap.get(detectorId));
|
detectorData.setDetectorCode(detectorInfoMap.get(detectorId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -459,7 +459,7 @@ public class StationOperationServiceImpl extends ServiceImpl<StationOperationMap
|
||||||
stationMap.put(stationId, detectorDataList);
|
stationMap.put(stationId, detectorDataList);
|
||||||
stationData.setStationId(stationId);
|
stationData.setStationId(stationId);
|
||||||
if (CollectionUtils.isNotEmpty(stationInfoMap)){
|
if (CollectionUtils.isNotEmpty(stationInfoMap)){
|
||||||
if (stationInfoMap.containsKey(stationId)){
|
if (StringUtils.isNotBlank(stationInfoMap.get(stationId))){
|
||||||
stationData.setStationCode(stationInfoMap.get(stationId));
|
stationData.setStationCode(stationInfoMap.get(stationId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@ public class SysUserFocusStationServiceImpl extends ServiceImpl<SysUserFocusStat
|
||||||
item.setStationType(stationType);
|
item.setStationType(stationType);
|
||||||
item.setLon(stations.getLon());
|
item.setLon(stations.getLon());
|
||||||
item.setLat(stations.getLat());
|
item.setLat(stations.getLat());
|
||||||
|
item.setStatus(stations.getStatus());
|
||||||
item.setAltitude(Objects.isNull(stations.getElevation())?"":stations.getElevation()+"m");
|
item.setAltitude(Objects.isNull(stations.getElevation())?"":stations.getElevation()+"m");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user