|
@@ -114,19 +114,21 @@ public class StructuralOldDataFacade {
|
|
|
try {
|
|
|
String sql ="select * from med_behospital_info t where t.behospitalDate >=to_date('"+structuralDataVo.getStartDate()
|
|
|
+ "','yyyymmdd') and t.behospitalDate <= to_date('"+structuralDataVo.getStopDate()+"','yyyymmdd')";
|
|
|
- List<String> strings =fjtzdbConnHarp.getBehospitalInfoDate(sql);
|
|
|
+ List<StructuralDataVo> strings =fjtzdbConnHarp.getBehospitalInfoDate(sql);
|
|
|
strings.forEach(s->{
|
|
|
StructuralDataVo sData =new StructuralDataVo();
|
|
|
if (null!=structuralDataVo.getModeId()){
|
|
|
- sData.setBehospitalCode(s);
|
|
|
+ sData.setBehospitalCode(s.getBehospitalCode());
|
|
|
+ sData.setPatientId(s.getPatientId());
|
|
|
sData.setModeId(structuralDataVo.getModeId());
|
|
|
executeOld(sData);
|
|
|
}else {
|
|
|
for (int i = 0; i < 65; i++) {
|
|
|
String tableName = TableNameEnum.getName(i);
|
|
|
if (null != tableName) {
|
|
|
- sData.setBehospitalCode(s);
|
|
|
+ sData.setBehospitalCode(s.getBehospitalCode());
|
|
|
sData.setModeId(String.valueOf(i));
|
|
|
+ sData.setPatientId(s.getPatientId());
|
|
|
executeOld(sData);
|
|
|
}
|
|
|
}
|
|
@@ -141,10 +143,10 @@ public class StructuralOldDataFacade {
|
|
|
* 终末质控,单个病人来导入数据
|
|
|
* @param behospitalCode
|
|
|
*/
|
|
|
- public void sendOnebehospitalCode(List<String> behospitalCode){
|
|
|
- behospitalCode.forEach(s->{
|
|
|
+ public void sendOnebehospitalCode(String behospitalCode,String patientId){
|
|
|
StructuralDataVo sData =new StructuralDataVo();
|
|
|
- sData.setBehospitalCode(s);
|
|
|
+ sData.setBehospitalCode(behospitalCode);
|
|
|
+ sData.setPatientId(patientId);
|
|
|
for (int i = 0; i <65 ; i++) {
|
|
|
String tableName=TableNameEnum.getName(i);
|
|
|
if (null!=tableName){
|
|
@@ -152,7 +154,6 @@ public class StructuralOldDataFacade {
|
|
|
executeOld(sData);
|
|
|
}
|
|
|
}
|
|
|
- });
|
|
|
}
|
|
|
|
|
|
|