You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.supervision.police.mapper.TripleInfoMapper">
|
|
|
|
<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_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
|
|
|
|
<foreach collection="ids" item="id" open="(" close=")" separator=",">
|
|
|
|
#{id}
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</mapper>
|