xiaoyong931011
2022-03-04 a99275f05dcbd532ee5b8c5f9c5a80afea16e16a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.xcong.excoin.modules.zhiya.service.impl;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xcong.excoin.common.entity.QueryRequest;
import com.xcong.excoin.modules.trademanage.entity.ContractHoldOrderEntity;
import com.xcong.excoin.modules.trademanage.entity.OrderCoinsDealEntity;
import com.xcong.excoin.modules.trademanage.mapper.ContractHoldOrderEntityMapper;
import com.xcong.excoin.modules.trademanage.mapper.OrderCoinDealMapper;
import com.xcong.excoin.modules.trademanage.service.TradeManageService;
import com.xcong.excoin.modules.zhiya.entity.ZhiYaEntity;
import com.xcong.excoin.modules.zhiya.mapper.ZhiyaMapper;
import com.xcong.excoin.modules.zhiya.service.ZhiyaService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
 
@Service
@RequiredArgsConstructor
public class ZhiyaServiceImpl extends ServiceImpl<ZhiyaMapper, ZhiYaEntity> implements ZhiyaService {
 
    private final ZhiyaMapper zhiyaMapper;
 
    @Override
    public IPage<ZhiYaEntity> findZhiyaListInPage(ZhiYaEntity zhiYaEntity, QueryRequest request) {
        Page<ZhiYaEntity> page = new Page<>(request.getPageNum(), request.getPageSize());
        IPage<ZhiYaEntity> zhiyaInPage = zhiyaMapper.selectZhiyaListInPage(page, zhiYaEntity);
        return zhiyaInPage;
    }
}