2021与蓝度共同重构项目,服务端
liuhaonan
2022-07-19 53ff8133a49f1cc1cf710f05512b067d0f196809
ximon-admin/src/main/java/com/sandu/ximon/admin/service/PlayPlanNvService.java
@@ -29,10 +29,7 @@
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
/**
 * 播放计划
@@ -172,6 +169,9 @@
    }
    public Map<String, Object> pushToLed(Long planId, List<NovaPushResultVO> nova) {
        if(nova==null){
            throw new BusinessException("请选择正确的LED屏");
        }
        PushToLed pushToLed = playPlanMapper.pushToLed(planId);
        PlayPlanNv byId = getById(planId);
        if (pushToLed == null) {
@@ -392,6 +392,9 @@
        if (ledProgram == null) {
            throw new BusinessException("未找到节目");
        }
        if (SecurityUtils.getClientId() != null && !Objects.equals(ledProgram.getClientId(), SecurityUtils.getUserId()) && !Objects.equals(ledProgram.getClientId(), SecurityUtils.getClientId())) {
            throw new BusinessException("请不要操作其他人的节目");
        }
        String pages = ledProgram.getPages();
        List<String> playerIds = new ArrayList<>();
        nova.forEach(n -> {