/**
 * Copyright 2019 DH
 * All right reserved.
 * 项目名称: 大恒泰山系统
 * 创建日期:2023/6/16
 */
package org.springblade.modules.business.datagram.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.modules.business.datagram.dto.RtuDatagramInfoDTO;
import org.springblade.modules.business.datagram.entity.RtuDatagramInfoEntity;
import org.springblade.modules.business.datagram.mapper.RtuDatagramMapper;
import org.springblade.modules.business.datagram.service.IRtuDatagramService;
import org.springframework.stereotype.Service;

/***
 * Date:2023/6/16
 * Title:文件所属模块（必须填写）
 * Description：对本文件的详细描述，原则上不能少于30字
 * @author dylan
 * @version 1.0
 * Remark：认为有必要的其他信息
 */
@Slf4j
@Service
public class RtuDatagramServiceImpl extends BaseServiceImpl<RtuDatagramMapper, RtuDatagramInfoEntity> implements IRtuDatagramService {
    @Override
    public long datagramCount(RtuDatagramInfoDTO dto) {
        return baseMapper.datagramCount(dto);
    }

    @Override
    public IPage<RtuDatagramInfoEntity> selectPage(IPage<RtuDatagramInfoEntity> page, RtuDatagramInfoDTO dto) {
        return page.setRecords(baseMapper.selectPage(page, dto));
    }
}
