Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
DQMP
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
data
DQMP
Commits
4aa01793
Commit
4aa01793
authored
Dec 26, 2019
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
b86ba305
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
CheckServiceImpl.java
...ava/com/gmei/data/dqmp/service/impl/CheckServiceImpl.java
+3
-3
ThresholdExceedAllServiceImpl.java
...data/dqmp/service/impl/ThresholdExceedAllServiceImpl.java
+9
-9
No files found.
src/main/java/com/gmei/data/dqmp/service/impl/CheckServiceImpl.java
View file @
4aa01793
...
...
@@ -83,6 +83,7 @@ public class CheckServiceImpl implements CheckService {
logger
.
error
(
"Find result is empty!"
);
continue
;
}
else
{
uniqueCheckResult
.
setSqlId
(
id
);
Double
uniqueRate
=
uniqueCheckResult
.
getUniqueRate
();
if
(
null
!=
uniqueRate
&&
uniqueRate
<
threshold
)
{
mailService
.
sendSimpleMail
(
uniqueCheckResult
.
toString
());
...
...
@@ -92,7 +93,6 @@ public class CheckServiceImpl implements CheckService {
thresholdExceedAllService
.
persistThresholdExceedAll
(
parseObject
);
}
}
uniqueCheckResult
.
setSqlId
(
id
);
rs
=
tblResultCheckUniqueMapper
.
insert
(
uniqueCheckResult
);
}
else
if
(
Constants
.
CHECK_UNBLANK
.
equals
(
tblCheckSql
.
getCheckType
())){
TblResultCheckUnblank
tblResultCheckUnblank
=
getUnblankCheckResult
(
sql
);
...
...
@@ -100,6 +100,7 @@ public class CheckServiceImpl implements CheckService {
logger
.
error
(
"Find result is empty!"
);
continue
;
}
else
{
tblResultCheckUnblank
.
setSqlId
(
id
);
Double
unblankRate
=
tblResultCheckUnblank
.
getUnblankRate
();
if
(
null
!=
unblankRate
&&
unblankRate
<
threshold
)
{
mailService
.
sendSimpleMail
(
tblResultCheckUnblank
.
toString
());
...
...
@@ -109,7 +110,6 @@ public class CheckServiceImpl implements CheckService {
thresholdExceedAllService
.
persistThresholdExceedAll
(
parseObject
);
}
}
tblResultCheckUnblank
.
setSqlId
(
id
);
rs
=
tblResultCheckUnblankMapper
.
insert
(
tblResultCheckUnblank
);
}
else
{
logger
.
error
(
"Check type is error: {}"
,
checkType
);
...
...
@@ -150,6 +150,7 @@ public class CheckServiceImpl implements CheckService {
logger
.
error
(
"Find result is empty!"
);
continue
;
}
else
{
referCheckResult
.
setSqlId
(
id
);
Double
matchedRate
=
referCheckResult
.
getMatchedRate
();
if
(
null
!=
matchedRate
&&
matchedRate
<
threshold
)
{
mailService
.
sendSimpleMail
(
referCheckResult
.
toString
());
...
...
@@ -159,7 +160,6 @@ public class CheckServiceImpl implements CheckService {
thresholdExceedAllService
.
persistThresholdExceedAll
(
parseObject
);
}
}
referCheckResult
.
setSqlId
(
id
);
rs
=
tblResultCheckReferMapper
.
insert
(
referCheckResult
);
}
if
(
rs
==
1
)
{
...
...
src/main/java/com/gmei/data/dqmp/service/impl/ThresholdExceedAllServiceImpl.java
View file @
4aa01793
...
...
@@ -32,17 +32,17 @@ public class ThresholdExceedAllServiceImpl implements ThresholdExceedAllService
String
checkType
=
jsonObject
.
getString
(
"checkType"
);
if
(
null
!=
checkType
)
{
if
(
Constants
.
CHECK_UNIQUE
.
equals
(
checkType
))
{
tblThresholdExceedAll
.
setCheckNum
(
jsonObject
.
getLong
(
"unique
_n
um"
));
tblThresholdExceedAll
.
setCheckRate
(
jsonObject
.
getDouble
(
"unique
_r
ate"
));
tblThresholdExceedAll
.
setCheckNum
(
jsonObject
.
getLong
(
"unique
N
um"
));
tblThresholdExceedAll
.
setCheckRate
(
jsonObject
.
getDouble
(
"unique
R
ate"
));
}
else
if
(
Constants
.
CHECK_UNBLANK
.
equals
(
checkType
))
{
tblThresholdExceedAll
.
setCheckNum
(
jsonObject
.
getLong
(
"unblank
_n
um"
));
tblThresholdExceedAll
.
setCheckRate
(
jsonObject
.
getDouble
(
"unblank
_r
ate"
));
tblThresholdExceedAll
.
setCheckNum
(
jsonObject
.
getLong
(
"unblank
N
um"
));
tblThresholdExceedAll
.
setCheckRate
(
jsonObject
.
getDouble
(
"unblank
R
ate"
));
}
else
if
(
Constants
.
CHECK_REFER
.
equals
(
checkType
))
{
tblThresholdExceedAll
.
setDbName
(
jsonObject
.
getString
(
"check
_db_n
ame"
));
tblThresholdExceedAll
.
setTbName
(
jsonObject
.
getString
(
"check
_tb_n
ame"
));
tblThresholdExceedAll
.
setColName
(
jsonObject
.
getString
(
"check
_col_n
ame"
));
tblThresholdExceedAll
.
setCheckNum
(
jsonObject
.
getLong
(
"matched
_n
um"
));
tblThresholdExceedAll
.
setCheckRate
(
jsonObject
.
getDouble
(
"matched
_r
ate"
));
tblThresholdExceedAll
.
setDbName
(
jsonObject
.
getString
(
"check
DbN
ame"
));
tblThresholdExceedAll
.
setTbName
(
jsonObject
.
getString
(
"check
TbN
ame"
));
tblThresholdExceedAll
.
setColName
(
jsonObject
.
getString
(
"check
ColN
ame"
));
tblThresholdExceedAll
.
setCheckNum
(
jsonObject
.
getLong
(
"matched
N
um"
));
tblThresholdExceedAll
.
setCheckRate
(
jsonObject
.
getDouble
(
"matched
R
ate"
));
}
else
{
logger
.
error
(
"checkType params is error: {}"
,
checkType
);
}
...
...
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