| | |
| | | // return program; |
| | | |
| | | } |
| | | |
| | | public Object getByPlanId(Long planId) { |
| | | PlayPlanNv byId = getById(planId); |
| | | if (byId == null) { |
| | | throw new BusinessException("找不到该计划"); |
| | | } |
| | | LEDProgram byId1 = ledProgramService.getById(byId.getLedProgramId()); |
| | | if (byId1 == null) { |
| | | throw new BusinessException("找不到该节目"); |
| | | } |
| | | Map schedule = JSON.parseObject(byId.getSchedule(), Map.class); |
| | | List pages = JSON.parseObject(byId1.getPages(), List.class); |
| | | Map plan=new HashMap(); |
| | | plan.put("planId",byId.getId()); |
| | | plan.put("planName",byId.getName()); |
| | | plan.put("programId",byId1.getId()); |
| | | plan.put("programName",byId1.getName()); |
| | | plan.put("planVolume",byId.getVolume()); |
| | | plan.put("preview",byId1.getPreview()); |
| | | plan.put("pages",pages); |
| | | plan.put("schedule",schedule); |
| | | return plan; |
| | | } |
| | | } |