package com.njcn.device.pms.service.majornetwork.impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.njcn.common.pojo.enums.common.DataStateEnum;
import com.njcn.device.pms.mapper.majornetwork.TerminalLogMapper;
import com.njcn.device.pms.pojo.param.PmsTerminalLogParam;
import com.njcn.device.pms.pojo.po.TerminalLog;
import com.njcn.device.pms.service.majornetwork.ITerminalLogService;
import com.njcn.web.factory.PageFactory;
import org.springframework.stereotype.Service;

import java.util.Objects;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hongawen
 * @since 2023-02-23
 */
@Service
public class TerminalLogServiceImpl extends ServiceImpl<TerminalLogMapper, TerminalLog> implements ITerminalLogService {

    @Override
    public Page<TerminalLog> page(PmsTerminalLogParam pmsTerminalLogParam) {
        return this.baseMapper.pageList(new Page<>(PageFactory.getPageNum(pmsTerminalLogParam),PageFactory.getPageSize(pmsTerminalLogParam)),pmsTerminalLogParam);
    }
}
