This commit is contained in:
2025-11-07 01:23:40 +08:00
parent 8b8b6d8797
commit 92d4338bb5
4 changed files with 413 additions and 0 deletions

View File

@@ -49,5 +49,45 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
</insert>
<sql id="selectLogVo">
select id, file_id, sheet_id, operation_type, order_no, target_row,
logistics_link, operation_status, error_message, operator,
create_time, remark
from tencent_doc_operation_log
</sql>
<select id="selectLogList" parameterType="com.ruoyi.jarvis.domain.TencentDocOperationLog" resultMap="TencentDocOperationLogResult">
<include refid="selectLogVo"/>
<where>
<if test="fileId != null and fileId != ''">
AND file_id = #{fileId}
</if>
<if test="sheetId != null and sheetId != ''">
AND sheet_id = #{sheetId}
</if>
<if test="operationType != null and operationType != ''">
AND operation_type = #{operationType}
</if>
<if test="orderNo != null and orderNo != ''">
AND order_no = #{orderNo}
</if>
<if test="operationStatus != null and operationStatus != ''">
AND operation_status = #{operationStatus}
</if>
</where>
order by create_time desc
</select>
<select id="selectRecentLogs" resultMap="TencentDocOperationLogResult">
<include refid="selectLogVo"/>
<where>
<if test="fileId != null and fileId != ''">
AND file_id = #{fileId}
</if>
</where>
order by create_time desc
limit #{limit}
</select>
</mapper>