This commit is contained in:
van
2026-04-11 22:35:39 +08:00
parent 5205d8c155
commit 94f319514e
14 changed files with 296 additions and 30 deletions

View File

@@ -91,10 +91,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectBatchPushRecordVo"/>
WHERE file_id = #{fileId}
AND sheet_id = #{sheetId}
AND status IN ('SUCCESS', 'PARTIAL')
AND status IN ('SUCCESS', 'PARTIAL', 'PARTIAL_SUCCESS')
ORDER BY end_time DESC
LIMIT 1
</select>
<select id="selectRunningRecordsBefore" resultMap="BatchPushRecordResult">
<include refid="selectBatchPushRecordVo"/>
WHERE status = 'RUNNING'
<if test="fileId != null and fileId != ''">AND file_id = #{fileId}</if>
AND start_time &lt; #{beforeTime}
ORDER BY start_time ASC
</select>
</mapper>