|
|
|
@ -6,8 +6,8 @@
|
|
|
|
|
<select id="selectByIds" resultType="com.supervision.police.domain.TripleInfo">
|
|
|
|
|
select nr2.case_id as caseId, nr2.id as noteRecordsId, ti.*
|
|
|
|
|
from triple_info ti
|
|
|
|
|
left join note_record nr on ti.note_record_id = nr.id
|
|
|
|
|
left join note_records nr2 on nr.note_records_id = nr2.id
|
|
|
|
|
left join note_record_split nr on ti.note_record_id = nr.id
|
|
|
|
|
left join note_record nr2 on nr.note_records_id = nr2.id
|
|
|
|
|
where 1 = 1
|
|
|
|
|
<if test="ids != null and ids.size > 0">
|
|
|
|
|
and ti.id in
|
|
|
|
|