| | |
| | | import com.sandu.ximon.admin.security.SecurityUtils; |
| | | import com.sandu.ximon.admin.utils.RedisUtils; |
| | | import com.sandu.ximon.dao.bo.LightReportDataBo; |
| | | import com.sandu.ximon.dao.domain.Light; |
| | | import com.sandu.ximon.dao.domain.LightReportData; |
| | | import com.sandu.ximon.dao.domain.Pole; |
| | | import com.sandu.ximon.dao.domain.PoleBinding; |
| | |
| | | if (macCode.isEmpty()) { |
| | | throw new BusinessException("mac不能为空"); |
| | | } |
| | | |
| | | Light light = SpringContextHolder.getBean(LightService.class) |
| | | .getOne(Wrappers.lambdaQuery(Light.class).eq(Light::getDeviceCode, macCode)); |
| | | if (light == null) { |
| | | throw new BusinessException("系统中不存在该单灯"); |
| | | } |
| | | PageHelper.startPage(conditionVO.getPageNo(), conditionVO.getPageSize()); |
| | | List<LightReportData> list = list(Wrappers.lambdaQuery(LightReportData.class).eq(LightReportData::getDeviceCode, macCode)); |
| | | list.forEach( |