package com.openhis.administration.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.administration.domain.TraceNoManage;

/**
 * 【追溯码管理】Mapper接口
 *
 * @author system
 * @date 2025-07-07
 */
@Repository
public interface TraceNoManageMapper extends BaseMapper<TraceNoManage> {

    /**
     * 查询追溯码信息
     *
     * @param itemTable 表名
     * @param itemId 项目id
     * @param locationId 药房id
     * @param lotNumber 批号
     * @return
     */
    List<TraceNoManage> getItemTraceNoInfo(@Param("itemTable") String itemTable, @Param("itemId") Long itemId,
        @Param("locationId") Long locationId, @Param("lotNumber") String lotNumber);
}