Browse Source

义乌北仑规则位置修改

rengb 4 năm trước cách đây
mục cha
commit
65ea32c830

+ 6 - 4
kernel/src/main/java/com/lantone/qc/kernel/catalogue/QCCatalogue.java

@@ -24,7 +24,7 @@ public class QCCatalogue {
     protected ThreadLocal<Map<Object, Object>> extData = new ThreadLocal<Map<Object, Object>>();
 
     public void execute(InputInfo inputInfo, OutputInfo outputInfo) {
-//        long t1 = System.currentTimeMillis();
+        //        long t1 = System.currentTimeMillis();
         if (outputInfo.getResult().get(className) != null) {
             return;
         }
@@ -39,8 +39,8 @@ public class QCCatalogue {
             variablePreset("-1", "");
             log.error(e.getMessage() + "......类名:" + this.className);
         }
-//        long t2 = System.currentTimeMillis();
-//        log.error(inputInfo.getMedicalRecordInfoDoc().getStructureMap().get("behospitalCode") + "-----" + className + "(规则)  耗时:" + (t2 - t1));
+        //        long t2 = System.currentTimeMillis();
+        //        log.error(inputInfo.getMedicalRecordInfoDoc().getStructureMap().get("behospitalCode") + "-----" + className + "(规则)  耗时:" + (t2 - t1));
         insertOpt(outputInfo);
     }
 
@@ -93,7 +93,9 @@ public class QCCatalogue {
     private String className = this.getClass().getSimpleName();
 
     public QCCatalogue() {
-        CatalogueUtil.qcCatalogueMap.put(className, this);
+        String keyName = this.getClass().getName().substring(32);
+        keyName = keyName.substring(0, keyName.indexOf(".") + 1) + className;
+        CatalogueUtil.qcCatalogueMap.put(keyName, this);
     }
 
     protected void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {