| | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.serializer.SerializerFeature; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.sandu.common.execption.BusinessException; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | | import com.sandu.common.service.impl.BaseServiceImpl; |
| | | import com.sandu.ximon.admin.config.RealtimeServerBean; |
| | | import com.sandu.ximon.admin.param.LEDScheduleParam_xixun; |
| | |
| | | |
| | | /** |
| | | * 定时推送 |
| | | * |
| | | * @param scheduleId |
| | | * @param lightemitIds |
| | | */ |
| | |
| | | return byId; |
| | | } |
| | | |
| | | |
| | | public List listSchedule(BaseConditionVO baseConditionVO, String keyword) { |
| | | LambdaQueryWrapper<LedScheduleEntity> eq = new LambdaQueryWrapper<>(); |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | if (SecurityUtils.getClientId() != null && clientService.findClientId()) { |
| | | eq = Wrappers.lambdaQuery(LedScheduleEntity.class).eq(LedScheduleEntity::getUserId, SecurityUtils.getUserId()); |
| | | } else if (SecurityUtils.getClientId() != null && !clientService.findClientId()) { |
| | | eq = Wrappers.lambdaQuery(LedScheduleEntity.class).eq(LedScheduleEntity::getClientId, SecurityUtils.getUserId()); |
| | | } else { |
| | | eq = Wrappers.lambdaQuery(LedScheduleEntity.class); |
| | | } |
| | | if (!keyword.isEmpty()) { |
| | | eq = eq.like(LedScheduleEntity::getName, keyword); |
| | | } |
| | | |
| | | return list(eq); |
| | | } |
| | | |
| | | } |