修复日志查询service获取不对的问题

This commit is contained in:
chenjinsong
2018-07-18 19:31:55 +08:00
parent dbc2c98f4c
commit 726dff6d0c

View File

@@ -592,7 +592,6 @@ public class BaseController {
log.setAction(dict.getAction());
}
}
}
//初始化查询值判断
@@ -617,6 +616,15 @@ public class BaseController {
}
if (entry.getService()!=null) {
params.put("searchService", entry.getService());
} else if (entry.getAction()!=null) {
List<FunctionServiceDict> serviceList = DictUtils.getFunctionServiceDictList(entry.getFunctionId());
for (FunctionServiceDict dict : serviceList) {
if (dict.getAction().intValue() == entry.getAction().intValue()
&& dict.getFunctionId().intValue() == entry.getFunctionId().intValue()) {
entry.setService(dict.getServiceId());
params.put("searchService", dict.getServiceId());
}
}
}
if (StringUtils.isNotBlank(entry.getdIp())) {
params.put("searchDIp", entry.getdIp());