2021与蓝度共同重构项目,服务端
liuhaonan
2022-02-24 34ee53680318cef28c80cf40959b6fd3d55a0c4e
ximon-admin/src/main/java/com/sandu/ximon/admin/service/PlayPlanNvService.java
@@ -160,4 +160,27 @@
       // 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;
    }
}