package com.ruoyi.web.work.service.impl;


import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.work.domain.Diagnosis;
import com.ruoyi.web.work.service.IDiagnosisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.work.mapper.DiagnosisMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @author lsw
 * @date 2024-07-19
 */
@Service
public class DiagnosisServiceImpl extends ServiceImpl<DiagnosisMapper, Diagnosis> implements IDiagnosisService {
    @Autowired
    private DiagnosisMapper diagnosisMapper;

    @Override
    public List<Diagnosis> selectList(Diagnosis diagnosis) {
        return diagnosisMapper.queryList(diagnosis);
    }

    /**
     * 根据就诊ID获取诊断详情
     * @param visitId
     * @return
     */
    @Override
    public List<Diagnosis> getDiagnosisInfoByVisitId(String visitId) {

        return diagnosisMapper.selectDiagnosisInfosByVisitId(visitId);
    }


}
