package com.patzn.lims.res.service.impl;

import com.patzn.lims.res.entity.SysMsg;
import com.patzn.lims.res.mapper.SysMsgMapper;
import com.patzn.lims.res.service.ISysMsgService;
import com.patzn.lims.core.web.BaseServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wwd
 * @since 2020-03-18
 */
@Service
public class SysMsgServiceImpl extends BaseServiceImpl<SysMsgMapper, SysMsg> implements ISysMsgService {

    @Override
    public Page<SysMsg> page(Page<SysMsg> page, SysMsg sysMsg) {
        QueryWrapper<SysMsg> wrapper = Wrappers.<SysMsg>query(sysMsg);
        return this.page(page, wrapper);
    }
}
