|
|
package com.sunyo.energy.location.service.imp;
|
|
|
|
|
|
import com.github.pagehelper.Page;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.sunyo.energy.location.dao.PayRecordsMapper;
|
|
|
import com.sunyo.energy.location.model.PayRecords;
|
...
|
...
|
@@ -7,6 +9,8 @@ import com.sunyo.energy.location.service.PayOrderService; |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* Created by XYH on 2019/12/16.
|
|
|
*/
|
...
|
...
|
@@ -14,9 +18,16 @@ import org.springframework.stereotype.Service; |
|
|
public class PayOrderImpl implements PayOrderService {
|
|
|
@Autowired
|
|
|
PayRecordsMapper recordsMapper;
|
|
|
|
|
|
|
|
|
@Override
|
|
|
public PageInfo<PayRecords> getOrder(PayRecords payRecords, int currentPage, int pageSize) {
|
|
|
return null;
|
|
|
public PageInfo<PayRecords> getOrder(int pageSize, int pageNum) {
|
|
|
|
|
|
Page<PayRecords> page = PageHelper.startPage(pageNum,pageSize);
|
|
|
List<PayRecords> list = recordsMapper.findAll();
|
|
|
|
|
|
PageInfo<PayRecords> result = new PageInfo<>(list);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
|