Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cmszMonitorAnalysis
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuna
cmszMonitorAnalysis
Commits
8e5fdf46
Commit
8e5fdf46
authored
Dec 25, 2017
by
liuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2017年12月25日 --智能分析平台
--质量规则筛选项和报告表格修改
parent
5ec9e420
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
17 deletions
+21
-17
QualityRuleViewDao.java
src/main/java/com/hp/cmsz/repository/QualityRuleViewDao.java
+3
-0
QualityRuleViewService.java
.../cmsz/service/analysissupport/QualityRuleViewService.java
+5
-0
QualityRuleResultController.java
...cmsz/web/analysissupport/QualityRuleResultController.java
+12
-6
QualityRuleResult.jsp
...ebapp/WEB-INF/views/AnalysisSupport/QualityRuleResult.jsp
+1
-11
No files found.
src/main/java/com/hp/cmsz/repository/QualityRuleViewDao.java
View file @
8e5fdf46
...
...
@@ -18,4 +18,7 @@ public interface QualityRuleViewDao extends JpaSpecificationExecutor<QualityRule
//筛选项加指标编码
List
<
QualityRuleView
>
findByDataSourceIdInAndChannelIdInAndBusinessIdInAndKpiCodeOrderByQualityRuleIdAscBusinessTimeDesc
(
List
<
Long
>
dataSource
,
List
<
Long
>
chnnal
,
List
<
Long
>
busines
,
String
kpiCode
);
//筛选项指标编码
List
<
QualityRuleView
>
findByKpiCode
(
String
kpiCode
);
}
src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleViewService.java
View file @
8e5fdf46
...
...
@@ -25,4 +25,9 @@ public class QualityRuleViewService {
return
qualityRuleViewDao
.
findByDataSourceIdInAndChannelIdInAndBusinessIdInAndKpiCodeOrderByQualityRuleIdAscBusinessTimeDesc
(
dataSource
,
chnnal
,
busines
,
kpiCode
);
}
//按指标编码查
public
List
<
QualityRuleView
>
getQualityRuleByKpiCode
(
String
kpiCode
){
return
qualityRuleViewDao
.
findByKpiCode
(
kpiCode
);
}
}
src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleResultController.java
View file @
8e5fdf46
...
...
@@ -123,14 +123,22 @@ public class QualityRuleResultController {
String
[]
dataSourceS
=
dataSource
.
split
(
","
);
String
[]
chnnalS
=
chnnal
.
split
(
","
);
String
[]
bussinesS
=
bussines
.
split
(
","
);
List
<
Long
>
dataSourceList
=
changeStrToList
(
dataSourceS
);
List
<
Long
>
chnnalList
=
changeStrToList
(
chnnalS
);
List
<
Long
>
bussinesList
=
changeStrToList
(
bussinesS
);
if
(
code
.
equals
(
""
)){
List
<
Long
>
dataSourceList
=
changeStrToList
(
dataSourceS
);
List
<
Long
>
chnnalList
=
changeStrToList
(
chnnalS
);
List
<
Long
>
bussinesList
=
changeStrToList
(
bussinesS
);
qualityRuleViewList
=
qualityRuleViewService
.
getQualityRuleViewBy
(
dataSourceList
,
chnnalList
,
bussinesList
);
}
else
{
}
else
{
if
(!
dataSource
.
equals
(
""
)
&&
!
chnnal
.
equals
(
""
)
&&
!
bussinesS
.
equals
(
""
)){
List
<
Long
>
dataSourceList
=
changeStrToList
(
dataSourceS
);
List
<
Long
>
chnnalList
=
changeStrToList
(
chnnalS
);
List
<
Long
>
bussinesList
=
changeStrToList
(
bussinesS
);
qualityRuleViewList
=
qualityRuleViewService
.
getBy
(
dataSourceList
,
chnnalList
,
bussinesList
,
code
);
}
else
{
qualityRuleViewList
=
qualityRuleViewService
.
getQualityRuleByKpiCode
(
code
);
}
}
Gson
gson
=
new
Gson
();
response
.
setContentType
(
"text/Xml;charset=gbk"
);
PrintWriter
out
=
null
;
...
...
@@ -141,7 +149,6 @@ public class QualityRuleResultController {
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
//将string数据类型转换成List<Long>类型
...
...
@@ -150,7 +157,6 @@ public class QualityRuleResultController {
for
(
int
i
=
0
;
i
<
str
.
length
;
i
++){
list
.
add
(
Long
.
parseLong
(
str
[
i
]));
}
return
list
;
}
...
...
src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleResult.jsp
View file @
8e5fdf46
...
...
@@ -173,14 +173,6 @@ $("#createRule").click(function(){
});
}
}
else
if
(
code
!==
""
){
if
(
dataSource
==
""
){
$
.
alert
(
"数据来源的选择不能为空"
);
}
else
if
(
chnnal
===
""
){
$
.
alert
(
"渠道的选择不能为空"
);
}
else
if
(
bussines
===
""
){
$
.
alert
(
"业务的选择不能为空"
);
}
else
{
toggleMenu
(
'slidePushMenus'
);
//隐藏筛选项
//数据来源标签
$
(
'#DataSourceTag'
).
text
(
"数据来源"
).
append
(
$
(
"<span class='badge'></span>"
).
text
(
getStatsDataSourceCheckedValues
().
length
)).
attr
(
'data-original-title'
,
getStatsDataSourceCheckedTitles
()).
tooltip
();
...
...
@@ -212,13 +204,11 @@ $("#createRule").click(function(){
}
}
}
function
ruleResultReset
(){
$
(
"#kpiCodeID"
).
attr
(
"value"
,
''
);
statsDataSourceReset
();
//三级联动重置
}
$
(
"#updateRule"
).
click
(
function
(){
var
qualityRuleId
=
$
(
"input[name='checkbox']:checked"
).
val
();
location
.
href
=
"${ctx}/AnalysisSupport/QualityRuleConfiguration?qualityRuleId="
+
qualityRuleId
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment