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
7188f079
Commit
7188f079
authored
Dec 27, 2017
by
liuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2017年12月27日 --智能分析平台
--删除规则改为物理删除、质量报告时间精确到日
parent
11fb1a8f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
QualityRuleDao.java
src/main/java/com/hp/cmsz/repository/QualityRuleDao.java
+4
-1
QualityRuleResultController.java
...cmsz/web/analysissupport/QualityRuleResultController.java
+9
-2
ruleReportDetailTable.js
src/main/webapp/static/js/ruleReportDetailTable.js
+4
-1
No files found.
src/main/java/com/hp/cmsz/repository/QualityRuleDao.java
View file @
7188f079
...
...
@@ -45,6 +45,9 @@ public interface QualityRuleDao extends JpaSpecificationExecutor<QualityRule>,
@Query
(
"select count(*) from QualityRule qualityRule where qualityRule.qualityRuleId=:qualityRuleId"
)
Long
getNumOfQualityRuleByQualityRuleId
(
@Param
(
"qualityRuleId"
)
String
qualityRuleId
);
//根据质量规则批量修改
@Modifying
@Query
(
"update from QualityRule qr set qr.ruleValidFlag =:ruleValidFlag where qr.qualityRuleId in (:qualityRuleId)"
)
void
updateRuleValidFlagByQualityRuleId
(
@Param
(
"ruleValidFlag"
)
String
ruleValidFlag
,
@Param
(
"qualityRuleId"
)
List
<
Long
>
qualityRuleId
);
}
src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleResultController.java
View file @
7188f079
...
...
@@ -168,18 +168,25 @@ public class QualityRuleResultController {
List
<
QualityRule
>
qualityRuleList
=
new
ArrayList
<
QualityRule
>();
List
<
AccuracyRule
>
accuracyRuleList
=
new
ArrayList
<
AccuracyRule
>();
QualityRule
qualityRule
=
null
;
if
(
qualityRuleId
.
contains
(
","
)){
String
[]
qualityRules
=
qualityRuleId
.
split
(
","
);
for
(
String
s
:
qualityRules
)
{
qualityRuleList
.
add
(
qualityRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
s
)));
accuracyRuleList
=
accuracyRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
s
));
qualityRule
=
qualityRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
s
));
qualityRule
.
setRuleValidFlag
(
"0"
);
}
}
else
{
qualityRuleList
.
add
(
qualityRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
qualityRuleId
)));
qualityRule
=
qualityRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
qualityRuleId
));
qualityRule
.
setRuleValidFlag
(
"0"
);
}
qualityRuleDao
.
delete
(
qualityRuleList
);
accuracyRuleDao
.
delete
(
accuracyRuleList
);
qualityRuleDao
.
save
(
qualityRule
);
// qualityRuleDao.delete(qualityRuleList);
// accuracyRuleDao.delete(accuracyRuleList);
cmszOperationLogService
.
createLog
(
"删除"
,
"更新质量规则"
,
"quality_rule_warehouse_info_t. QUALITY_RULE_ID="
+
qualityRuleId
);
return
PageURLController
.
RuleResult
;
...
...
src/main/webapp/static/js/ruleReportDetailTable.js
View file @
7188f079
...
...
@@ -118,6 +118,9 @@ SimpleDateFormat.prototype.applyPattern=function(pattern){
var
df
=
new
SimpleDateFormat
();
df
.
applyPattern
(
"yyyy-MM-dd HH:mm:ss"
);
var
sdf
=
new
SimpleDateFormat
();
sdf
.
applyPattern
(
"yyyy-MM-dd"
);
//
var
ruleReportId
;
function
ruleReportDetailTable
(){
...
...
@@ -326,7 +329,7 @@ table_pagging.prototype = {
if
(
k
==
15
){
if
(
tdContext
!=
" "
){
tdContext
=
df
.
format
(
new
Date
(
tdContext
));
tdContext
=
s
df
.
format
(
new
Date
(
tdContext
));
}
}
...
...
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