增加长期监测设备接口
This commit is contained in:
parent
cc4a12fc63
commit
667e5c08df
|
|
@ -509,11 +509,11 @@ public class WxAppletController {
|
||||||
SurvDeviceDeploy survDeviceDeploy = null;
|
SurvDeviceDeploy survDeviceDeploy = null;
|
||||||
if(StringUtils.isNotBlank(deployId)){
|
if(StringUtils.isNotBlank(deployId)){
|
||||||
survDeviceDeploy = deviceDeployService.getById(deployId);
|
survDeviceDeploy = deviceDeployService.getById(deployId);
|
||||||
}
|
}else if(StringUtils.isNotBlank(deployCode)){
|
||||||
if(StringUtils.isNotBlank(deployCode)){
|
|
||||||
survDeviceDeploy = deviceDeployService.getDeviceByCode(deployCode);
|
survDeviceDeploy = deviceDeployService.getDeviceByCode(deployCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(survDeviceDeploy==null){
|
if(survDeviceDeploy==null){
|
||||||
return R.failed("无效的设备");
|
return R.failed("无效的设备");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue