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.
44 lines
1.9 KiB
XML
44 lines
1.9 KiB
XML
<?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.FileOcrProcessMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.supervision.police.domain.FileOcrProcess">
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
<result property="fileId" column="file_id" jdbcType="VARCHAR"/>
|
|
<result property="status" column="status" jdbcType="INTEGER"/>
|
|
<result property="drawImgId" column="draw_img_id" jdbcType="VARCHAR"/>
|
|
<result property="ocrText" column="ocr_text" jdbcType="VARCHAR"/>
|
|
<result property="reviseText" column="revise_text" 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,file_id,status,
|
|
draw_img_id,ocr_text,revise_text,
|
|
create_user_id,create_time,update_user_id,
|
|
update_time
|
|
</sql>
|
|
<select id="queryFileList" resultType="com.supervision.police.dto.RecordFileDTO">
|
|
select
|
|
mf.id as fileId,
|
|
mf.filename as fileName,
|
|
mf.size as fileSize,
|
|
op.id as ocrId,
|
|
op.status as ocrStatus,
|
|
op.ocr_text as ocrText,
|
|
op.revise_text as reviseText,
|
|
op.draw_img_id as drawImgId
|
|
from minio_file mf
|
|
left join file_ocr_process op on op.file_id = mf.id
|
|
where mf.id in
|
|
<foreach collection="fileIdList" item="item" open="(" separator="," close=")">
|
|
#{item}
|
|
</foreach>
|
|
</select>
|
|
</mapper>
|