package com.chinaweal.aiccs.aiccs.query.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chinaweal.aiccs.aiccs.query.entity.TSEntBaseQuery;
import com.chinaweal.aiccs.aiccs.query.mapper.TSEntBaseQueryMapper;
import com.chinaweal.aiccs.aiccs.query.service.TSEntBaseQueryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TSEntBaseQueryServiceImpl implements TSEntBaseQueryService {

    @Resource
    private TSEntBaseQueryMapper tsEntBaseQueryMapper;

    @Override
    public IPage<TSEntBaseQuery> abnormalListByPage(IPage<TSEntBaseQuery> pagingCriteria, TSEntBaseQuery tsEntBaseModel) {
        return tsEntBaseQueryMapper.selectByPageExptList(pagingCriteria, tsEntBaseModel);
    }

    @Override
    public TSEntBaseQuery queryEntBaseInfoByRegno(String regno) {
        return tsEntBaseQueryMapper.queryEntBaseInfoByRegno(regno);
    }
}
