Explorar el Código

修改正推诊断参与推送BUG

louhr hace 6 años
padre
commit
c55bfd2706

+ 1 - 1
bigdata-web/src/main/java/org/diagbot/bigdata/work/ParamsDataProxy.java

@@ -55,7 +55,7 @@ public class ParamsDataProxy {
             paramFeatureInit(searchData, featuresList, "symptomFeatureList", FeatureType.FEATURE);
         }
 
-        if (!StringUtils.isEmpty(searchData.getDiag())) {
+        if (!StringUtils.isEmpty(searchData.getDiag()) && StringUtils.isEmpty(searchData.getSymptom())) {
             List<Map<String, Object>> featuresList = fa.start(searchData.getDiag(), FeatureType.DIAG);
             paramFeatureInit(searchData, featuresList, "diagFeatureList", FeatureType.DIAG);
         }

+ 9 - 9
push-web/src/main/resources/static/pages/algorithm/list.html

@@ -342,21 +342,21 @@
 
     function bayesPage(resourceType) {
         var diag = $("#diag_id").val();
-        if (diag == '') {
-            startDiag('/algorithm/page_neural', '#symptom_list', '1', resourceType, '11');
-            startDiag('/algorithm/page_neural', '#vital_list', '3', resourceType, '31');
-            startDiag('/algorithm/page_neural', '#lis_list', '4', resourceType, '41');
-            startDiag('/algorithm/page_neural', '#pacs_list', '5', resourceType, '51');
-
-            startDiagMapping('/algorithm/page_neural', '#diag_list', '2', resourceType, '21');
-        } else {
+        var symptom = $("#symptom").val();
+        if (diag != '' && symptom == '') {
             $('#diag_list').html("");
             startDiag('/algorithm/page_neural', '#symptom_list', '1', resourceType, '111');
             startDiag('/algorithm/page_neural', '#vital_list', '3', resourceType, '131');
             startDiag('/algorithm/page_neural', '#lis_list', '4', resourceType, '141');
             startDiag('/algorithm/page_neural', '#pacs_list', '5', resourceType, '151');
 
-//            startDiag('page_neural', '#symptom_list', '6', resourceType, '111');
+        } else {
+            startDiag('/algorithm/page_neural', '#symptom_list', '1', resourceType, '11');
+            startDiag('/algorithm/page_neural', '#vital_list', '3', resourceType, '31');
+            startDiag('/algorithm/page_neural', '#lis_list', '4', resourceType, '41');
+            startDiag('/algorithm/page_neural', '#pacs_list', '5', resourceType, '51');
+
+            startDiagMapping('/algorithm/page_neural', '#diag_list', '2', resourceType, '21');
         }
     }