فهرست منبع

开单合理项维护

zhaops 4 سال پیش
والد
کامیت
d0e973c931
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 3 3
      src/main/java/com/diagbot/repository/BillManRepository.java
  2. 1 1
      src/main/java/com/diagbot/vo/BillPageVO.java

+ 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;
 }