Unverified 提交 b5b8d941 authored 作者: 也曾为你、像超人's avatar 也曾为你、像超人 提交者: Gitee

update ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml.

问题:查业务类型为其他(businessType = 0)的数据时,会查到所有数据 原因:当参数为 Integer 类型 0 时,MyBatis 会把 0 当做空字符串处理
上级 9c3b53b7
......@@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="title != null and title != ''">
AND title like concat('%', #{title}, '%')
</if>
<if test="businessType != null and businessType != ''">
<if test="businessType != null">
AND business_type = #{businessType}
</if>
<if test="businessTypes != null and businessTypes.length > 0">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论