1、头像转换判断空值和空字符串

dhzzyy
lsm 10 months ago
parent bf392c0fe5
commit 5fd38152c6
  1. 2
      PEIS/Model/ReportModel.cs
  2. 2
      PEIS/Utils/ReportHelper.cs

@ -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)
{

@ -244,7 +244,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);
}

Loading…
Cancel
Save