| | |
| | | return updateResult; |
| | | } |
| | | |
| | | public boolean deleteProgram(Long pid) { |
| | | PoleXixunPlayerEntity byId = getById(pid); |
| | | if (byId == null) { |
| | | public boolean deleteProgram(List<Long> pids) { |
| | | List<PoleXixunPlayerEntity> poleXixunPlayerEntities = listByIds(pids); |
| | | if (poleXixunPlayerEntities.isEmpty()) { |
| | | throw new BusinessException("未找到该节目"); |
| | | } |
| | | /** |
| | | * 熙汛节目删除日志记录开始 |
| | | */ |
| | | String content = "{删除的节目id:" + byId.getProgramId() |
| | | + ", 删除的节目名称:" + byId.getProgramName() |
| | | String content = "{删除的节目id:" + pids |
| | | + " }"; |
| | | StoreOperationRecordsUtils.storeOperationData(null, null, "熙汛节目删除", content); |
| | | /** |
| | | * 熙汛节目删除日志记录结束 |
| | | */ |
| | | return removeById(pid); |
| | | return removeByIds(pids); |
| | | } |
| | | |
| | | public Object getByPid(Long pid) { |
| | |
| | | lightemitUtils.clearPlayerTask(lightemitControlCode); |
| | | //推送最后命令 |
| | | lightemitUtils.sendLastCommand(lightemitControlCode); |
| | | |
| | | /** |
| | | * 熙汛大气数据推送日志记录开始 |
| | | // */ |
| | | // String content = "{设备code:" + lightemitControlCode |
| | | // + ", 推送内容:" + body |
| | | // + " }"; |
| | | // List<String> listCode = new ArrayList<>(); |
| | | // listCode.add(lightemitControlCode); |
| | | // StoreOperationRecordsUtils.storeOperationData(listCode, null, "熙汛大气数据推送", content); |
| | | /** |
| | | * 熙汛大气数据推送日志记录结束 |
| | | */ |
| | | } |
| | | }, 60 * 1000); |
| | | } |