整合数据统计、最新数据查询接口
This commit is contained in:
parent
0efed4fa55
commit
efab01a4e7
|
|
@ -126,12 +126,24 @@ public class SurvDeviceDeployController {
|
|||
@ApiLogin
|
||||
public R<List<SurvDeviceDeploy>> survDeviceList(@RequestParam(name = "stationCode",required = false)String stationCode) {
|
||||
List<String> deployTypes = new ArrayList<>();
|
||||
deployTypes.add(PollutionConstants.AIR_SURV);
|
||||
deployTypes.add(PollutionConstants.SOIL_SURV);
|
||||
deployTypes.add(PollutionConstants.WATER_QULITY);
|
||||
deployTypes.add(PollutionConstants.WATER_ORIENT);
|
||||
deployTypes.add(PollutionConstants.WATER_LIVE);
|
||||
List<SurvDeviceDeploy> deploys = survDeviceDeployService.getDeviceListByStation(stationCode,deployTypes,null);
|
||||
return R.ok(deploys);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设备列表
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value="五常设备列表", notes="五常设备列表")
|
||||
@GetMapping(value = "/waterDeviceList")
|
||||
@ApiLogin
|
||||
public R<List<SurvDeviceDeploy>> waterDeviceList(@RequestParam(name = "stationCode",required = false)String stationCode) {
|
||||
List<String> deployTypes = new ArrayList<>();
|
||||
deployTypes.add(PollutionConstants.WATER_QULITY);
|
||||
List<SurvDeviceDeploy> deploys = survDeviceDeployService.getDeviceListByStation(stationCode,deployTypes,null);
|
||||
return R.ok(deploys);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue