|
@@ -99,12 +99,16 @@ public class ViewFacade {
|
|
String lisSql = "select * from ASSAY_LIST where repDate >= '" + DateUtil.yesterdayFormate() + "' and behospitalNum is not null";
|
|
String lisSql = "select * from ASSAY_LIST where repDate >= '" + DateUtil.yesterdayFormate() + "' and behospitalNum is not null";
|
|
String pacsSql = "select * from CHECK_LIST where repDate >= '" + DateUtil.yesterdayFormate() + "' and behospitalNum is not null";
|
|
String pacsSql = "select * from CHECK_LIST where repDate >= '" + DateUtil.yesterdayFormate() + "' and behospitalNum is not null";
|
|
String infoSql = "select * from admission_pat_regist where leaveHospitalDate >= '" + DateUtil.yesterdayFormate() + "'";
|
|
String infoSql = "select * from admission_pat_regist where leaveHospitalDate >= '" + DateUtil.yesterdayFormate() + "'";
|
|
|
|
+ String infoBeSql = "select * from admission_pat_regist where behospitalDate >= '" + DateUtil.yesterdayFormate() + "'";
|
|
|
|
|
|
try {
|
|
try {
|
|
Long startTime = System.currentTimeMillis();
|
|
Long startTime = System.currentTimeMillis();
|
|
//更新前一天出院的入院登记信息
|
|
//更新前一天出院的入院登记信息
|
|
this.getInfo(infoSql);
|
|
this.getInfo(infoSql);
|
|
|
|
|
|
|
|
+ //更新前一天入院的入院登记信息
|
|
|
|
+ this.getInfo(infoBeSql);
|
|
|
|
+
|
|
//得到全部的科室信息并添加修改
|
|
//得到全部的科室信息并添加修改
|
|
this.getDeptInfo(deptSql);
|
|
this.getDeptInfo(deptSql);
|
|
|
|
|
|
@@ -574,14 +578,26 @@ public class ViewFacade {
|
|
public void execute(String date) {
|
|
public void execute(String date) {
|
|
LocalDateTime now = LocalDateTime.now();
|
|
LocalDateTime now = LocalDateTime.now();
|
|
now = now.minus(Integer.parseInt(date), ChronoUnit.DAYS);
|
|
now = now.minus(Integer.parseInt(date), ChronoUnit.DAYS);
|
|
|
|
+ //获取出院时间在date之内的病人信息
|
|
List<BehospitalInfo> list = aBehospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
List<BehospitalInfo> list = aBehospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
.le("leave_hospital_date", DateUtil.now())
|
|
.le("leave_hospital_date", DateUtil.now())
|
|
.ge("leave_hospital_date", now));
|
|
.ge("leave_hospital_date", now));
|
|
|
|
+ //获取无出院时间的病人信息
|
|
|
|
+ List<BehospitalInfo> infoList = aBehospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
|
|
+ .eq("hospital_id", Long.valueOf("35"))
|
|
|
|
+ .isNull("leave_hospital_date"));
|
|
|
|
+ //获取出院时间date天之内的的病人信息
|
|
if (list.size() > 0) {
|
|
if (list.size() > 0) {
|
|
list.forEach(behospitalInfo -> {
|
|
list.forEach(behospitalInfo -> {
|
|
this.IfCoincide(behospitalInfo.getBehospitalCode());
|
|
this.IfCoincide(behospitalInfo.getBehospitalCode());
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ //获取无出院时间的运行质控的病人信息
|
|
|
|
+ if (infoList.size() > 0) {
|
|
|
|
+ infoList.forEach(info -> {
|
|
|
|
+ this.IfCoincide(info.getBehospitalCode());
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|