Browse Source

查询代码完善

guq 7 years ago
parent
commit
85fff366a5

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

@@ -62,7 +62,10 @@ public class ListReqDTO implements Serializable {
                     //字符串默认是模糊查询
                     if ("string".equals(type)) {
                         con = " " + field + " like '%" + value + "%' and";
-                    } else {
+                    } else if ("condition".equals(type)) {
+                        //type为condition为前端拼的条件
+                        con = " " + value + " and";
+                    }  else {
                         con = " " + field + " " + operation + " '" + value + "' and";
                     }