|
@@ -281,7 +281,9 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
|
executeMrRecord(aMrContentVO.getRecords());
|
|
|
|
|
|
aMrContentVO.getRecords().stream().forEach(s -> {
|
|
|
- String sql ="select * from v_jkcdss_bl_bingli where RECID= "+s.getRecId()+" ";
|
|
|
+ String tableName =s.getRecId().substring(0,2);
|
|
|
+ String recId=s.getRecId().substring(3);
|
|
|
+ String sql ="select * from v_jkcdss_bl_binglijlnr where RECID= '"+recId+" ' and tableName = '"+tableName+"'";
|
|
|
List<MedicalRecordContent> medicalRecordContent =tzDBConn.getMedicalRecordContent(sql);
|
|
|
//更新文书详情
|
|
|
aMedicalRecordContentFacade.execute(medicalRecordContent);
|
|
@@ -371,7 +373,6 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
|
|
|
|
Long modeId = initModeId(s);
|
|
|
|
|
|
-
|
|
|
if (modeId == Long.valueOf("0")) {
|
|
|
//新增类型到监测表中
|
|
|
QcAbnormal qcAbnormal = new QcAbnormal();
|
|
@@ -483,6 +484,8 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
|
}else if (modeId==Long.valueOf("5")){
|
|
|
if (medicalRecord.getRecTitle().contains("死亡")){
|
|
|
modeId=Long.valueOf("24");
|
|
|
+ }if (medicalRecord.getRecTitle().contains("社区管理")){
|
|
|
+ modeId=Long.valueOf("53");
|
|
|
}
|
|
|
}
|
|
|
return modeId;
|