| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.api.R; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.sandu.common.service.impl.BaseServiceImpl; |
| | | import com.sandu.ximon.admin.security.SecurityUtils; |
| | | import com.sandu.ximon.admin.utils.Constant; |
| | | import com.sandu.ximon.dao.domain.IpVolumeData; |
| | | import com.sandu.ximon.dao.mapper.IpVolumeDataMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author liuhaonan |
| | |
| | | } else { |
| | | return Wrappers.lambdaQuery(IpVolumeData.class); |
| | | } |
| | | |
| | | } |
| | | // public List<IpVolumeData> getOnlineList(Long userId) { |
| | | // PageInfo terminalList = getTerminalList(userId, 1, 9999, ""); |
| | | // List<IpVolumeData> list = terminalList.getList(); |
| | | // List<IpVolumeData> result = new ArrayList<>(); |
| | | // for(IpVolumeData t:list){ |
| | | // if(t.getOnLineStatus() != 0) { |
| | | // result.add(t); |
| | | // } |
| | | // } |
| | | // return result; |
| | | // } |
| | | |
| | | // public PageInfo getTerminalList(Long userId, Integer page, Integer limit, String key) { |
| | | // |
| | | // List<TerminalEntity> list = null; |
| | | // if(roleId == Constant.SUPER_ADMIN) { |
| | | // PageHelper.startPage(page,limit); |
| | | // list = getTerminalList(key); |
| | | // }else if(roleId == Constant.ADMIN) { |
| | | // PageHelper.startPage(page,limit); |
| | | // list = getTerminalListByCompanyId(companyId,key); |
| | | // }else { |
| | | // PageHelper.startPage(page,limit); |
| | | // list = getTerminalListByUserId(userId,key); |
| | | // } |
| | | // PageInfo pageInfo = new PageInfo(list); |
| | | // |
| | | // pageInfo.setList(setTerminalStatus(list)); |
| | | // |
| | | // return pageInfo; |
| | | // } |
| | | } |