通联关系增加:
1、增加展示列:APP、Protocol、web 2、增加查询条件:SASN 、DASN、app、web、protocol 3、app protocol website 支持多查询,每个条件限制10个 4、serverLocate、clientLocate支持模糊查询
This commit is contained in:
@@ -251,13 +251,15 @@ public class LogDataService {
|
||||
if (type.equals("java.lang.String")) {
|
||||
if (field.equals("url") || field.equals("website")) {
|
||||
whereSB.append(" and " + field + " like '" + StringEscapeUtils.unescapeHtml4(value.toString().trim()) + "%'");
|
||||
} else if (field.equals("client_locate") || field.equals("server_locate") ) {
|
||||
whereSB.append(" and " + field + " like '%" + StringEscapeUtils.unescapeHtml4(value.toString().trim()) + "%'");
|
||||
} else {
|
||||
whereSB.append(" and " + field + "='"
|
||||
+ StringEscapeUtils.unescapeHtml4(value.toString().trim()) + "'");
|
||||
}
|
||||
} else if (type.equals("java.lang.Integer") || type.equals("int")
|
||||
|| type.equals("java.lang.Long") || type.equals("long")) {
|
||||
if(field.equals("cfg_id")) {
|
||||
if(field.equals("cfg_id") || field.equals("web_id") || field.equals("app_id") || field.equals("proto_id")) {
|
||||
whereSB.append(" and " + filedAndColumnMap.get(key).toLowerCase() + " in("
|
||||
+ value.toString().trim()+")");
|
||||
}else {
|
||||
|
||||
Reference in New Issue
Block a user