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
dcbc0bea
Commit
dcbc0bea
authored
Dec 12, 2017
by
liuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2017年12月4日 智能分析平台提交内容
--质量报告页面点击详情修改
parent
8f0fbc42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
9 deletions
+50
-9
workspace.xml
.idea/workspace.xml
+0
-0
QualityRuleOperationDetail.java
...n/java/com/hp/cmsz/entity/QualityRuleOperationDetail.java
+8
-8
QualityRuleReportInfoDao.java
...java/com/hp/cmsz/repository/QualityRuleReportInfoDao.java
+14
-0
QualityRuleReportInfoService.java
...service/analysissupport/QualityRuleReportInfoService.java
+22
-0
QualityRuleReportController.java
...cmsz/web/analysissupport/QualityRuleReportController.java
+6
-1
No files found.
.idea/workspace.xml
View file @
dcbc0bea
This diff is collapsed.
Click to expand it.
src/main/java/com/hp/cmsz/entity/QualityRuleOperationDetail.java
View file @
dcbc0bea
...
...
@@ -18,7 +18,7 @@ public class QualityRuleOperationDetail {
private
Long
channelId
;
private
Long
dataSourceId
;
private
Long
provinceId
;
private
Long
qualityVerificationResultId
;
//
private Long qualityVerificationResultId;
private
Timestamp
kpiMonitorRunTime
;
private
Timestamp
businessTime
;
private
String
kpiName
;
...
...
@@ -82,13 +82,13 @@ public class QualityRuleOperationDetail {
}
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
public
Long
getQualityVerificationResultId
()
{
return
qualityVerificationResultId
;
}
public
void
setQualityVerificationResultId
(
Long
qualityVerificationResultId
)
{
this
.
qualityVerificationResultId
=
qualityVerificationResultId
;
}
//
public Long getQualityVerificationResultId() {
//
return qualityVerificationResultId;
//
}
//
//
public void setQualityVerificationResultId(Long qualityVerificationResultId) {
//
this.qualityVerificationResultId = qualityVerificationResultId;
//
}
public
Timestamp
getKpiMonitorRunTime
()
{
return
kpiMonitorRunTime
;
...
...
src/main/java/com/hp/cmsz/repository/QualityRuleReportInfoDao.java
0 → 100644
View file @
dcbc0bea
package
com
.
hp
.
cmsz
.
repository
;
import
com.hp.cmsz.entity.QualityRuleOperationDetail
;
import
com.hp.cmsz.entity.QualityRuleReport
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.repository.PagingAndSortingRepository
;
import
java.sql.Timestamp
;
import
java.util.List
;
public
interface
QualityRuleReportInfoDao
extends
JpaSpecificationExecutor
<
QualityRuleOperationDetail
>,
PagingAndSortingRepository
<
QualityRuleOperationDetail
,
Long
>
{
List
<
QualityRuleOperationDetail
>
findByProvinceIdAndKpiIdAndBusinessTimeBetweenOrderByBusinessTimeDescProvinceIdDescWarningNumAsc
(
Long
provinceId
,
Long
kpiId
,
Timestamp
startTime
,
Timestamp
endTime
);
}
src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleReportInfoService.java
0 → 100644
View file @
dcbc0bea
package
com
.
hp
.
cmsz
.
service
.
analysissupport
;
import
com.hp.cmsz.entity.QualityRuleOperationDetail
;
import
com.hp.cmsz.entity.QualityRuleReport
;
import
com.hp.cmsz.repository.QualityRuleReportInfoDao
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.sql.Timestamp
;
import
java.util.List
;
@Service
@Transactional
public
class
QualityRuleReportInfoService
{
@Autowired
private
QualityRuleReportInfoDao
qualityRuleReportInfoDao
;
public
List
<
QualityRuleOperationDetail
>
findBy
(
Long
provinceId
,
Long
kpiId
,
Timestamp
startTime
,
Timestamp
endTime
){
return
qualityRuleReportInfoDao
.
findByProvinceIdAndKpiIdAndBusinessTimeBetweenOrderByBusinessTimeDescProvinceIdDescWarningNumAsc
(
provinceId
,
kpiId
,
startTime
,
endTime
);
}
}
src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleReportController.java
View file @
dcbc0bea
...
...
@@ -5,10 +5,12 @@ import com.hp.cmsz.entity.*;
import
com.hp.cmsz.repository.DataSourceDao
;
import
com.hp.cmsz.repository.KpiDao
;
import
com.hp.cmsz.repository.ProvinceDao
;
import
com.hp.cmsz.repository.QualityRuleReportInfoDao
;
import
com.hp.cmsz.service.BusinessService
;
import
com.hp.cmsz.service.ChannelService
;
import
com.hp.cmsz.service.CmszOperationLogService
;
import
com.hp.cmsz.service.analysissupport.QualityRuleInfoService
;
import
com.hp.cmsz.service.analysissupport.QualityRuleReportInfoService
;
import
com.hp.cmsz.service.analysissupport.QualityRuleReportService
;
import
com.hp.cmsz.web.PageURLController
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -60,6 +62,9 @@ public class QualityRuleReportController {
private
QualityRuleInfoService
qualityRuleInfoService
;
@Autowired
private
QualityRuleReportInfoService
qualityRuleReportInfoService
;
@Autowired
private
CmszOperationLogService
cmszOperationLogService
;
@RequestMapping
(
value
=
""
)
...
...
@@ -169,7 +174,7 @@ public class QualityRuleReportController {
Long
kpi
=
Long
.
parseLong
(
kpiId
);
Timestamp
startTime
=
Timestamp
.
valueOf
(
reportSumStartTime
);
Timestamp
endTime
=
Timestamp
.
valueOf
(
reportSumEndTime
);
List
<
QualityRule
Report
>
qualityRuleReportList
=
qualityRule
InfoService
.
findBy
(
province
,
kpi
,
startTime
,
endTime
);
List
<
QualityRule
OperationDetail
>
qualityRuleReportList
=
qualityRuleReport
InfoService
.
findBy
(
province
,
kpi
,
startTime
,
endTime
);
cmszOperationLogService
.
createLog
(
"查询"
,
"数据质量规则运营"
,
"查询数据质量运营明细"
);
Gson
gson
=
new
Gson
();
response
.
setContentType
(
"text/Xml;charset=gbk"
);
...
...
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