|
@@ -1,16 +1,22 @@
|
|
|
package com.hr.repository.service.impl;
|
|
package com.hr.repository.service.impl;
|
|
|
|
|
|
|
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
import com.hr.param.InterfaceCalledQueryParam;
|
|
import com.hr.param.InterfaceCalledQueryParam;
|
|
|
import com.hr.repository.domain.IpOrderPO;
|
|
import com.hr.repository.domain.IpOrderPO;
|
|
|
|
|
+import com.hr.repository.jpa.IpLogRepository;
|
|
|
import com.hr.repository.jpa.IpOrderRepository;
|
|
import com.hr.repository.jpa.IpOrderRepository;
|
|
|
import com.hr.repository.service.IpOrderService;
|
|
import com.hr.repository.service.IpOrderService;
|
|
|
|
|
+import com.hr.vo.IpInterfaceCallVO;
|
|
|
import com.hr.vo.IpInterfaceVO;
|
|
import com.hr.vo.IpInterfaceVO;
|
|
|
import com.hr.vo.IpOrderVO;
|
|
import com.hr.vo.IpOrderVO;
|
|
|
|
|
+import com.yy.basedevelop.common.data.BasePageResult;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.*;
|
|
import org.springframework.data.domain.*;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 调用记录表;(ip_order)表服务接口实现类
|
|
* 调用记录表;(ip_order)表服务接口实现类
|
|
|
* @author : http://www.yonsum.com
|
|
* @author : http://www.yonsum.com
|
|
@@ -20,6 +26,8 @@ import org.springframework.stereotype.Service;
|
|
|
public class IpOrderServiceImpl implements IpOrderService {
|
|
public class IpOrderServiceImpl implements IpOrderService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IpOrderRepository ipOrderRepository;
|
|
private IpOrderRepository ipOrderRepository;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IpLogRepository ipLogRepository;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 通过ID查询单条数据
|
|
* 通过ID查询单条数据
|
|
@@ -70,9 +78,10 @@ public class IpOrderServiceImpl implements IpOrderService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public Page<IpInterfaceVO> pageQuery(InterfaceCalledQueryParam ipInterfaceCalledQueryParam, Integer pageNum, Integer pageSize) {
|
|
|
|
|
-
|
|
|
|
|
- return null;
|
|
|
|
|
|
|
+ public BasePageResult<IpInterfaceCallVO> pageQuery(InterfaceCalledQueryParam ipInterfaceCalledQueryParam) {
|
|
|
|
|
+ PageHelper.startPage(ipInterfaceCalledQueryParam.getPageNum(), ipInterfaceCalledQueryParam.getPageSize());
|
|
|
|
|
+ BasePageResult<IpInterfaceCallVO> result = ipLogRepository.queryInterfaceCallHistory(ipInterfaceCalledQueryParam);
|
|
|
|
|
+ return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|