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
8f0fbc42
Commit
8f0fbc42
authored
Dec 12, 2017
by
liuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2017年12月4日 智能分析平台提交内容
--质量报告页面点击详情更换视图
parent
196ed4fc
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
workspace.xml
.idea/workspace.xml
+0
-0
QualityRuleInfoDao.java
src/main/java/com/hp/cmsz/repository/QualityRuleInfoDao.java
+2
-1
QualityRuleInfoService.java
.../cmsz/service/analysissupport/QualityRuleInfoService.java
+2
-1
QualityRuleReportController.java
...cmsz/web/analysissupport/QualityRuleReportController.java
+3
-3
No files found.
.idea/workspace.xml
View file @
8f0fbc42
This diff is collapsed.
Click to expand it.
src/main/java/com/hp/cmsz/repository/QualityRuleInfoDao.java
View file @
8f0fbc42
package
com
.
hp
.
cmsz
.
repository
;
import
com.hp.cmsz.entity.QualityRuleInfo
;
import
com.hp.cmsz.entity.QualityRuleReport
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.jpa.domain.Specification
;
...
...
@@ -29,5 +30,5 @@ public interface QualityRuleInfoDao extends JpaSpecificationExecutor<QualityRule
//List<QualityRuleInfo> findByProvinceIdAndKpiIdAndWarningTypeIsNotAndBusinessTimeBetween(Long provinceId, Long kpiId,String type, Timestamp startTime, Timestamp endTime);
List
<
QualityRule
Info
>
findByProvinceIdAndKpiIdAndBusinessTimeBetweenOrderByBusinessTimeDescProvinceIdDescWarningNumAsc
(
Long
provinceId
,
Long
kpiId
,
Timestamp
startTime
,
Timestamp
endTime
);
List
<
QualityRule
Report
>
findByProvinceIdAndKpiIdAndBusinessTimeBetweenOrderByBusinessTimeDescProvinceIdDescWarningNumAsc
(
Long
provinceId
,
Long
kpiId
,
Timestamp
startTime
,
Timestamp
endTime
);
}
src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleInfoService.java
View file @
8f0fbc42
package
com
.
hp
.
cmsz
.
service
.
analysissupport
;
import
com.hp.cmsz.entity.QualityRuleInfo
;
import
com.hp.cmsz.entity.QualityRuleReport
;
import
com.hp.cmsz.entity.Time
;
import
com.hp.cmsz.repository.QualityRuleInfoDao
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -48,7 +49,7 @@ public class QualityRuleInfoService {
// return qualityRuleInfoDao.findByProvinceIdAndKpiIdAndWarningTypeIsNotAndBusinessTimeBetween(provinceId,kpiId,"正常",startTime,endTime);
// }
public
List
<
QualityRule
Info
>
findBy
(
Long
provinceId
,
Long
kpiId
,
Timestamp
startTime
,
Timestamp
endTime
){
public
List
<
QualityRule
Report
>
findBy
(
Long
provinceId
,
Long
kpiId
,
Timestamp
startTime
,
Timestamp
endTime
){
return
qualityRuleInfoDao
.
findByProvinceIdAndKpiIdAndBusinessTimeBetweenOrderByBusinessTimeDescProvinceIdDescWarningNumAsc
(
provinceId
,
kpiId
,
startTime
,
endTime
);
}
/**
...
...
src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleReportController.java
View file @
8f0fbc42
...
...
@@ -169,15 +169,15 @@ public class QualityRuleReportController {
Long
kpi
=
Long
.
parseLong
(
kpiId
);
Timestamp
startTime
=
Timestamp
.
valueOf
(
reportSumStartTime
);
Timestamp
endTime
=
Timestamp
.
valueOf
(
reportSumEndTime
);
List
<
QualityRule
Info
>
qualityRuleInfo
=
(
List
<
QualityRuleInfo
>)
qualityRuleInfoService
.
findBy
(
province
,
kpi
,
startTime
,
endTime
);
cmszOperationLogService
.
createLog
(
"查询"
,
"数据质量规则运营"
,
"查询数据质量
规则
运营明细"
);
List
<
QualityRule
Report
>
qualityRuleReportList
=
qualityRuleInfoService
.
findBy
(
province
,
kpi
,
startTime
,
endTime
);
cmszOperationLogService
.
createLog
(
"查询"
,
"数据质量规则运营"
,
"查询数据质量运营明细"
);
Gson
gson
=
new
Gson
();
response
.
setContentType
(
"text/Xml;charset=gbk"
);
PrintWriter
out
=
null
;
try
{
out
=
response
.
getWriter
();
out
.
println
(
gson
.
toJson
(
qualityRule
Info
));
out
.
println
(
gson
.
toJson
(
qualityRule
ReportList
));
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
...
...
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