@ -187,7 +187,7 @@ namespace PEIS.Model
public List<Report> GetPacsPhoto(Int64 Eid)
{
var pacs = DAOHelp.GetDataBySQL<Report>($"select ReportImage from Report where EID = { Eid } AND ReportImage IS NOT NULL");
var heart = DAOHelp.GetDataBySQL<Report>($"select ReportData AS ReportImage from Report_GSEXD where PatientNo = {Eid}");
var heart = DAOHelp.GetDataBySQL<Report>($"select ReportData AS ReportImage from Report_GSEXD where PatientNo = {Eid} AND ReportData IS NOT NULL");
if (heart.Count == 0)
@ -242,7 +242,7 @@ namespace PEIS.Utils
rpt.SetParameterValue("HospitalName", Global._hospital.Name);
rpt.SetParameterValue("DeptName", patient.DeptName);
if(patient.Photo == null)
if(string.IsNullOrEmpty(patient.Photo))
rpt.SetParameterValue("Avatar", patient.Photo);
}