1
This commit is contained in:
@@ -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 < #{beforeTime}
|
||||
ORDER BY start_time ASC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user