增加长期监测设备接口
This commit is contained in:
parent
ef0af0b2da
commit
2116abd606
|
|
@ -505,10 +505,15 @@ public class WxAppletController {
|
||||||
|
|
||||||
@ApiOperation("按设备查询监测数据")
|
@ApiOperation("按设备查询监测数据")
|
||||||
@GetMapping("/getSurvDataByDevice")
|
@GetMapping("/getSurvDataByDevice")
|
||||||
public R getSurvDataByDevice(@RequestParam("deployCode") String deployCode){
|
public R getSurvDataByDevice(@RequestParam("deployCode") String deployCode,@RequestParam("deployId") String deployId){
|
||||||
|
SurvDeviceDeploy survDeviceDeploy = null;
|
||||||
|
if(StringUtils.isNotBlank(deployId)){
|
||||||
|
survDeviceDeploy = deviceDeployService.getById(deployId);
|
||||||
|
}
|
||||||
|
if(StringUtils.isNotBlank(deployCode)){
|
||||||
|
survDeviceDeploy = deviceDeployService.getDeviceByCode(deployCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SurvDeviceDeploy survDeviceDeploy = deviceDeployService.getDeviceByCode(deployCode);
|
|
||||||
if(survDeviceDeploy==null){
|
if(survDeviceDeploy==null){
|
||||||
return R.failed("无效的设备");
|
return R.failed("无效的设备");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue