package com.xinelu.manage.service.patientinfo.impl;

import com.xinelu.manage.domain.patientinfo.PatientAllInfoView;
import com.xinelu.manage.mapper.patientinfo.PatientAllInfoViewMapper;
import com.xinelu.manage.service.patientinfo.IPatientAllInfoViewService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * 患者全部信息视图Service业务层处理
 *
 * @author xinelu
 * @date 2024-06-11
 */
@Service
public class PatientAllInfoViewServiceImpl implements IPatientAllInfoViewService {
    @Resource
    private PatientAllInfoViewMapper patientAllInfoViewMapper;

    /**
     * 查询患者全部信息视图对象
     *
     * @param patientId 患者主键
     * @return 患者全部信息视图对象
     */
    @Override
    public PatientAllInfoView selectPatientAllInfoViewByPatientId(Long patientId) {
        return patientAllInfoViewMapper.selectPatientAllInfoViewByPatientId(patientId);
    }

    /**
     * 查询患者全部信息视图对象列表
     *
     * @param patientAllInfoView 患者全部信息视图对象
     * @return 患者全部信息视图对象
     */
    @Override
    public List<PatientAllInfoView> selectPatientAllInfoViewList(PatientAllInfoView patientAllInfoView) {
        return patientAllInfoViewMapper.selectPatientAllInfoViewList(patientAllInfoView);
    }

}
