package com.openhis.workflow.mapper;

import java.util.List;

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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.openhis.workflow.domain.InventoryItem;
import com.openhis.workflow.dto.AdjustPriceDto;

/**
 * 库存项目管理Mapper接口
 *
 * @author system
 * @date 2025-02-20
 */
@Repository
public interface InventoryItemMapper extends BaseMapper<InventoryItem> {
    /**
     * Desc: 根据 productIds 查询 库存大于0的 货品
     * @param itemIds
     * @Author raymond
     * @Date 21:56 2025/10/16
     * @return java.util.List<com.openhis.workflow.dto.AdjustPriceDto>
     **/
    List<AdjustPriceDto> searchResultDataList(@Param("itemIds") List<Long> itemIds);
    /**
     * Desc: 根据 productIds 查询 库存大于0的 货品并分组查询
     * @param itemIds
     * @Author raymond
     * @Date 21:56 2025/10/16
     * @return java.util.List<com.openhis.workflow.dto.AdjustPriceDto>
     **/
    List<AdjustPriceDto> searchResultDataListByGroup(@Param("itemIds") List<Long> itemIds);

}