/*
 * Copyright ©2023 CJB-CNIT Team. All rights reserved
 */
package com.openhis.web.reportmanage.mapper;

import com.openhis.web.reportmanage.dto.DepartmentRevenueStatisticsPageDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.openhis.web.reportmanage.dto.DrugDosageSettlementPageDto;
import com.openhis.web.reportmanage.dto.DrugDosageSettlementSearchParam;

/**
 * 科室收入统计 mapper
 *
 * @author yuxj
 * @date 2025-09-23
 */
@Repository
public interface DepartmentRevenueStatisticsMapper {

    /**
     * 查询药品用量明细
     *
     * @param page 分页
     * @param queryWrapper 查询条件
     * @param disCompleted 发药状态：已发放
     * @param reqCompleted 请求状态：已完成
     * @param antibioticFlg 抗生素flg
     * @return 药品用量明细
     */
    Page<DepartmentRevenueStatisticsPageDto> selectPage(@Param("page") Page<DrugDosageSettlementPageDto> page,
        @Param(Constants.WRAPPER) QueryWrapper<DrugDosageSettlementSearchParam> queryWrapper,
        @Param("disCompleted") Integer disCompleted, @Param("reqCompleted") Integer reqCompleted);
}
