|
@@ -29,14 +29,14 @@
|
|
|
t1.hospitalId AS hospitalId,
|
|
|
t1.behospitalCode AS behospitalCode,
|
|
|
t1.casesId AS casesId,
|
|
|
- t2.cases_score AS casesScore,
|
|
|
+ CASE WHEN ISNULL(t2.cases_score) THEN 0 ELSE t2.cases_score END casesScore,
|
|
|
t1.casesEntryId AS casesEntryId,
|
|
|
t1.score AS score,
|
|
|
t1.msgs AS msg,
|
|
|
- t2.info AS info,
|
|
|
- t1.isUsed AS isUsed,
|
|
|
- t2.grade_type AS gradeType,
|
|
|
- t2.opt_type AS optType,
|
|
|
+ CASE WHEN ISNULL(t2.info) THEN "" ELSE t2.info END info,
|
|
|
+ CASE WHEN ISNULL(t2.is_reject) THEN 1 ELSE t2.is_reject END isReject,
|
|
|
+ CASE WHEN ISNULL(t2.grade_type) THEN 0 ELSE t2.grade_type END gradeType,
|
|
|
+ CASE WHEN ISNULL(t2.opt_type) THEN 0 ELSE t2.opt_type END optType,
|
|
|
CASE WHEN ISNULL(t2.cases_entry_id) THEN 1 ELSE 0 END satisfy
|
|
|
FROM
|
|
|
(SELECT
|