This commit is contained in:
van
2026-04-10 00:57:31 +08:00
parent ede30b5f36
commit 52d0adfc85
7 changed files with 73 additions and 0 deletions

View File

@@ -26,4 +26,24 @@
where order_id = #{orderId}
order by id desc
</select>
<select id="selectLogList" parameterType="com.ruoyi.jarvis.domain.ErpGoofishOrderEventLogQuery" resultMap="ErpGoofishOrderEventLogResult">
select id, order_id, app_key, order_no, event_type, source, message, create_time
from erp_goofish_order_event_log
<where>
<if test="orderId != null">and order_id = #{orderId}</if>
<if test="appKey != null and appKey != ''">and app_key = #{appKey}</if>
<if test="orderNo != null and orderNo != ''">and order_no like concat('%', #{orderNo}, '%')</if>
<if test="eventType != null and eventType != ''">and event_type = #{eventType}</if>
<if test="source != null and source != ''">and source like concat('%', #{source}, '%')</if>
<if test="messageKeyword != null and messageKeyword != ''">and message like concat('%', #{messageKeyword}, '%')</if>
<if test="params != null and params.beginTime != null and params.beginTime != ''">
and create_time &gt;= concat(#{params.beginTime}, ' 00:00:00')
</if>
<if test="params != null and params.endTime != null and params.endTime != ''">
and create_time &lt;= concat(#{params.endTime}, ' 23:59:59')
</if>
</where>
order by id desc
</select>
</mapper>