package com.openhis.web.inventorymanage.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

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.adjustprice.dto.ChangePricePageDto;
import com.openhis.web.inventorymanage.dto.ReceiptApprovalSearchParam;
import com.openhis.web.inventorymanage.dto.ReceiptPageDto;

/**
 * @ClassName AdjustPriceMapper
 * @Description TODO
 * @Author raymond
 * @Date 2025/10/23 14:41
 * @Version 1.0
 **/
@Component
public interface InventoryAdjustPriceMapper {
    /**
     * 查询单据审批分页列表
     *
     * @param page 分页
     * @param queryWrapper 查询条件
     * @param approval 单据状态：审核中
     * @param agree 单据状态：同意
     * @param reject 单据状态：驳回
     * @return 单据审批分页列表
     */
    Page<ChangePricePageDto> searchPageByExamine(@Param("page") Page<ReceiptPageDto> page,
        @Param(Constants.WRAPPER) QueryWrapper<ReceiptApprovalSearchParam> queryWrapper,
        @Param("approval") Integer approval, @Param("agree") Integer agree, @Param("reject") Integer reject,
        @Param("medCategory") Integer medTypeEnum, @Param("deviceCategory") Integer deviceTypeEnum,
        @Param("activityCategory") Integer activityTypeEnum, @Param("healthCategory") Integer healthTypeEnum);
}
