|
@@ -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>
|