|
@@ -2,7 +2,9 @@ package com.chuanxia.mcp.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.chuanxia.mcp.bean.dto.DomainBindDto;
|
|
import com.chuanxia.mcp.bean.dto.DomainBindDto;
|
|
import com.chuanxia.mcp.bean.dto.DomainOperatorBindDto;
|
|
import com.chuanxia.mcp.bean.dto.DomainOperatorBindDto;
|
|
@@ -11,6 +13,7 @@ import com.chuanxia.mcp.bean.model.CdnDomain;
|
|
import com.chuanxia.mcp.bean.model.CdnDomainOperator;
|
|
import com.chuanxia.mcp.bean.model.CdnDomainOperator;
|
|
import com.chuanxia.mcp.bean.model.CdnOperator;
|
|
import com.chuanxia.mcp.bean.model.CdnOperator;
|
|
import com.chuanxia.mcp.bean.model.SystemUser;
|
|
import com.chuanxia.mcp.bean.model.SystemUser;
|
|
|
|
+import com.chuanxia.mcp.bean.vo.CdnOperatorVo;
|
|
import com.chuanxia.mcp.bean.vo.Result;
|
|
import com.chuanxia.mcp.bean.vo.Result;
|
|
import com.chuanxia.mcp.exception.ResultException;
|
|
import com.chuanxia.mcp.exception.ResultException;
|
|
import com.chuanxia.mcp.mapper.CdnDomainMapper;
|
|
import com.chuanxia.mcp.mapper.CdnDomainMapper;
|
|
@@ -82,6 +85,8 @@ public class CdnOperatorServiceImpl extends ServiceImpl<CdnOperatorMapper, CdnOp
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result listPage(OperatorQueryDto queryDto) {
|
|
public Result listPage(OperatorQueryDto queryDto) {
|
|
- return null;
|
|
|
|
|
|
+ IPage<CdnOperatorVo> page = new Page<>(queryDto.getPageSize(), queryDto.getPageNum());
|
|
|
|
+ page = domainOperatorService.listPage(page, queryDto);
|
|
|
|
+ return Result.success(page);
|
|
}
|
|
}
|
|
}
|
|
}
|