| | |
| | | import com.sandu.ximon.dao.domain.*; |
| | | import com.sandu.ximon.dao.mapper.PlayPlanNvMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.aspectj.weaver.ast.Var; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.*; |
| | |
| | | programDto -> { |
| | | programDto.getWidgets().forEach( |
| | | widget -> { |
| | | if (!PlayerWidgetType.WEATHER.equals(widget.getType())) { |
| | | if (PlayerWidgetType.PICTURE.equals(widget.getType()) || PlayerWidgetType.VIDEO.equals(widget.getType())) { |
| | | String url = widget.getUrl(); |
| | | LEDProgramFile one = fileService.getOne(Wrappers.lambdaQuery(LEDProgramFile.class).eq(LEDProgramFile::getFileUrl, url)); |
| | | if (one == null) { |
| | |
| | | } |
| | | ); |
| | | program.setSchedule(playerSchedule); |
| | | |
| | | |
| | | |
| | | program.setNoticeUrl(VnnoxConstant.NOTIFY_URL); |
| | |
| | | programDto -> { |
| | | programDto.getWidgets().forEach( |
| | | widget -> { |
| | | if (!PlayerWidgetType.WEATHER.equals(widget.getType())) { |
| | | if (PlayerWidgetType.PICTURE.equals(widget.getType()) || PlayerWidgetType.VIDEO.equals(widget.getType())) { |
| | | String url = widget.getUrl(); |
| | | LEDProgramFile one = fileService.getOne(Wrappers.lambdaQuery(LEDProgramFile.class).eq(LEDProgramFile::getFileUrl, url)); |
| | | if (one == null) { |
| | |
| | | } |
| | | widget.setMd5(one.getMd5()); |
| | | widget.setSize(Long.parseLong(one.getSize())); |
| | | }else { |
| | | //WratherPage |
| | | System.out.println(widget+"widget"); |
| | | } |
| | | } |
| | | ); |