Browse Source

只显示已经归档的病历

gaodm 5 years ago
parent
commit
e70401c142

+ 2 - 2
doc/005.20200528v1.2.x/qc_init.sql

@@ -1,6 +1,6 @@
 use `qc`;
-
-ALTER TABLE `med_behospital_info` ADD COLUMN `is_placefile` varchar(2) NOT NULL DEFAULT '0' COMMENT '是否归档(0:未归档,1:已归档)' AFTER `director_doctor_name`;
+-- 所有环境已经执行
+-- ALTER TABLE `med_behospital_info` ADD COLUMN `is_placefile` varchar(2) NOT NULL DEFAULT '0' COMMENT '是否归档(0:未归档,1:已归档)' AFTER `director_doctor_name`;
 
 ALTER TABLE `med_qcresult_detail` ADD COLUMN `grade_type` tinyint(4) DEFAULT '1' COMMENT '初始类型(1:机器,2:人工)' AFTER `is_reject`;
 ALTER TABLE `med_qcresult_detail` ADD COLUMN `opt_type` tinyint(4) DEFAULT '1' COMMENT '操作类型(1:新增,2:删除,3:修改)' AFTER `grade_type`;

+ 1 - 0
src/main/java/com/diagbot/facade/BehospitalInfoFacade.java

@@ -875,6 +875,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
             }
         }
         behospitalPageVO.setHospitalId(Long.parseLong(SysUserUtils.getCurrentHospitalID()));
+        behospitalPageVO.setIsPlacefile("1");
         if (null != behospitalPageVO.getStatisticsType()
                 && null == behospitalPageVO.getLeaveHosDateStart()
                 && null == behospitalPageVO.getLeaveHosDateEnd()) {

+ 7 - 0
src/main/java/com/diagbot/vo/BehospitalPageVO.java

@@ -85,4 +85,11 @@ public class BehospitalPageVO extends Page implements Serializable {
      * 统计维度 1-本月,2-本年
      */
     private Integer statisticsType;
+
+
+    /**
+     * 是否归档(0:未归档,1:已归档)
+     */
+    @ApiModelProperty(hidden = true)
+    private String isPlacefile;
 }

+ 9 - 0
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -84,6 +84,9 @@
         <if test="level != null and level != ''">
             and t.level = #{level}
         </if>
+        <if test="isPlacefile != null and isPlacefile != ''">
+            and t.is_placefile = #{isPlacefile}
+        </if>
         and t.qc_type_id != 0
     </select>
 
@@ -476,6 +479,9 @@
         <if test="level != null and level != ''">
             and t.level = #{level}
         </if>
+        <if test="isPlacefile != null and isPlacefile != ''">
+            and t.is_placefile = #{isPlacefile}
+        </if>
         and t.qc_type_id != 0
     </select>
 
@@ -543,6 +549,9 @@
         <if test="level != null and level != ''">
             and t.level = #{level}
         </if>
+        <if test="isPlacefile != null and isPlacefile != ''">
+            and t.is_placefile = #{isPlacefile}
+        </if>
         and t.qc_type_id != 0
     </select>