Browse Source

页面推送xml文本输入bug修改

wanghn 1 month ago
parent
commit
f4c0a70535

+ 3 - 2
src/main/java/com/diagbot/facade/DataPageDockFacade.java

@@ -112,7 +112,8 @@ public class DataPageDockFacade {
         }
         if (dataPageDockVO.getHospitalId() == null) {
             return RespDTO.onError("请输入医院id");
-        } else if ("".equals(dataPageDockVO.getShowType())) {
+        }
+        else if ("".equals(dataPageDockVO.getShowType())) {
             return RespDTO.onError("请输入展示类型,横版:ver,或竖版hor");
         } else if ("".equals(dataPageDockVO.getPlanCode())) {
             return RespDTO.onError("请输入方案编码");
@@ -123,7 +124,7 @@ public class DataPageDockFacade {
             xmlText = dataPageDockVO.getXmlText();
         }
         //解析XML文本(重庆石柱)
-        if(!"".equals(xmlText)){
+        if(!"".equals(xmlText) && xmlText != null){
             analyzeXml(dataPageDockVO, xmlText);
         }
 

+ 5 - 5
src/test/java/com/diagbot/CdssApplicationTests.java

@@ -5,12 +5,12 @@ import org.junit.runner.RunWith;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.test.context.junit4.SpringRunner;
 
-@RunWith(SpringRunner.class)
-@SpringBootTest
+//@RunWith(SpringRunner.class)
+//@SpringBootTest
 public class CdssApplicationTests {
 
-    @Test
-    public void contextLoads() {
-    }
+//    @Test
+//    public void contextLoads() {
+//    }
 
 }