| | |
| | | import com.sandu.ximon.admin.utils.request.PlayerProgram; |
| | | import com.sandu.ximon.admin.utils.response.VnnoxResult; |
| | | import com.sandu.ximon.admin.utils.response.VnnoxResultResponse; |
| | | import com.sandu.ximon.admin.vo.NovaOpenVO; |
| | | import com.sandu.ximon.admin.vo.PlansVO; |
| | | import com.sandu.ximon.dao.domain.*; |
| | | import com.sandu.ximon.dao.enums.AdministratorEnums; |
| | | import com.sandu.ximon.dao.mapper.PlayPlanNvMapper; |
| | |
| | | |
| | | System.out.println(JSON.parseArray(pushToLed.getPages(), Map.class)); |
| | | program.setPages(JSON.parseObject(pushToLed.getPages(), List.class)); |
| | | program.setSchedule(JSON.parseObject(pushToLed.getSchedule(), Map.class)); |
| | | program.setSchedules(JSON.parseObject(pushToLed.getSchedule(), Map.class)); |
| | | Map map = JSON.parseObject(pushToLed.getSchedule(), Map.class); |
| | | |
| | | program.setNoticeUrl(VnnoxConstant.NOTIFY_URL); |
| | | VnnoxResultResponse vnnoxResultResponse = vnnoxProgramAPIUtil.normalProgram(program); |
| | | VnnoxResultResponse vnnoxResultResponse = vnnoxProgramAPIUtil.timeProgram(program); |
| | | VnnoxResult vnnoxResult = vnnoxAPIUtil.volChange(playerIds, Integer.valueOf(one.getVolume()).intValue()); |
| | | |
| | | // VnnoxResultResponse vnnoxResultResponse = vnnoxProgramAPIUtil.normalProgram(push); |
| | |
| | | |
| | | result.put("success", successList); |
| | | result.put("fail", faileList); |
| | | result.put("program", program); |
| | | |
| | | return result; |
| | | // return program; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 解析定时 |
| | | * @param |
| | | * @return |
| | | */ |
| | | public List<Map<String, Object>> parseSchedule(Map map) { |
| | | // map.get("startDate"); |
| | | // map.get("endDate"); |
| | | // List plans = (List<PlansVO>) map.get("plans"); |
| | | // |
| | | // NovaOpenVO Open1 = new NovaOpenVO(); |
| | | // Open1.setStartDate(map.get("startDate").toString()); |
| | | // Open1.setEndDate(map.get("endDate").toString()); |
| | | // Open1.setExecTime(); |
| | | |
| | | |
| | | return null; |
| | | } |
| | | |
| | | public Object getByPlanId(Long planId) { |
| | | PlayPlanNv byId = getById(planId); |
| | | if (byId == null) { |