1
This commit is contained in:
@@ -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 >= concat(#{params.beginTime}, ' 00:00:00')
|
||||
</if>
|
||||
<if test="params != null and params.endTime != null and params.endTime != ''">
|
||||
and create_time <= concat(#{params.endTime}, ' 23:59:59')
|
||||
</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user