You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
<?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="org.dromara.sample.wayline.mapper.IAiCompareMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<select id="listMediaFile" resultType="org.dromara.sample.wayline.model.dto.AiCompareMediaFileDTO">
|
|
SELECT
|
|
ai.id as compareId,
|
|
mf.file_index,
|
|
mf.file_id,
|
|
mf.file_name,
|
|
mf.object_key,
|
|
mf.job_id,
|
|
mfi.file_id as mateFileId,
|
|
mfi.file_name as mateFileName,
|
|
mfi.object_key AS mateObjectKey,
|
|
mfi.file_index AS mateFileIndex,
|
|
mfi.create_time AS mateFileDate
|
|
FROM
|
|
media_file AS mf
|
|
JOIN
|
|
media_file AS mfi
|
|
ON
|
|
mf.file_index = mfi.file_index and mf.file_type='jpeg' and mfi.file_type='jpeg'
|
|
JOIN ai_compare ai ON ai.template_id = mfi.job_id
|
|
WHERE
|
|
mf.job_id = #{jobId} and ai.id=#{compareId}
|
|
ORDER BY
|
|
mf.file_index;
|
|
|
|
</select>
|
|
</mapper>
|
|
|