Pārlūkot izejas kodu

开单合理项维护

zhaops 4 gadi atpakaļ
vecāks
revīzija
d0e973c931

+ 3 - 3
src/main/java/com/diagbot/repository/BillManRepository.java

@@ -34,7 +34,7 @@ public interface BillManRepository extends Neo4jRepository<BillItemDetail,Long>
             "end ) \n" +
             "else 1 = 1 " +
             "end ) \n" +
-            "and (case {relationStatus} is not null and {relationStatus} <> '' when true then r.状态 = {relationStatus} else 1 = 1 end ) \n" +
+            "and (case {relationStatus} is not null  when true then r.状态 = {relationStatus} else 1 = 1 end ) \n" +
             "and type(r) contains('禁忌') \n" +
             "and m.状态=1 \n" +
             "and n.状态=1 \n" +
@@ -74,7 +74,7 @@ public interface BillManRepository extends Neo4jRepository<BillItemDetail,Long>
                     "end ) \n" +
                     "else 1 = 1 " +
                     "end ) \n" +
-                    "and (case {relationStatus} is not null and {relationStatus} <> '' when true then r.状态 = {relationStatus} else 1 = 1 end ) \n" +
+                    "and (case {relationStatus} is not null  when true then r.状态 = {relationStatus} else 1 = 1 end ) \n" +
                     "and type(r) contains('禁忌') \n" +
                     "and m.状态=1 \n" +
                     "and n.状态=1 \n" +
@@ -82,7 +82,7 @@ public interface BillManRepository extends Neo4jRepository<BillItemDetail,Long>
     Page<BillItem> getPage(@Param("labels") List<String> labels,
                            @Param("conceptName") String conceptName,
                            @Param("conditionName") String conditionName,
-                           @Param("relationStatus") String relationStatus,
+                           @Param("relationStatus") Integer relationStatus,
                            Pageable pageable);
 
     @Query("match (m)-[r]->(n) " +

+ 1 - 1
src/main/java/com/diagbot/vo/BillPageVO.java

@@ -21,5 +21,5 @@ public class BillPageVO {
     private List<String> labels;
     private String conceptName;
     private String conditionName;
-    private String relationStatus;
+    private Integer relationStatus;
 }