Bladeren bron

解决在没有选择操作类型时点击搜索出错问题

chenzz 5 jaren geleden
bovenliggende
commit
a2d95a8083
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml

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

@@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 			<if test="businessType != null">
 				AND business_type = #{businessType}
 			</if>
-			<if test="businessTypes != null and businessTypes != ''">
+			<if test="businessTypes != null and businessTypes.length > 0">
 			    AND business_type in
 			    <foreach collection="businessTypes" item="businessType" open="(" separator="," close=")">
 		 			#{businessType}