| | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.sandu.common.service.impl.BaseServiceImpl; |
| | | import com.sandu.common.util.SpringContextHolder; |
| | | import com.sandu.ximon.admin.utils.VnnoxAPIUtil; |
| | | import com.sandu.ximon.dao.domain.LedPlayerEntity; |
| | | import com.sandu.ximon.dao.mapper.LedPlayerEntityMapper; |
| | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author liuhaonan |
| | |
| | | List list=new ArrayList(); |
| | | list.add(one); |
| | | List<LedPlayerEntity> led = vnnoxAPIUtil.syncCurrentInfo(list); |
| | | return led.get(0); |
| | | Map<String, String> screenShotUrl = SpringContextHolder.getBean(VnnoxService.class).getScreenShotUrl(one.getId().intValue()); |
| | | if(screenShotUrl.get("code").equals("200")){ |
| | | one.setScreenShotUrl(screenShotUrl.get("url")); |
| | | }else { |
| | | one.setScreenShotUrl("缩略图获取失败"); |
| | | } |
| | | return one; |
| | | } |
| | | |
| | | |