修改查询报告方法
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run

This commit is contained in:
lxd 2024-09-25 12:19:05 +08:00
parent db2df3e68b
commit 2f52aa10a8
2 changed files with 17 additions and 1 deletions

View File

@ -183,4 +183,20 @@ public class DateUtils {
LocalDate currentDate = LocalDate.now(); // 获取当前日期
return String.valueOf(Period.between(birthDate, currentDate).getYears()); // 计算两个日期之间的年份差
}
/**
* 时间戳转换出生日期
*
*/
public static String formatedcsrq(long timestamp)
{
// 创建Date对象
Date date = new Date(timestamp);
// 创建SimpleDateFormat对象并设置日期格式
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
// 格式化日期
return sdf.format(date);
}
}

View File

@ -505,7 +505,7 @@ public class ultrasonicController {
//获取基础信息
String PatientID=patientInfo.getPatientID();
String PatientNam=patientInfo.getPatientNam();
String PatientBir=patientInfo.getPatientBir();
String PatientBir=DateUtils.formatedcsrq(Long.parseLong(patientInfo.getPatientBir())) ;
String PatientSex=patientInfo.getPatientSex();
String AccessTime= DateUtils.timestamp();
String orgId=patientInfo.getOrgId();