소스 검색

isPlacefile改成动态的值

gaodm 4 년 전
부모
커밋
c14992a9e8
2개의 변경된 파일16개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 0
      src/main/java/com/diagbot/vo/ReBeHosPageVO.java
  2. 12 4
      src/main/resources/mapper/BehospitalInfoMapper.xml

+ 4 - 0
src/main/java/com/diagbot/vo/ReBeHosPageVO.java

@@ -32,4 +32,8 @@ public class ReBeHosPageVO extends Page {
      * 病人姓名
      */
     private String name;
+    /**
+     * 是否归档(0:未归档,1:已归档)
+     */
+    private String isPlacefile = "1";
 }

+ 12 - 4
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -6426,7 +6426,9 @@
         med_behospital_info a
         WHERE
         a.is_deleted = 'N'
-        AND a.is_placefile = 1
+        <if test="reBeHosPageVO.isPlacefile != null and reBeHosPageVO.isPlacefile != ''">
+            and a.is_placefile = #{reBeHosPageVO.isPlacefile}
+        </if>
         AND a.qc_type_id != 0
         AND IFNULL( a.diagnose, '' )!= ''
         AND IFNULL( a.file_code, '' )!= ''
@@ -6454,7 +6456,9 @@
         med_behospital_info tt2
         WHERE
         tt2.is_deleted = 'N'
-        AND tt2.is_placefile = 1
+        <if test="reBeHosPageVO.isPlacefile != null and reBeHosPageVO.isPlacefile != ''">
+            and tt2.is_placefile = #{reBeHosPageVO.isPlacefile}
+        </if>
         AND tt2.qc_type_id != 0
         AND tt1.file_code = tt2.file_code
         AND tt1.diagnose = tt2.diagnose
@@ -6515,7 +6519,9 @@
         med_behospital_info a
         WHERE
         a.is_deleted = 'N'
-        AND a.is_placefile = 1
+        <if test="reBeHosPageVO.isPlacefile != null and reBeHosPageVO.isPlacefile != ''">
+            and a.is_placefile = #{reBeHosPageVO.isPlacefile}
+        </if>
         AND a.qc_type_id != 0
         AND IFNULL( a.diagnose, '' )!= ''
         AND IFNULL( a.file_code, '' )!= ''
@@ -6543,7 +6549,9 @@
         med_behospital_info tt2
         WHERE
         tt2.is_deleted = 'N'
-        AND tt2.is_placefile = 1
+        <if test="reBeHosPageVO.isPlacefile != null and reBeHosPageVO.isPlacefile != ''">
+            and tt2.is_placefile = #{reBeHosPageVO.isPlacefile}
+        </if>
         AND tt2.qc_type_id != 0
         AND tt1.file_code = tt2.file_code
         AND tt1.diagnose = tt2.diagnose