|
|
|
@ -23,7 +23,8 @@
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modelCase.involvedPerson != null and modelCase.involvedPerson != ''">
|
|
|
|
|
and ( law_actor like concat('%', #{modelCase.involvedPerson}, '%') or law_party like concat('%', #{modelCase.involvedPerson}, '%'))
|
|
|
|
|
and ( law_actor like concat('%', #{modelCase.involvedPerson}, '%') or law_party like concat('%',
|
|
|
|
|
#{modelCase.involvedPerson}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modelCase.lawActor != null and modelCase.lawActor != ''">
|
|
|
|
|
and law_actor like concat('%', #{modelCase.lawActor}, '%')
|
|
|
|
@ -53,23 +54,29 @@
|
|
|
|
|
and mi.index_type = #{indexType}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getAtomicDetail" resultType="com.supervision.police.dto.AtomicIndexDTO">
|
|
|
|
|
select mai.id as atomicIndexId,mai.name as indexName,mai.index_source as indexSource,
|
|
|
|
|
select mar.index_id as indexId, mai.id as atomicIndexId,mai.name as indexName,mai.index_source as indexSource,
|
|
|
|
|
mar.atomic_result as atomicResult,
|
|
|
|
|
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_split nrs on mar.record_split_id = nrs.id
|
|
|
|
|
where mar.case_id = #{caseId} and mar.atomic_id in
|
|
|
|
|
where mar.case_id = #{caseId} and mar.index_id = #{indexId} and mar.atomic_id in
|
|
|
|
|
<foreach collection="atomicIds" item="item" open="(" close=")" separator=",">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getIndexDetail" resultType="com.supervision.police.dto.IndexDetail">
|
|
|
|
|
select mi.name as indexName, mi.index_score as score, mir.index_result,mir.pre_result as preResult, mir.atomic_ids,mi.judge_logic as judgeLogic
|
|
|
|
|
select mi.id as indexId,
|
|
|
|
|
mi.name as indexName,
|
|
|
|
|
mi.index_score as score,
|
|
|
|
|
mir.index_result,
|
|
|
|
|
mir.pre_result as preResult,
|
|
|
|
|
mir.atomic_ids,
|
|
|
|
|
mi.judge_logic as judgeLogic
|
|
|
|
|
from model_index mi
|
|
|
|
|
left join model_index_result mir on (mi.id = mir.index_id and mir.case_id = #{caseId})
|
|
|
|
|
WHERE mi.data_status = '1'
|
|
|
|
|
and mi.index_type = #{indexType}
|
|
|
|
|
order by mir.index_result desc
|
|
|
|
|
order by mir.index_result, mi.id desc
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|