Explorar o código

1、梳理文书内容信息-相关代码

liuqq %!s(int64=4) %!d(string=hai) anos
pai
achega
0b4357e8e2

+ 3 - 7
src/main/java/com/diagbot/facade/data/AMedicalRecordContentFacade.java

@@ -14,14 +14,10 @@ import com.diagbot.vo.data.AMedicalRecordContentVO;
 import com.google.common.collect.Lists;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.boot.context.properties.ConfigurationProperties;
 import org.springframework.stereotype.Component;
 
-import java.io.IOException;
-import java.io.InputStream;
 import java.util.Date;
 import java.util.List;
-import java.util.Properties;
 
 @Component
 public class AMedicalRecordContentFacade extends MedicalRecordContentServiceImpl{
@@ -84,7 +80,7 @@ public class AMedicalRecordContentFacade extends MedicalRecordContentServiceImpl
                     MedicalRecordContent mrContent = this.getOne(queryWrapper, false);
                     if (mrContent != null) {
                         s.setGmtModified(new Date());
-                        updateE.add(s);
+                        //updateE.add(s);
                         medicalRecordContentService.update(s,queryWrapper);
                     } else {
                         s.setGmtCreate(new Date());
@@ -95,9 +91,9 @@ public class AMedicalRecordContentFacade extends MedicalRecordContentServiceImpl
             if(addE.size()>0){
                 medicalRecordContentService.saveBatch(addE);
             }
-            if(updateE.size()>0){
+            /*if(updateE.size()>0){
                 medicalRecordContentService.updateBatchByKey(updateE);
-            }
+            }*/
             //aMedAbnormalInfoFacade.saveAbnormalInfo("文书内容",JSON.toJSONString(mrContentList),"","操作成功!");
         }catch (Exception e){
             aMedAbnormalInfoFacade.saveAbnormalInfo("文书内容",JSON.toJSONString(mrContentList),"",e.getMessage());

+ 0 - 32
src/main/java/com/diagbot/facade/data/AMedicalRecordFacade.java

@@ -187,14 +187,6 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
             MedicalRecord medicalRecord=new MedicalRecord();
             BeanUtil.copyProperties(aMrContentVO.getRecords().get(0),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")){
                 Map<String,Object> map=new HashMap<String,Object>();
                 List<AMedicalRecordDTO> medicalRecordDTOList = BeanUtil.listCopyTo(aMrContentVO.getRecords(), AMedicalRecordDTO.class);
@@ -288,30 +280,6 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
                             Long qcTypeId = initQcTypeId(s,behospitalInfo);
                             behospitalInfo.setQcTypeId(qcTypeId);
                             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);