zdm 6 年之前
父節點
當前提交
db04a7fc76

+ 2 - 2
src/main/java/com/yihu/ehr/resolve/dao/MasterResourceDao.java

@ -40,9 +40,9 @@ public class MasterResourceDao {
            String profileId = originalPackage.getProfileId().toString();
            String rowkey = profileId.substring(2,profileId.length());
            Map<String, String> originResult = hbaseDao.get(ResourceCore.MasterTable, rowkey, resourceBucket.getdFamily());
            /*if (!originResult.isEmpty()) {
            if (!originResult.isEmpty()) {
                throw new IllegalJsonFileException("Please upload the struct package(" + rowkey + ") first !");
            }*/
            }
        }
        String rowKey = resourceBucket.getId();
        TableBundle bundle = new TableBundle();

+ 1 - 2
src/main/java/com/yihu/ehr/resolve/job/PackageResolveJob.java

@ -73,8 +73,6 @@ public class PackageResolveJob implements InterruptableJob {
                //判断是否已经解析成功,或者正在解析(由于部署多个服务,运行的时间差可能导致多次加入队列,造成多次解析)
                Map<String, Object> map = statusReportService.getJsonArchiveById(pack.get_id());
                if(map != null && ("3".equals(map.get("archive_status")+"") || "1".equals(map.get("archive_status")+""))){
                    logger.error(map.get("archive_status")+"");
                    logger.error("==================stop archive:"+map.get("_id"));
                    return;
                }
                PackResolveLogger.info("开始入库:" + pack.get_id() + ", Timestamp:" + new Date());
@ -148,6 +146,7 @@ public class PackageResolveJob implements InterruptableJob {
        pack.setOrg_area(resourceBucket.getBasicRecord(ResourceCells.ORG_AREA));
        pack.setPatient_name(resourceBucket.getBasicRecord(ResourceCells.PATIENT_NAME));
        pack.setIdcard_no(resourceBucket.getBasicRecord(ResourceCells.DEMOGRAPHIC_ID));
        pack.setVersion(originalPackage.getCdaVersion());
        return originalPackage;
    }