| | |
| | | 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.domain.LEDProgram; |
| | | import com.sandu.ximon.dao.domain.LedPlayerEntity; |
| | | import com.sandu.ximon.dao.domain.PlayPlanNv; |
| | | import com.sandu.ximon.dao.domain.PushToLed; |
| | | import com.sandu.ximon.dao.mapper.PlayPlanNvMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.*; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 播放计划 |
| | |
| | | public boolean addPlan(PlayPlanParam playPlanParam) { |
| | | |
| | | PlayPlanNv playPlan = new PlayPlanNv(); |
| | | if (SecurityUtils.getClientId()!=null){ |
| | | if (SecurityUtils.getClientId() != null) { |
| | | playPlan.setUserId(SecurityUtils.getUserId()); |
| | | if(clientService.findClientId()){ |
| | | if (clientService.findClientId()) { |
| | | playPlan.setClientId(clientService.getClientId()); |
| | | } |
| | | } |
| | |
| | | program.setPlayerIds(playerIds); |
| | | System.out.println(pushToLed.getPages()); |
| | | |
| | | System.out.println(JSON.parseArray(pushToLed.getPages(), Map.class)); |
| | | program.setPages(JSON.parseObject(pushToLed.getPages(), List.class)); |
| | | program.setSchedules(JSON.parseObject(pushToLed.getSchedule(), Map.class)); |
| | | program.setSchedules(JSON.parseObject(pushToLed.getSchedule(), List.class)); |
| | | Map map = JSON.parseObject(pushToLed.getSchedule(), Map.class); |
| | | |
| | | program.setNoticeUrl(VnnoxConstant.NOTIFY_URL); |
| | |
| | | |
| | | /** |
| | | * 解析定时 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | |
| | | NovaOpenVO Open1 = new NovaOpenVO(); |
| | | Open1.setStartDate(map.get("startDate").toString()); |
| | | Open1.setEndDate(map.get("endDate").toString()); |
| | | |
| | | |
| | | |
| | | return null; |