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.
|
|
|
<?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 mf.*,
|
|
|
|
mfi.file_name as mateFileName,
|
|
|
|
mfi.file_path as mateFilePath,
|
|
|
|
mfi.create_time as mateFileDate,
|
|
|
|
CAST( SUBSTRING_INDEX( SUBSTRING_INDEX( mf.file_name, '_', 3 ), '_', - 1 ) AS UNSIGNED ) AS suffix
|
|
|
|
FROM
|
|
|
|
media_file mf
|
|
|
|
LEFT JOIN ai_compare ai ON ai.job_id = mf.job_id
|
|
|
|
LEFT JOIN media_file mfi ON mfi.job_id = ai.template_id
|
|
|
|
WHERE mfi.job_id=#{jobId}
|
|
|
|
ORDER BY suffix asc
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</mapper>
|