徐州低空平台
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.

38 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
3 months ago
ai.id as compareId,
mf.file_index,
mf.file_id,
mf.file_name,
3 months ago
mf.object_key,
mf.job_id,
mfi.file_id as mateFileId,
mfi.file_name as mateFileName,
3 months ago
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>