|
|
@ -307,6 +307,12 @@ public class IotThingEntityServiceImpl extends BaseServiceImpl<IotThingEntityMap |
|
|
IotThingEntityInfoDTO iotThingEntityInfoDTO = ConvertUtils.sourceToTarget(thingEntityDTO, IotThingEntityInfoDTO.class); |
|
|
IotThingEntityInfoDTO iotThingEntityInfoDTO = ConvertUtils.sourceToTarget(thingEntityDTO, IotThingEntityInfoDTO.class); |
|
|
iotThingEntityInfoDTO.setTags( StringUtils.isNotBlank(thingEntityDTO.getTags()) ? thingEntityDTO.getTags().split(",") : new String[]{}); |
|
|
iotThingEntityInfoDTO.setTags( StringUtils.isNotBlank(thingEntityDTO.getTags()) ? thingEntityDTO.getTags().split(",") : new String[]{}); |
|
|
iotThingEntityInfoDTO.setDeptIds( StringUtils.isNotBlank(thingEntityDTO.getDeptIds()) ? thingEntityDTO.getDeptIds().split(",") : new String[]{}); |
|
|
iotThingEntityInfoDTO.setDeptIds( StringUtils.isNotBlank(thingEntityDTO.getDeptIds()) ? thingEntityDTO.getDeptIds().split(",") : new String[]{}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(ObjectUtils.isNotEmpty( iotThingEntityInfoDTO.getImg())){ |
|
|
|
|
|
String url =iotThingEntityInfoDTO.getImg(); |
|
|
|
|
|
iotThingEntityInfoDTO.setImg(OSSFactory.splice(url)); |
|
|
|
|
|
} |
|
|
return iotThingEntityInfoDTO; |
|
|
return iotThingEntityInfoDTO; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|