package com.steerinfo.meterwork.meterstoragemonitornote.service.impl;

import com.steerinfo.framework.mapper.IBaseMapper;
import com.steerinfo.framework.service.impl.BaseServiceImpl;
import com.steerinfo.framework.service.pagehelper.PageHelper;
import com.steerinfo.framework.service.pagehelper.PageList;
import com.steerinfo.metermonitor.metermonitornote.model.MeterMonitorNote;
import com.steerinfo.meterwork.meterstoragemonitornote.model.MeterStorageMonitorNote;
import com.steerinfo.meterwork.meterstoragemonitornote.mapper.MeterStorageMonitorNoteMapper;
import com.steerinfo.meterwork.meterstoragemonitornote.service.IMeterStorageMonitorNoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * MeterStorageMonitorNote服务实现：
 * @author generator
 * @version 1.0-SNAPSHORT 2020-10-26 05:09
 * 类描述
 * 修订历史：
 * 日期：2020-10-26
 * 作者：generator
 * 参考：
 * 描述：MeterStorageMonitorNote服务实现
 * @see null
 * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
 */
@Service(value = "meterStorageMonitorNoteService")
public class MeterStorageMonitorNoteServiceImpl extends BaseServiceImpl<MeterStorageMonitorNote, String> implements IMeterStorageMonitorNoteService {

    @Autowired
    private MeterStorageMonitorNoteMapper meterStorageMonitorNoteMapper;

    @Override
    protected IBaseMapper<MeterStorageMonitorNote, String> getMapper() {
        return meterStorageMonitorNoteMapper;
    }

    @Override
    @Transactional
    public PageList<MeterStorageMonitorNote> selectView(HashMap parmas, Integer pageNum, Integer pageSize)
    {
        PageHelper.startPage(pageNum, pageSize);
        List<MeterStorageMonitorNote> rows = meterStorageMonitorNoteMapper.selectView(parmas);
        PageList pageInfo = new PageList(rows);
        return pageInfo;
    }

}
