浏览代码

查询Bug修改

guq 7 年之前
父节点
当前提交
73c0a80c01

+ 2 - 1
applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/dto/ListReqDTO.java

@@ -47,7 +47,8 @@ public class ListReqDTO implements Serializable {
                     Object operation = jsonObject.get("operation");
                     Object value = jsonObject.get("value");
                     //包含状态时,前台会自动加单引号
-                    if (null != value && !"in".equals(operation) && !"not in".equals(operation)) {
+                    if (null != value && !"in".equals(operation) && !"not in".equals(operation) &&
+                            !"condition".equals(type)) {
                         value = value.toString().replaceAll("'", "''");
                     }
                     if ("between".equals(operation)) {