Browse Source

修复操作日志查询类型条件为0时会查到所有数据

RuoYi 3 years ago
parent
commit
386f3eb016

+ 1 - 1
ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml

@@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
38
 			<if test="title != null and title != ''">
38
 			<if test="title != null and title != ''">
39
 				AND title like concat('%', #{title}, '%')
39
 				AND title like concat('%', #{title}, '%')
40
 			</if>
40
 			</if>
41
-			<if test="businessType != null and businessType != ''">
41
+			<if test="businessType != null">
42
 				AND business_type = #{businessType}
42
 				AND business_type = #{businessType}
43
 			</if>
43
 			</if>
44
 			<if test="businessTypes != null and businessTypes.length > 0">
44
 			<if test="businessTypes != null and businessTypes.length > 0">