|
|
@ -105,14 +105,8 @@ |
|
|
|
LEFT JOIN t_qcp_first_aid_log t3 ON t.firstAidId = t3.first_aid_id |
|
|
|
AND t3.operation_type = 5 |
|
|
|
AND t3.rec_status = 0 |
|
|
|
LEFT JOIN t_qcp_first_aid_record t4 ON t.firstAidId = t4.first_aid_id |
|
|
|
AND t4.question_code = 'CYQK-CYSJ' |
|
|
|
AND t4.rec_status = 0 |
|
|
|
WHERE |
|
|
|
<choose> |
|
|
|
<when test="param.queryType == 0">t4.id IS NULL</when> |
|
|
|
<otherwise>t4.id IS NOT NULL</otherwise> |
|
|
|
</choose> |
|
|
|
1=1 |
|
|
|
<if test="param.hospitalNumber!=null and param.hospitalNumber!=''"> |
|
|
|
AND t1.answer LIKE concat('%',#{param.hospitalNumber},'%') |
|
|
|
</if> |
|
|
|