Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦中观雨
cat
提交
c1eb6e2c
C
cat
项目概览
梦中观雨
/
cat
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c1eb6e2c
编写于
7月 22, 2014
作者:
Y
youyong205
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify the app default value
上级
42de2305
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
43 addition
and
29 deletion
+43
-29
cat-core/src/main/java/com/dianping/cat/config/app/QueryEntity.java
...rc/main/java/com/dianping/cat/config/app/QueryEntity.java
+29
-14
cat-home/src/main/webapp/jsp/report/app.jsp
cat-home/src/main/webapp/jsp/report/app.jsp
+14
-15
未找到文件。
cat-core/src/main/java/com/dianping/cat/config/app/QueryEntity.java
浏览文件 @
c1eb6e2c
...
...
@@ -3,6 +3,8 @@ package com.dianping.cat.config.app;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
org.jboss.netty.util.internal.StringUtil
;
import
org.unidal.lookup.util.StringUtils
;
import
com.dianping.cat.Cat
;
...
...
@@ -32,19 +34,32 @@ public class QueryEntity {
try
{
m_date
=
sdf
.
parse
(
strs
[
0
]);
m_command
=
Integer
.
parseInt
(
strs
[
1
]);
m_code
=
Integer
.
parseInt
(
strs
[
2
]);
m_network
=
Integer
.
parseInt
(
strs
[
3
]);
m_version
=
Integer
.
parseInt
(
strs
[
4
]);
m_channel
=
Integer
.
parseInt
(
strs
[
5
]);
m_platfrom
=
Integer
.
parseInt
(
strs
[
6
]);
m_city
=
Integer
.
parseInt
(
strs
[
7
]);
m_operator
=
Integer
.
parseInt
(
strs
[
8
]);
m_command
=
parseValue
(
strs
[
1
]);
m_code
=
parseValue
(
strs
[
2
]);
m_network
=
parseValue
(
strs
[
3
]);
m_version
=
parseValue
(
strs
[
4
]);
m_channel
=
parseValue
(
strs
[
5
]);
m_platfrom
=
parseValue
(
strs
[
6
]);
m_city
=
parseValue
(
strs
[
7
]);
m_operator
=
parseValue
(
strs
[
8
]);
}
catch
(
ParseException
e
)
{
Cat
.
logError
(
e
);
}
}
private
int
parseValue
(
String
str
)
{
if
(
StringUtils
.
isEmpty
(
str
))
{
return
-
1
;
}
else
{
try
{
return
Integer
.
parseInt
(
str
);
}
catch
(
NumberFormatException
e
)
{
Cat
.
logError
(
e
);
}
}
return
-
1
;
}
public
Date
getDate
()
{
return
m_date
;
}
...
...
@@ -118,10 +133,10 @@ public class QueryEntity {
}
@Override
public
String
toString
()
{
return
"QueryEntity [m_date="
+
m_date
+
", m_command="
+
m_command
+
", m_code="
+
m_code
+
", m_network="
+
m_network
+
", m_version="
+
m_version
+
", m_channel="
+
m_channel
+
", m_platfrom="
+
m_platfrom
+
", m_city="
+
m_city
+
", m_operator="
+
m_operator
+
"]"
;
}
public
String
toString
()
{
return
"QueryEntity [m_date="
+
m_date
+
", m_command="
+
m_command
+
", m_code="
+
m_code
+
", m_network="
+
m_network
+
", m_version="
+
m_version
+
", m_channel="
+
m_channel
+
", m_platfrom="
+
m_platfrom
+
", m_city="
+
m_city
+
", m_operator="
+
m_operator
+
"]"
;
}
}
cat-home/src/main/webapp/jsp/report/app.jsp
浏览文件 @
c1eb6e2c
...
...
@@ -194,10 +194,9 @@
<c:forEach
var=
"item"
items=
"
${
model
.
commands
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
</select>
返回码
<select
id=
"code"
style=
"width: 120px;"
><option
value=
'-1'
>
All
</option>
</select>
返回码
<select
id=
"code"
style=
"width: 120px;"
><option
value=
''
>
All
</option>
</select>
网络类型
<select
id=
"network"
style=
"width: 80px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
networks
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
...
...
@@ -206,29 +205,29 @@
</tr>
<tr>
<th
align=
left
>
版本
<select
id=
"version"
style=
"width: 100px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
versions
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
</select>
连接类型
<select
id=
"connectionType"
style=
"width: 100px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
connectionTypes
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
</select>
平台
<select
id=
"platform"
style=
"width: 100px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
platforms
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
</select>
地区
<select
id=
"city"
style=
"width: 100px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
cities
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
</select>
运营商
<select
id=
"operator"
style=
"width: 100px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
operators
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
...
...
@@ -256,9 +255,9 @@
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
</select>
返回码
<select
id=
"code2"
style=
"width: 120px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
</select>
网络类型
<select
id=
"network2"
style=
"width: 80px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
networks
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
...
...
@@ -267,29 +266,29 @@
</tr>
<tr>
<th
align=
left
>
版本
<select
id=
"version2"
style=
"width: 100px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
versions
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
</select>
连接类型
<select
id=
"connectionType2"
style=
"width: 100px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
connectionTypes
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
</select>
平台
<select
id=
"platform2"
style=
"width: 100px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
platforms
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
</select>
地区
<select
id=
"city2"
style=
"width: 100px;"
>
<option
value=
'
-1
'
>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
cities
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
</c:forEach>
</select>
运营商
<select
id=
"operator2"
style=
"width: 100px;"
>
<option>
All
</option>
<option
value=
''
>
All
</option>
<c:forEach
var=
"item"
items=
"
${
model
.
operators
}
"
varStatus=
"status"
>
<option
value=
'${item.id}'
>
${item.name}
</option>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录