liusheng
2025-04-02 acd62c1684cbde71954252ffdf89d0918491e6fc
smartor/src/main/java/com/smartor/service/impl/ServiceExternalServiceImpl.java
@@ -543,8 +543,8 @@
        icd10.setGuid(externalDiseaseInfo.getZuZhiJGID());
        icd10.setLastflag(externalDiseaseInfo.getMOJIBZ());
        icd10.setChimedflag("" + externalDiseaseInfo.getZhongYiZDBZ());
        if (CollectionUtils.isNotEmpty(icd10s)) {
            icd10.setUpdateTime(new Date());
        if (CollectionUtils.isNotEmpty(icd10s)) {
            icd10.setIcdid(icd10s.get(0).getIcdid());
            icd10Mapper.updateIcd10(icd10);
        } else {
@@ -561,7 +561,7 @@
        Map<String, Object> bqxx = ObjectUtils.isNotEmpty(yeWuXX) ? (Map<String, Object>) yeWuXX.get("BingQuXX") : null;
        ExternalWardArea externalWardArea = BeanUtil.mapToBean(bqxx, ExternalWardArea.class, true);
        SysDept sysDept = new SysDept();
        sysDept.setGuid(externalWardArea.getZuZhiJGID());
        sysDept.setOrgid(externalWardArea.getZuZhiJGID());
        sysDept.setHisDeptId(externalWardArea.getBingQuID());
        sysDept.setDeptName(externalWardArea.getBingQuMC());
@@ -571,19 +571,26 @@
        sysDept.setDeptCode(externalWardArea.getBingQuID());
        sysDept.setCreateBy(externalWardArea.getChuangJianRXM());
        sysDept.setType(externalWardArea.getBingQuLXDM());
        sysDept.setCreateTime(externalWardArea.getCreateTime());
        sysDept.setUpdateTime(externalWardArea.getUpdateTime());
        sysDept.setUpdateBy(externalWardArea.getUpdateBy());
        if (StringUtils.isNotEmpty(externalWardArea.getShiJianDM()) && externalWardArea.getShiJianDM().equals("3")) {
            sysDept.setStatus("1");
        }
        if (StringUtils.isNotEmpty(externalWardArea.getShiJianDM()) && externalWardArea.getShiJianDM().equals("1")) {
            sysDept.setCreateTime(externalWardArea.getCreateTime());
            int i = sysDeptMapper.insertDept(sysDept);
            log.error("ServiceExternalServiceImpl---addWardAreaInfo是否新增成功:{}", i);
        } else {
            int i = sysDeptMapper.updateDept(sysDept);
            log.error("ServiceExternalServiceImpl---addWardAreaInfo是否修改成功:{}", i);
        }
        return true;
    }
    @Override
    public Boolean addMedicalTeam(Map dataMap) {
        log.error("ServiceExternalServiceImpl---addMedicalTeam的新增的值为:{}", dataMap);
        return true;
    }
@@ -796,17 +803,19 @@
        if (ObjectUtils.isNotEmpty(externalInHospPatientLiaisonInfo))
            patArchive.setRelativetelcode(externalInHospPatientLiaisonInfo.getLianXiRDH());
        patArchive.setInhospno(externalInHospPatientInfo.getBingAnHao());
        patArchive.setCreateTime(new Date());
        patArchive.setIdcardtype(externalInHospPatientInfo.getZhengJianLXMC());
        if (CollectionUtils.isNotEmpty(patArchives)) {
            //如果不为空,直接将查询出来的对象返回
            PatArchive patArchive1 = patArchives.get(0);
            String orgid = patArchive1.getOrgid();
            if (StringUtils.isNotEmpty(orgid)) {
                patArchive.setUpdateTime(new Date());
                patArchive.setId(patArchive1.getId());
                patArchiveMapper.updatePatArchive(patArchive);
            }
        } else {
            patArchive.setCreateTime(new Date());
            patArchiveMapper.insertPatArchiveSingle(patArchive);
        }
        //新属信息
@@ -997,8 +1006,11 @@
                log.error("取消出院入参类型为:{}", type);
                return cancelOutHospInfo(dataMap);
            case "JG_ZZ_BingQu":
                log.error("病区信息入参类型为辅:{}", type);
                log.error("病区信息入参类型为:{}", type);
                return addWardAreaInfo(dataMap);
            case "JG_ZZ_YiLiaoZYS":
                log.error("医疗组医生为:{}", type);
                return addMedicalTeam(dataMap);
        }
        return true;
    }