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
a282e9d7
Commit
a282e9d7
authored
Dec 25, 2017
by
胡斌
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/liuna'
parents
04e0deec
8e5fdf46
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
17 deletions
+28
-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
ruleReportDetailTable.js
src/main/webapp/static/js/ruleReportDetailTable.js
+7
-0
No files found.
src/main/java/com/hp/cmsz/repository/QualityRuleViewDao.java
View file @
a282e9d7
...
...
@@ -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 @
a282e9d7
...
...
@@ -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 @
a282e9d7
...
...
@@ -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 @
a282e9d7
...
...
@@ -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
;
...
...
src/main/webapp/static/js/ruleReportDetailTable.js
View file @
a282e9d7
...
...
@@ -589,6 +589,7 @@ function selectOperation(qualityVerificationReportId) {
}
else
{
data
.
accuracyPro
=
(
data
.
accuracyPro
*
100
).
toFixed
(
0
)
+
"%"
;
}
$
.
dialog
({
title
:
"数据质量运营明细"
,
content
:
"<div class='dialog-p' style='max-height: 560px; overflow-y: scroll; overflow-x: auto;'>"
+
...
...
@@ -616,6 +617,12 @@ function selectOperation(qualityVerificationReportId) {
" <td>"
+
data
.
kpiCode
+
"</td>"
+
" </tr>"
+
" <tr>"
+
" <td>开始时间</td>"
+
" <td>"
+
df
.
format
(
new
Date
(
data
.
reportSumStartTime
))
+
"</td>"
+
" <td>结束时间</td>"
+
" <td>"
+
df
.
format
(
new
Date
(
data
.
reportSumEndTime
))
+
"</td>"
+
" </tr>"
+
" <tr>"
+
" <td>完整性数量</td>"
+
" <td>"
+
data
.
integralityNum
+
"</td>"
+
" <td>完整性占比</td>"
+
...
...
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