Browse Source
update ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml.
问题:查业务类型为其他(businessType = 0)的数据时,会查到所有数据
原因:当参数为 Integer 类型 0 时,MyBatis 会把 0 当做空字符串处理
newMaster
也曾为你、像超人
3 years ago
committed by
Gitee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with
1 additions and
1 deletions
-
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
|
@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="title != null and title != ''"> |
|
|
<if test="title != null and title != ''"> |
|
|
AND title like concat('%', #{title}, '%') |
|
|
AND title like concat('%', #{title}, '%') |
|
|
</if> |
|
|
</if> |
|
|
<if test="businessType != null and businessType != ''"> |
|
|
<if test="businessType != null"> |
|
|
AND business_type = #{businessType} |
|
|
AND business_type = #{businessType} |
|
|
</if> |
|
|
</if> |
|
|
<if test="businessTypes != null and businessTypes.length > 0"> |
|
|
<if test="businessTypes != null and businessTypes.length > 0"> |
|
|