| | |
| | | import com.sandu.common.execption.BusinessException; |
| | | import com.sandu.common.redis.RedisService; |
| | | import com.sandu.common.service.impl.BaseServiceImpl; |
| | | import com.sandu.common.util.SpringContextHolder; |
| | | import com.sandu.ximon.admin.dto.LightTaskDto; |
| | | import com.sandu.ximon.admin.manager.iot.frame.A5Frame; |
| | | import com.sandu.ximon.admin.manager.iot.frame.inner.report.A5LightHeartbeatReportInnerFrame; |
| | | import com.sandu.ximon.admin.manager.iot.frame.inner.request.A5LightBrightnessReqInnerFrame; |
| | |
| | | .ge(LightReportData::getCreateTime, DateUtil.offsetDay(DateUtil.yesterday(), -7)) |
| | | .orderByDesc(LightReportData::getCreateTime)); |
| | | |
| | | List<LightTaskDto> lightTaskDtos = SpringContextHolder.getBean(LightTaskService.class).listLightTask(null, null); |
| | | lightTaskDtos.forEach(Task -> { |
| | | |
| | | }); |
| | | |
| | | |
| | | LocalDateTime dateTime = LocalDateTime.now(); |
| | | dateTime.plusDays(7L); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 解析开关灯指令 |
| | | */ |
| | | public void parseSwitchLightCommand(String command) { |
| | | char[] chars = command.toCharArray(); |
| | | if(chars.length==7){ |
| | | int hour = Integer.valueOf(command.substring(0,2)); |
| | | int min = Integer.valueOf(command.substring(2,4)); |
| | | int brightness = Integer.valueOf(command.substring(4,7)); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 用户拥有的路灯 |
| | | * |
| | | * @return |