| | |
| | | import com.aliyuncs.iot.model.v20180120.BatchGetDeviceStateResponse; |
| | | import com.aliyuncs.iot.model.v20180120.QueryDeviceDetailResponse; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.sandu.common.execption.BusinessException; |
| | | import com.sandu.common.redis.RedisService; |
| | | import com.sandu.common.service.impl.BaseServiceImpl; |
| | |
| | | * |
| | | * @return |
| | | */ |
| | | public List<Pole> queryStatesAndList() { |
| | | public List<Pole> queryStatesAndList(Integer pageNo,Integer pageSize) { |
| | | // List<LampPost> list = list(Wrappers.lambdaQuery(LampPost.class).eq(LampPost::getClientId, SecurityUtils.getUserId())); |
| | | //List<Pole> list = list(Wrappers.lambdaQuery(Pole.class)); |
| | | PageHelper.startPage(pageNo,pageSize); |
| | | List<Pole> list = new ArrayList<>(); |
| | | if (SecurityUtils.getClientId() == null) { |
| | | list = list(Wrappers.lambdaQuery(Pole.class)); |