package com.openhis.web.inhospitalnursestation.appservice;

import com.core.common.core.domain.R;
import com.openhis.web.inhospitalnursestation.dto.OrgDeviceSummaryParam;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

/**
 * 科室耗材盘点 应用实现接口
 *
 * @author wuyan
 * @date 2025/11/05
 */
public interface IOrgDeviceStockTakeAppService {

    /**
     * 查询科室耗材汇总
     *
     * @param orgDeviceSummaryParam 查询条件
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @param pageNo 当前页码
     * @param pageSize 查询条数
     * @param searchKey 模糊查询关键字
     * @param request 请求
     * @return 科室耗材汇总单
     */
    R<?> getOrgDeviceSummaryFromPage(OrgDeviceSummaryParam orgDeviceSummaryParam, String startTime, String endTime,
        @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo,
        @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize, String searchKey,
        HttpServletRequest request);

    /**
     * 科室耗材汇总
     *
     * @return 科室耗材汇总单
     */
    R<?> orgDeviceSummary(OrgDeviceSummaryParam orgDeviceSummaryParam);
}
