package org.example.service;

import org.example.entity.PatientTestItem;
import org.example.mapper.PatientTestItemMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 患者检验项目明细服务
 */
@Service
public class PatientTestItemService {

    @Autowired
    private PatientTestItemMapper patientTestItemMapper;

    /**
     * 根据检验报告ID查询项目明细列表
     */
    public List<PatientTestItem> findByTestId(Long testId) {
        return patientTestItemMapper.findByTestId(testId);
    }

    /**
     * 根据ID查询项目明细
     */
    public PatientTestItem findById(Long id) {
        return patientTestItemMapper.findById(id);
    }
}
