package com.yeejoin.amos.boot.module.hygf.biz.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.hygf.api.dto.YearPowerDto;
import com.yeejoin.amos.boot.module.hygf.api.entity.YearPower;
import com.yeejoin.amos.boot.module.hygf.api.service.IYearPowerService;
import com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.MonthPowerMapper;
import com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.YearPowerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.typroject.tyboot.core.rdbms.service.BaseService;

import java.util.List;

/**
 * 按年统计服务实现类
 *
 * @author system_generator
 * @date 2023-09-20
 */
@Service
public class YearPowerServiceImpl extends BaseService<YearPowerDto,YearPower,YearPowerMapper> implements IYearPowerService {

    @Autowired
    MonthPowerMapper monthPowerMapper;

    /**
     * 分页查询
     */
    public Page<YearPowerDto> queryForYearPowerPage(Page<YearPowerDto> page)   {
        return this.queryForPage(page, null, false);
    }

    /**
     * 列表查询 示例
     */
    public List<YearPowerDto> queryForYearPowerList()   {
        return this.queryForList("" , false);
    }




}