|
|
@@ -378,6 +378,10 @@ public class IotServiceImpl extends SuperService {
|
|
|
Assert.hasText(param.getName(), "name不能为空");
|
|
|
Assert.hasText(param.getIdentifier(), "identifier不能为空");
|
|
|
Assert.hasText(param.getIotTopic(), "iotTopic不能为空");
|
|
|
+
|
|
|
+ if (StringUtils.isNotEmpty(param.getIotThingId())) {
|
|
|
+ param.setIotDataType(IotDataType.Device);
|
|
|
+ }
|
|
|
IotDataType iotDataType = param.getIotDataType();
|
|
|
if (iotDataType == null) {
|
|
|
return ResultContent.buildFail("iotDataType 不能为空");
|