package cn.iocoder.yudao.module.energy.dal.mysql.bill;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.energy.dal.dataobject.bill.EnergyBillAdjustmentDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EnergyBillAdjustmentMapper extends BaseMapperX<EnergyBillAdjustmentDO> {

    default List<EnergyBillAdjustmentDO> selectListByBillId(Long billId) {
        return selectList(new LambdaQueryWrapperX<EnergyBillAdjustmentDO>()
                .eq(EnergyBillAdjustmentDO::getBillId, billId));
    }

}
