|
@@ -187,14 +187,6 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
MedicalRecord medicalRecord=new MedicalRecord();
|
|
MedicalRecord medicalRecord=new MedicalRecord();
|
|
BeanUtil.copyProperties(aMrContentVO.getRecords().get(0),medicalRecord);
|
|
BeanUtil.copyProperties(aMrContentVO.getRecords().get(0),medicalRecord);
|
|
Long modeId=initModeId(medicalRecord);
|
|
Long modeId=initModeId(medicalRecord);
|
|
- BehospitalInfo behospitalInfo = behospitalInfoFacade.getOne(new QueryWrapper<BehospitalInfo>()
|
|
|
|
- .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
- .eq("hospital_id", hospitalId)
|
|
|
|
- .eq("behospital_code", behospitalCode), false);
|
|
|
|
-
|
|
|
|
- if(behospitalInfo==null){
|
|
|
|
- return RespDTO.onSuc("");
|
|
|
|
- }
|
|
|
|
if(aMrContentVO.getDockModeType().equals("0")){
|
|
if(aMrContentVO.getDockModeType().equals("0")){
|
|
Map<String,Object> map=new HashMap<String,Object>();
|
|
Map<String,Object> map=new HashMap<String,Object>();
|
|
List<AMedicalRecordDTO> medicalRecordDTOList = BeanUtil.listCopyTo(aMrContentVO.getRecords(), AMedicalRecordDTO.class);
|
|
List<AMedicalRecordDTO> medicalRecordDTOList = BeanUtil.listCopyTo(aMrContentVO.getRecords(), AMedicalRecordDTO.class);
|
|
@@ -288,30 +280,6 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
Long qcTypeId = initQcTypeId(s,behospitalInfo);
|
|
Long qcTypeId = initQcTypeId(s,behospitalInfo);
|
|
behospitalInfo.setQcTypeId(qcTypeId);
|
|
behospitalInfo.setQcTypeId(qcTypeId);
|
|
behospitalInfoList.add(behospitalInfo);
|
|
behospitalInfoList.add(behospitalInfo);
|
|
-// QcType qcType=qcTypeFacade.getOne(new QueryWrapper<QcType>()
|
|
|
|
-// .eq("name",s.getRecTitle())
|
|
|
|
-// .eq("hospital_id", s.getHospitalId())
|
|
|
|
-// .eq("is_deleted",IsDeleteEnum.N), false);
|
|
|
|
-// if(qcType!=null){
|
|
|
|
-// behospitalInfo.setQcTypeId(qcType.getId());
|
|
|
|
-// }else{
|
|
|
|
-// //新增类型到qc_type表中
|
|
|
|
-// QcType qctype=new QcType();
|
|
|
|
-// qctype.setHospitalId(s.getHospitalId());
|
|
|
|
-// qctype.setName(s.getRecTitle());
|
|
|
|
-// qctype.setGmtCreate(new Date());
|
|
|
|
-// Long id=qcTypeFacade.saveT(qctype);
|
|
|
|
-// behospitalInfo.setQcTypeId(id);
|
|
|
|
-// //新增类型到监测表中
|
|
|
|
-// QcAbnormal qcAbnormal=new QcAbnormal();
|
|
|
|
-// qcAbnormal.setHospitalId(s.getHospitalId());
|
|
|
|
-// qcAbnormal.setBehospitalCode(s.getBehospitalCode());
|
|
|
|
-// qcAbnormal.setType(2);
|
|
|
|
-// qcAbnormal.setDescription(s.getRecTitle());
|
|
|
|
-// qcAbnormal.setGmtCreate(new Date());
|
|
|
|
-// qcAbnormalService.getBaseMapper().insert(qcAbnormal);
|
|
|
|
-// }
|
|
|
|
-// behospitalInfoList.add(behospitalInfo);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
s.setModeId(modeId);
|
|
s.setModeId(modeId);
|