package com.njzscloud.supervisory.money.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.supervisory.money.pojo.entity.MoneyBillEntity;
import com.njzscloud.supervisory.money.pojo.result.MoneyBillResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 对账单
 */
@Mapper
public interface MoneyBillMapper extends BaseMapper<MoneyBillEntity> {

    /**
     * 分页查询对账单（关联用户、站点、产品信息）
     */
    IPage<MoneyBillEntity> selectMoneyBillWithNames(Page<MoneyBillEntity> page, @Param("entity") MoneyBillEntity entity, @Param("stationIds") List<Long> stationIds);

    /**
     * 查询对账单列表（关联用户、公司、订单信息）
     */
    List<MoneyBillResult> selectMoneyBillList(@Param("entity") MoneyBillResult entity);

    List<MoneyBillEntity> selectMoneyBillWithNames(@Param("entity") MoneyBillEntity entity, @Param("stationIds") List<Long> stationIds);

}
