Browse Source

物实体图片

thing_master
xiachao 1 year ago
parent
commit
e8a02476ae
  1. 6
      modules/thing/src/main/java/com/thing/thing/entity/service/impl/IotThingEntityServiceImpl.java

6
modules/thing/src/main/java/com/thing/thing/entity/service/impl/IotThingEntityServiceImpl.java

@ -307,6 +307,12 @@ public class IotThingEntityServiceImpl extends BaseServiceImpl<IotThingEntityMap
IotThingEntityInfoDTO iotThingEntityInfoDTO = ConvertUtils.sourceToTarget(thingEntityDTO, IotThingEntityInfoDTO.class);
iotThingEntityInfoDTO.setTags( StringUtils.isNotBlank(thingEntityDTO.getTags()) ? thingEntityDTO.getTags().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;
}

Loading…
Cancel
Save