|
|
|
@ -43,11 +43,11 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getAtomicDetail" resultType="com.supervision.police.dto.AtomicIndexDTO">
|
|
|
|
|
select mai.name as indexName,
|
|
|
|
|
case when mar.atomic_result = '1' then 'true' else 'false' end as indexResult,
|
|
|
|
|
concat(nr.question, nr.answer) as record
|
|
|
|
|
case when mar.atomic_result = '1' then 'true' else 'false' end as indexResult,
|
|
|
|
|
concat(nrs.question, nrs.answer) as record
|
|
|
|
|
from model_atomic_result mar
|
|
|
|
|
left join model_atomic_index mai on mar.atomic_id = mai.id
|
|
|
|
|
left join note_record nr on mar.record_id = nr.id
|
|
|
|
|
left join note_record_split nrs on mar.record_id = nrs.id
|
|
|
|
|
where mar.case_id = #{caseId} and mar.atomic_id in
|
|
|
|
|
<foreach collection="atomicIds" item="item" open="(" close=")" separator=",">
|
|
|
|
|
#{item}
|
|
|
|
|