Преглед на файлове

客户端缺陷新增运行与终末筛选修改

rengb преди 4 години
родител
ревизия
b9ec9feda0
променени са 2 файла, в които са добавени 17 реда и са изтрити 2 реда
  1. 1 0
      src/main/java/com/diagbot/vo/QcCasesEntryFindVO.java
  2. 16 2
      src/main/resources/mapper/QcCasesEntryHospitalMapper.xml

+ 1 - 0
src/main/java/com/diagbot/vo/QcCasesEntryFindVO.java

@@ -22,4 +22,5 @@ public class QcCasesEntryFindVO {
     private String entryName;//条目名
     @NotNull(message = "请输入病人住院ID")
     private String behospitalCode;//病人住院ID
+    private String isPlacefile = "1";
 }

+ 16 - 2
src/main/resources/mapper/QcCasesEntryHospitalMapper.xml

@@ -65,7 +65,14 @@
         a.hospital_id AS hospitalId,
         b. NAME AS entryName,
         a.msg AS msg,
-        a.score AS score,
+        <choose>
+            <when test='isPlacefile == "0"'>
+                a.score_run AS score,
+            </when>
+            <otherwise>
+                a.score AS score,
+            </otherwise>
+        </choose>
         a.is_reject AS isReject,
         c.score AS caseScore
         FROM
@@ -79,7 +86,14 @@
         AND a.cases_entry_id = b.id
         AND c.cases_id = b.cases_id
         AND c.hospital_id = a.hospital_id
-        AND a.is_used = 1
+        <choose>
+            <when test='isPlacefile == "0"'>
+                AND a.is_used_run = 1
+            </when>
+            <otherwise>
+                AND a.is_used = 1
+            </otherwise>
+        </choose>
         <if test="hospitalId != null and hospitalId != ''">
             AND a.hospital_id = #{hospitalId}
         </if>