|
@@ -100,39 +100,54 @@ public class ViewFacade {
|
|
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() + "'";
|
|
String infoBeSql = "select * from admission_pat_regist where behospitalDate >= '" + DateUtil.yesterdayFormate() + "'";
|
|
-
|
|
|
|
try {
|
|
try {
|
|
- Long startTime = System.currentTimeMillis();
|
|
|
|
//更新前一天出院的入院登记信息
|
|
//更新前一天出院的入院登记信息
|
|
this.getInfo(infoSql);
|
|
this.getInfo(infoSql);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ aMedAbnormalInfoFacade.saveAbnormalInfo("每天拉去历史数据(出院时间的入院登记)失败", "", "", DateUtil.now().toString(), e.getMessage());
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ try {
|
|
//更新前一天入院的入院登记信息
|
|
//更新前一天入院的入院登记信息
|
|
this.getInfo(infoBeSql);
|
|
this.getInfo(infoBeSql);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ aMedAbnormalInfoFacade.saveAbnormalInfo("每天拉去历史数据(入院时间的入院登记)失败", "", "", DateUtil.now().toString(), e.getMessage());
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ try {
|
|
//得到全部的科室信息并添加修改
|
|
//得到全部的科室信息并添加修改
|
|
this.getDeptInfo(deptSql);
|
|
this.getDeptInfo(deptSql);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ aMedAbnormalInfoFacade.saveAbnormalInfo("每天拉去历史数据(科室)失败", "", "", DateUtil.now().toString(), e.getMessage());
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ try {
|
|
//获取医生信息并修改添加
|
|
//获取医生信息并修改添加
|
|
aBasDoctorInfoFacade.executeDoctorPast();
|
|
aBasDoctorInfoFacade.executeDoctorPast();
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ aMedAbnormalInfoFacade.saveAbnormalInfo("每天拉去历史数据(医生)失败", "", "", DateUtil.now().toString(), e.getMessage());
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ try {
|
|
//得到前一天的医嘱信息并添加修改
|
|
//得到前一天的医嘱信息并添加修改
|
|
this.getDoctorAdvice(doctorAdviceSql);
|
|
this.getDoctorAdvice(doctorAdviceSql);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ aMedAbnormalInfoFacade.saveAbnormalInfo("每天拉去历史数据(医嘱)失败", "", "", DateUtil.now().toString(), e.getMessage());
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ try {
|
|
//得到前一天的化验信息和相应的化验结果并添加修改
|
|
//得到前一天的化验信息和相应的化验结果并添加修改
|
|
this.getLisInfo(lisSql);
|
|
this.getLisInfo(lisSql);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ aMedAbnormalInfoFacade.saveAbnormalInfo("每天拉去历史数据(化验)失败", "", "", DateUtil.now().toString(), e.getMessage());
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ try {
|
|
//得到前一天的检查信息和相应的检查结果并添加修改
|
|
//得到前一天的检查信息和相应的检查结果并添加修改
|
|
this.getPacsInfo(pacsSql);
|
|
this.getPacsInfo(pacsSql);
|
|
-
|
|
|
|
- Long startTime2 = System.currentTimeMillis();
|
|
|
|
-
|
|
|
|
- aMedAbnormalInfoFacade.saveAbnormalInfo("每天拉去历史数据成功", "", "所用时间" + (startTime2 - startTime), DateUtil.now().toString(), "");
|
|
|
|
-
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- aMedAbnormalInfoFacade.saveAbnormalInfo("每天拉去历史数据失败", "", "", DateUtil.now().toString(), e.getMessage());
|
|
|
|
-
|
|
|
|
|
|
+ aMedAbnormalInfoFacade.saveAbnormalInfo("每天拉去历史数据(检查)失败", "", "", "", e.getMessage());
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -167,8 +182,8 @@ public class ViewFacade {
|
|
* @param
|
|
* @param
|
|
*/
|
|
*/
|
|
public String executeOldDataOne(OldInfoVo oldInfoVo) {
|
|
public String executeOldDataOne(OldInfoVo oldInfoVo) {
|
|
- try{
|
|
|
|
- String behospitalCode=oldInfoVo.getBehospitalCode();
|
|
|
|
|
|
+ try {
|
|
|
|
+ String behospitalCode = oldInfoVo.getBehospitalCode();
|
|
//分割住院号与住院次数
|
|
//分割住院号与住院次数
|
|
String hospitalCode = behospitalCode.substring(0, behospitalCode.indexOf("_"));
|
|
String hospitalCode = behospitalCode.substring(0, behospitalCode.indexOf("_"));
|
|
String hospitalNum = behospitalCode.substring(hospitalCode.length() + 1, behospitalCode.length());
|
|
String hospitalNum = behospitalCode.substring(hospitalCode.length() + 1, behospitalCode.length());
|
|
@@ -178,7 +193,7 @@ public class ViewFacade {
|
|
this.a(behospitalInfoList);
|
|
this.a(behospitalInfoList);
|
|
|
|
|
|
return "true";
|
|
return "true";
|
|
- }catch (Exception e){
|
|
|
|
|
|
+ } catch (Exception e) {
|
|
return e.getMessage();
|
|
return e.getMessage();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -249,7 +264,7 @@ public class ViewFacade {
|
|
analyzeRunVO.setHospitalId(Long.valueOf("35"));
|
|
analyzeRunVO.setHospitalId(Long.valueOf("35"));
|
|
analyzeRunVO.setBehospitalCode(behospitalCode);
|
|
analyzeRunVO.setBehospitalCode(behospitalCode);
|
|
behospitalInfoFacade.analyzeApi(analyzeRunVO);
|
|
behospitalInfoFacade.analyzeApi(analyzeRunVO);
|
|
- }catch (Exception e){
|
|
|
|
|
|
+ } catch (Exception e) {
|
|
aMedAbnormalInfoFacade.saveAbnormalInfo("历史数据拉取完评分异常", "", "", JSON.toJSONString(s), e.getMessage());
|
|
aMedAbnormalInfoFacade.saveAbnormalInfo("历史数据拉取完评分异常", "", "", JSON.toJSONString(s), e.getMessage());
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -621,7 +636,7 @@ public class ViewFacade {
|
|
aMedicalRecordFacade.remove(new QueryWrapper<MedicalRecord>()
|
|
aMedicalRecordFacade.remove(new QueryWrapper<MedicalRecord>()
|
|
.eq("behospital_code", code)
|
|
.eq("behospital_code", code)
|
|
.eq("hospital_id", Long.valueOf("35")));
|
|
.eq("hospital_id", Long.valueOf("35")));
|
|
- OldInfoVo oldInfoV =new OldInfoVo();
|
|
|
|
|
|
+ OldInfoVo oldInfoV = new OldInfoVo();
|
|
oldInfoV.setBehospitalCode(code);
|
|
oldInfoV.setBehospitalCode(code);
|
|
this.executeOldDataOne(oldInfoV);
|
|
this.executeOldDataOne(oldInfoV);
|
|
aMedAbnormalInfoFacade.saveAbnormalInfo("补传数据成功", code, "视图文书数量为" + count, "本地数量为" + myCount, "");
|
|
aMedAbnormalInfoFacade.saveAbnormalInfo("补传数据成功", code, "视图文书数量为" + count, "本地数量为" + myCount, "");
|