|
|
@@ -94,6 +94,25 @@ public class IotDeviceQxzController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 气象设备详情信息
|
|
|
+ * @param
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/info/{devBid}")
|
|
|
+ public AjaxResult info(@PathVariable("devBid") String devBid) {
|
|
|
+ ValidateUtil.validateDevBid(devBid);
|
|
|
+
|
|
|
+ IotDeviceListReqVo reqVo = new IotDeviceListReqVo();
|
|
|
+ reqVo.setDevBid(devBid);
|
|
|
+ List<IotDeviceListResVo> resVoList = iIotDeviceService.selectIotDeviceListByType(reqVo);
|
|
|
+ if(resVoList == null || resVoList.isEmpty()){
|
|
|
+ throw new IotBizException(IotErrorCode.PARAM_INVALID.getCode(), "设备不存在");
|
|
|
+ }
|
|
|
+ IotDeviceListResVo resVo = resVoList.get(0);
|
|
|
+ return AjaxResult.success(resVo);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 气象数据列表
|
|
|
* @param reqVo
|
|
|
* @return
|