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
067fe5da
Commit
067fe5da
authored
Dec 27, 2017
by
胡斌
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/liuna'
parents
e0988292
7188f079
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 @
067fe5da
...
@@ -45,6 +45,9 @@ public interface QualityRuleDao extends JpaSpecificationExecutor<QualityRule>,
...
@@ -45,6 +45,9 @@ public interface QualityRuleDao extends JpaSpecificationExecutor<QualityRule>,
@Query
(
"select count(*) from QualityRule qualityRule where qualityRule.qualityRuleId=:qualityRuleId"
)
@Query
(
"select count(*) from QualityRule qualityRule where qualityRule.qualityRuleId=:qualityRuleId"
)
Long
getNumOfQualityRuleByQualityRuleId
(
@Param
(
"qualityRuleId"
)
String
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 @
067fe5da
...
@@ -168,18 +168,25 @@ public class QualityRuleResultController {
...
@@ -168,18 +168,25 @@ public class QualityRuleResultController {
List
<
QualityRule
>
qualityRuleList
=
new
ArrayList
<
QualityRule
>();
List
<
QualityRule
>
qualityRuleList
=
new
ArrayList
<
QualityRule
>();
List
<
AccuracyRule
>
accuracyRuleList
=
new
ArrayList
<
AccuracyRule
>();
List
<
AccuracyRule
>
accuracyRuleList
=
new
ArrayList
<
AccuracyRule
>();
QualityRule
qualityRule
=
null
;
if
(
qualityRuleId
.
contains
(
","
)){
if
(
qualityRuleId
.
contains
(
","
)){
String
[]
qualityRules
=
qualityRuleId
.
split
(
","
);
String
[]
qualityRules
=
qualityRuleId
.
split
(
","
);
for
(
String
s
:
qualityRules
)
{
for
(
String
s
:
qualityRules
)
{
qualityRuleList
.
add
(
qualityRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
s
)));
qualityRuleList
.
add
(
qualityRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
s
)));
accuracyRuleList
=
accuracyRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
s
));
accuracyRuleList
=
accuracyRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
s
));
qualityRule
=
qualityRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
s
));
qualityRule
.
setRuleValidFlag
(
"0"
);
}
}
}
else
{
}
else
{
qualityRuleList
.
add
(
qualityRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
qualityRuleId
)));
qualityRuleList
.
add
(
qualityRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
qualityRuleId
)));
qualityRule
=
qualityRuleDao
.
findByQualityRuleId
(
Long
.
parseLong
(
qualityRuleId
));
qualityRule
.
setRuleValidFlag
(
"0"
);
}
}
qualityRuleDao
.
delete
(
qualityRuleList
);
qualityRuleDao
.
save
(
qualityRule
);
accuracyRuleDao
.
delete
(
accuracyRuleList
);
// qualityRuleDao.delete(qualityRuleList);
// accuracyRuleDao.delete(accuracyRuleList);
cmszOperationLogService
.
createLog
(
"删除"
,
"更新质量规则"
,
"quality_rule_warehouse_info_t. QUALITY_RULE_ID="
+
qualityRuleId
);
cmszOperationLogService
.
createLog
(
"删除"
,
"更新质量规则"
,
"quality_rule_warehouse_info_t. QUALITY_RULE_ID="
+
qualityRuleId
);
return
PageURLController
.
RuleResult
;
return
PageURLController
.
RuleResult
;
...
...
src/main/webapp/static/js/ruleReportDetailTable.js
View file @
067fe5da
...
@@ -118,6 +118,9 @@ SimpleDateFormat.prototype.applyPattern=function(pattern){
...
@@ -118,6 +118,9 @@ SimpleDateFormat.prototype.applyPattern=function(pattern){
var
df
=
new
SimpleDateFormat
();
var
df
=
new
SimpleDateFormat
();
df
.
applyPattern
(
"yyyy-MM-dd HH:mm:ss"
);
df
.
applyPattern
(
"yyyy-MM-dd HH:mm:ss"
);
var
sdf
=
new
SimpleDateFormat
();
sdf
.
applyPattern
(
"yyyy-MM-dd"
);
//
//
var
ruleReportId
;
var
ruleReportId
;
function
ruleReportDetailTable
(){
function
ruleReportDetailTable
(){
...
@@ -326,7 +329,7 @@ table_pagging.prototype = {
...
@@ -326,7 +329,7 @@ table_pagging.prototype = {
if
(
k
==
15
){
if
(
k
==
15
){
if
(
tdContext
!=
" "
){
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