From 0d5a84d599cbfbd77b5663e592603f938b54409e Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 11:31:33 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid
---
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
index 51c3d11..4bd1410 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
@@ -37,7 +37,8 @@
<select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult">
<include refid="selectOperLogVo"/>
- <where>
+ WHERE 1=1
+
<if test="title != null and title != ''">
AND title like concat('%', #{title}, '%')
</if>
@@ -47,7 +48,7 @@
<if test="businessTypes != null and businessTypes.length > 0">
AND business_type in
<foreach collection="businessTypes" item="businessType" open="(" separator="," close=")">
- #{businessType}
+ #{businessType}
</foreach>
</if>
<if test="status != null">
@@ -62,7 +63,7 @@
<if test="params.endTime != null and params.endTime != ''"><!-- 缁撴潫鏃堕棿妫�绱� -->
and date_format(oper_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
</if>
- </where>
+
order by oper_id desc
</select>
--
Gitblit v1.9.3