Browse Source

http请求修改

gao.qiang 2 weeks ago
parent
commit
7f620466b1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      base-system/src/main/resources/mapper/system/SysOperLogMapper.xml

+ 4 - 1
base-system/src/main/resources/mapper/system/SysOperLogMapper.xml

@@ -65,7 +65,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 			</if>
 		</where>
 		<choose>
-			<when test="...无查询条件...">
+			<when test="title == null and title == '' and businessType == null
+                and (userId == null or userId == '')
+                and (startTime == null or startTime == '')
+                and (endTime == null or endTime == '')">
 				<!-- 默认只查最近3个月数据 + LIMIT -->
 				WHERE oper_time >= DATE_SUB(NOW(), INTERVAL 1 MONTH)
 				ORDER BY oper_time DESC