瀏覽代碼

判断条件修改

ZL 2 月之前
父節點
當前提交
6cb4750f1a

+ 1 - 1
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysPermissionServiceImpl.java

@@ -93,7 +93,7 @@ public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, S
 		String regex ="(?i)\\s+AND\\s+";
 		String modiSQL = "";
 		for (String s : sql.split(regex)) {
-			if(s.trim()!=""){
+			if(s.trim().length()>0){
 				modiSQL += " AND p."+s.trim();
 			}
 		}