| | |
| | | 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) { |