瀏覽代碼

新增 吸虫塔获取设备配置和编辑设备配置接口

zhaiyifei 11 月之前
父節點
當前提交
a19fe0cf2c

+ 4 - 0
src/main/java/com/yunfeiyun/agmp/iotm/device/scd/controller/IotDeviceScdController.java

@@ -236,6 +236,10 @@ public class IotDeviceScdController extends BaseController {
         if(StringUtils.isEmpty(devBid) || iotScdConfig == null){
             throw new IotBizException(IotErrorCode.PARAM_INVALID.getCode(),"参数不能为空");
         }
+        if(StringUtils.isEmpty(iotScdConfig.getClt_t())){
+            throw new IotBizException(IotErrorCode.PARAM_INVALID.getCode(),"参数不能为空");
+        }
+
         IotDevice iotDevice = iIotDeviceService.selectIotDeviceByDevBid(devBid);
         if(iotDevice == null){
             throw new IotBizException(ErrorCode.INVALID_PARAMETER.getCode(),"设备不存在");