|
@@ -154,7 +154,6 @@ public class MedCheckWorkFacade {
|
|
|
*/
|
|
|
public void execute(String param) {
|
|
|
JSONObject paramJson = JSONObject.parseObject(param);
|
|
|
- Long hospiatlId = Long.parseLong(SysUserUtils.getCurrentHospitalID());
|
|
|
JSONObject typeValue = paramJson.getJSONObject("typeVal");
|
|
|
JSONObject typeName = paramJson.getJSONObject("typeName");
|
|
|
int searchSize = paramJson.getInteger("searchSize");
|
|
@@ -165,11 +164,10 @@ public class MedCheckWorkFacade {
|
|
|
HashMap<String, MedBehospitalType> medBehospitalTypeMap = new HashMap<>();
|
|
|
//1.获取有指定文书、没有患者类型的患者数据
|
|
|
RecordTypeVO recordContentVO = new RecordTypeVO();
|
|
|
- recordContentVO.setHospitalId(hospiatlId);
|
|
|
recordContentVO.setModeList(new ArrayList<>(typeValue.keySet()));
|
|
|
List<MedicalRecordDTO> medicalRecordList = medicalRecordServiceImpl.getMedicalRecord(recordContentVO);
|
|
|
if (medicalRecordList != null && !medicalRecordList.isEmpty()) {
|
|
|
- getPatientRecordType(medBehospitalTypeMap, medicalRecordList, typeValue, typeName, hospiatlId);
|
|
|
+ getPatientRecordType(medBehospitalTypeMap, medicalRecordList, typeValue, typeName);
|
|
|
}
|
|
|
//2.批量执行插入操作
|
|
|
try {
|
|
@@ -193,7 +191,7 @@ public class MedCheckWorkFacade {
|
|
|
private void getPatientRecordType(HashMap<String, MedBehospitalType> medBehospitalTypeMap,
|
|
|
List<MedicalRecordDTO> medicalRecordList,
|
|
|
JSONObject typeValue,
|
|
|
- JSONObject typeName, Long hospiatlId) {
|
|
|
+ JSONObject typeName) {
|
|
|
|
|
|
if (medicalRecordList == null || medicalRecordList.isEmpty()) {
|
|
|
return;
|
|
@@ -217,7 +215,7 @@ public class MedCheckWorkFacade {
|
|
|
medBehospitalType.setBehospitalType(typeName.getString(medicalRecordDTO.getModeId() + ""));
|
|
|
medBehospitalType.setValue(typeValue.getInteger(medicalRecordDTO.getModeId() + ""));
|
|
|
medBehospitalType.setCreateTime(DateUtil.now());
|
|
|
- medBehospitalType.setHospitalId(hospiatlId);
|
|
|
+ medBehospitalType.setHospitalId(medicalRecordDTO.getHospitalId());
|
|
|
medBehospitalTypeMap.put(medicalRecordDTO.getBehospitalCode(), medBehospitalType);
|
|
|
}
|
|
|
}
|