| | |
| | | package com.sandu.ximon.admin.service; |
| | | |
| | | import com.sandu.common.execption.BusinessException; |
| | | import com.sandu.ximon.admin.config.VnnoxConstant; |
| | | import com.sandu.ximon.admin.utils.RedisUtils; |
| | | import com.sandu.ximon.admin.utils.VnnoxAPIUtil; |
| | |
| | | ); |
| | | } |
| | | |
| | | public boolean updateDataName(Long id, String name){ |
| | | LedPlayerEntity byId = ledPlayerEntityService.getById(id); |
| | | if(byId==null){ |
| | | throw new BusinessException("未找到该设备"); |
| | | } |
| | | LedPlayerEntity led=new LedPlayerEntity(); |
| | | led.setId(id); |
| | | led.setName(name); |
| | | return ledPlayerEntityService.updateById(led); |
| | | } |
| | | |
| | | |
| | | } |