|
|
|
<?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.FileEvidencePropertyMapper">
|
|
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.supervision.police.domain.FileEvidenceProperty">
|
|
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="evidenceId" column="evidence_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="fileId" column="file_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="propertyName" column="property_name" jdbcType="VARCHAR"/>
|
|
|
|
<result property="propertyValue" column="property_value" jdbcType="VARCHAR"/>
|
|
|
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
id,evidence_id,file_id,
|
|
|
|
property_name,property_value,create_user_id,
|
|
|
|
create_time,update_user_id,update_time
|
|
|
|
</sql>
|
|
|
|
<select id="listPrewByFileIdList" resultType="com.supervision.police.dto.OCREvidencePropertyDTO">
|
|
|
|
select
|
|
|
|
ep.evidence_id as evidenceId,
|
|
|
|
op.file_id as fileId,
|
|
|
|
op.draw_img_id as drawImgId,
|
|
|
|
op.status as ocrStatus,
|
|
|
|
ep.property_name as propertyName,
|
|
|
|
ep.property_value as propertyValue
|
|
|
|
from file_ocr_process op
|
|
|
|
left join file_evidence_property ep on ep.file_id = op.file_id
|
|
|
|
where ep.file_id in
|
|
|
|
<foreach collection="fileIdList" item="fileId" open="(" separator="," close=")">
|
|
|
|
#{fileId}
|
|
|
|
</foreach>
|
|
|
|
</select>
|
|
|
|
</mapper>
|