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
ff008571
Commit
ff008571
authored
Dec 22, 2019
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add threshold and dingding codes
parent
d59808ea
Show whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
700 additions
and
59 deletions
+700
-59
pom.xml
pom.xml
+6
-0
TblRuleInfoDuplex.java
...ain/java/com/gmei/data/dqmp/domain/TblRuleInfoDuplex.java
+10
-0
TblRuleInfoDuplexCriteria.java
.../com/gmei/data/dqmp/domain/TblRuleInfoDuplexCriteria.java
+60
-0
TblRuleInfoSimple.java
...ain/java/com/gmei/data/dqmp/domain/TblRuleInfoSimple.java
+10
-0
TblRuleInfoSimpleCriteria.java
.../com/gmei/data/dqmp/domain/TblRuleInfoSimpleCriteria.java
+60
-0
TblSqlCheckDuplex.java
...ain/java/com/gmei/data/dqmp/domain/TblSqlCheckDuplex.java
+10
-0
TblSqlCheckDuplexCriteria.java
.../com/gmei/data/dqmp/domain/TblSqlCheckDuplexCriteria.java
+60
-0
TblSqlCheckSingle.java
...ain/java/com/gmei/data/dqmp/domain/TblSqlCheckSingle.java
+10
-0
TblSqlCheckSingleCriteria.java
.../com/gmei/data/dqmp/domain/TblSqlCheckSingleCriteria.java
+60
-0
TblSqlMonitorSpecial.java
.../java/com/gmei/data/dqmp/domain/TblSqlMonitorSpecial.java
+10
-0
TblSqlMonitorSpecialCriteria.java
...m/gmei/data/dqmp/domain/TblSqlMonitorSpecialCriteria.java
+60
-0
TblSqlMonitorVolatility.java
...va/com/gmei/data/dqmp/domain/TblSqlMonitorVolatility.java
+10
-0
TblSqlMonitorVolatilityCriteria.java
...mei/data/dqmp/domain/TblSqlMonitorVolatilityCriteria.java
+60
-0
DqReferRuleDto.java
src/main/java/com/gmei/data/dqmp/dto/DqReferRuleDto.java
+3
-1
DqSpecialRuleDto.java
src/main/java/com/gmei/data/dqmp/dto/DqSpecialRuleDto.java
+3
-1
DqUnblankRuleDto.java
src/main/java/com/gmei/data/dqmp/dto/DqUnblankRuleDto.java
+3
-1
DqUniqueRuleDto.java
src/main/java/com/gmei/data/dqmp/dto/DqUniqueRuleDto.java
+3
-7
DqVolatilityRuleDto.java
...main/java/com/gmei/data/dqmp/dto/DqVolatilityRuleDto.java
+3
-1
DingdingService.java
...main/java/com/gmei/data/dqmp/service/DingdingService.java
+7
-0
CheckServiceImpl.java
...ava/com/gmei/data/dqmp/service/impl/CheckServiceImpl.java
+6
-0
DingdingServiceImpl.java
.../com/gmei/data/dqmp/service/impl/DingdingServiceImpl.java
+66
-0
DqReferRuleVo.java
src/main/java/com/gmei/data/dqmp/vo/DqReferRuleVo.java
+3
-0
DqRuleVo.java
src/main/java/com/gmei/data/dqmp/vo/DqRuleVo.java
+5
-3
DqSpecialRuleVo.java
src/main/java/com/gmei/data/dqmp/vo/DqSpecialRuleVo.java
+1
-0
DqUnblankRuleVo.java
src/main/java/com/gmei/data/dqmp/vo/DqUnblankRuleVo.java
+1
-0
DqUniqueRuleVo.java
src/main/java/com/gmei/data/dqmp/vo/DqUniqueRuleVo.java
+1
-0
DqVolatilityRuleVo.java
src/main/java/com/gmei/data/dqmp/vo/DqVolatilityRuleVo.java
+1
-0
application-dev.yml
src/main/resources/application-dev.yml
+5
-0
application-prod.yml
src/main/resources/application-prod.yml
+5
-0
application-test.yml
src/main/resources/application-test.yml
+5
-0
TblRuleInfoDuplexMapper.xml
...main/resources/mybatis/mapper/TblRuleInfoDuplexMapper.xml
+24
-7
TblRuleInfoSimpleMapper.xml
...main/resources/mybatis/mapper/TblRuleInfoSimpleMapper.xml
+24
-7
TblSqlCheckDuplexMapper.xml
...main/resources/mybatis/mapper/TblSqlCheckDuplexMapper.xml
+26
-7
TblSqlCheckSingleMapper.xml
...main/resources/mybatis/mapper/TblSqlCheckSingleMapper.xml
+27
-8
TblSqlMonitorSpecialMapper.xml
...n/resources/mybatis/mapper/TblSqlMonitorSpecialMapper.xml
+25
-8
TblSqlMonitorVolatilityMapper.xml
...esources/mybatis/mapper/TblSqlMonitorVolatilityMapper.xml
+27
-8
No files found.
pom.xml
View file @
ff008571
...
@@ -43,6 +43,12 @@
...
@@ -43,6 +43,12 @@
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-validation
</artifactId>
<artifactId>
spring-boot-starter-validation
</artifactId>
</dependency>
<!-- httpclient -->
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
<version>
4.3.2
</version>
</dependency>
</dependency>
<!-- 集成mysql驱动 -->
<!-- 集成mysql驱动 -->
<dependency>
<dependency>
...
...
src/main/java/com/gmei/data/dqmp/domain/TblRuleInfoDuplex.java
View file @
ff008571
...
@@ -19,6 +19,8 @@ public class TblRuleInfoDuplex {
...
@@ -19,6 +19,8 @@ public class TblRuleInfoDuplex {
private
String
referColName
;
private
String
referColName
;
private
Double
threshold
;
private
Integer
isValid
;
private
Integer
isValid
;
private
String
checkTime
;
private
String
checkTime
;
...
@@ -91,6 +93,14 @@ public class TblRuleInfoDuplex {
...
@@ -91,6 +93,14 @@ public class TblRuleInfoDuplex {
this
.
referColName
=
referColName
==
null
?
null
:
referColName
.
trim
();
this
.
referColName
=
referColName
==
null
?
null
:
referColName
.
trim
();
}
}
public
Double
getThreshold
()
{
return
threshold
;
}
public
void
setThreshold
(
Double
threshold
)
{
this
.
threshold
=
threshold
;
}
public
Integer
getIsValid
()
{
public
Integer
getIsValid
()
{
return
isValid
;
return
isValid
;
}
}
...
...
src/main/java/com/gmei/data/dqmp/domain/TblRuleInfoDuplexCriteria.java
View file @
ff008571
...
@@ -655,6 +655,66 @@ public class TblRuleInfoDuplexCriteria {
...
@@ -655,6 +655,66 @@ public class TblRuleInfoDuplexCriteria {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andThresholdIsNull
()
{
addCriterion
(
"threshold is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIsNotNull
()
{
addCriterion
(
"threshold is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdEqualTo
(
Double
value
)
{
addCriterion
(
"threshold ="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <>"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThan
(
Double
value
)
{
addCriterion
(
"threshold >"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold >="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThan
(
Double
value
)
{
addCriterion
(
"threshold <"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold not in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold not between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
src/main/java/com/gmei/data/dqmp/domain/TblRuleInfoSimple.java
View file @
ff008571
...
@@ -19,6 +19,8 @@ public class TblRuleInfoSimple {
...
@@ -19,6 +19,8 @@ public class TblRuleInfoSimple {
private
String
startTime
;
private
String
startTime
;
private
Double
threshold
;
private
Integer
isValid
;
private
Integer
isValid
;
private
String
checkTime
;
private
String
checkTime
;
...
@@ -93,6 +95,14 @@ public class TblRuleInfoSimple {
...
@@ -93,6 +95,14 @@ public class TblRuleInfoSimple {
this
.
startTime
=
startTime
==
null
?
null
:
startTime
.
trim
();
this
.
startTime
=
startTime
==
null
?
null
:
startTime
.
trim
();
}
}
public
Double
getThreshold
()
{
return
threshold
;
}
public
void
setThreshold
(
Double
threshold
)
{
this
.
threshold
=
threshold
;
}
public
Integer
getIsValid
()
{
public
Integer
getIsValid
()
{
return
isValid
;
return
isValid
;
}
}
...
...
src/main/java/com/gmei/data/dqmp/domain/TblRuleInfoSimpleCriteria.java
View file @
ff008571
...
@@ -655,6 +655,66 @@ public class TblRuleInfoSimpleCriteria {
...
@@ -655,6 +655,66 @@ public class TblRuleInfoSimpleCriteria {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andThresholdIsNull
()
{
addCriterion
(
"threshold is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIsNotNull
()
{
addCriterion
(
"threshold is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdEqualTo
(
Double
value
)
{
addCriterion
(
"threshold ="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <>"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThan
(
Double
value
)
{
addCriterion
(
"threshold >"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold >="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThan
(
Double
value
)
{
addCriterion
(
"threshold <"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold not in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold not between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
src/main/java/com/gmei/data/dqmp/domain/TblSqlCheckDuplex.java
View file @
ff008571
...
@@ -19,6 +19,8 @@ public class TblSqlCheckDuplex {
...
@@ -19,6 +19,8 @@ public class TblSqlCheckDuplex {
private
String
referColName
;
private
String
referColName
;
private
Double
threshold
;
private
Integer
isValid
;
private
Integer
isValid
;
private
String
checkTime
;
private
String
checkTime
;
...
@@ -95,6 +97,14 @@ public class TblSqlCheckDuplex {
...
@@ -95,6 +97,14 @@ public class TblSqlCheckDuplex {
this
.
referColName
=
referColName
==
null
?
null
:
referColName
.
trim
();
this
.
referColName
=
referColName
==
null
?
null
:
referColName
.
trim
();
}
}
public
Double
getThreshold
()
{
return
threshold
;
}
public
void
setThreshold
(
Double
threshold
)
{
this
.
threshold
=
threshold
;
}
public
Integer
getIsValid
()
{
public
Integer
getIsValid
()
{
return
isValid
;
return
isValid
;
}
}
...
...
src/main/java/com/gmei/data/dqmp/domain/TblSqlCheckDuplexCriteria.java
View file @
ff008571
...
@@ -655,6 +655,66 @@ public class TblSqlCheckDuplexCriteria {
...
@@ -655,6 +655,66 @@ public class TblSqlCheckDuplexCriteria {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andThresholdIsNull
()
{
addCriterion
(
"threshold is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIsNotNull
()
{
addCriterion
(
"threshold is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdEqualTo
(
Double
value
)
{
addCriterion
(
"threshold ="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <>"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThan
(
Double
value
)
{
addCriterion
(
"threshold >"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold >="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThan
(
Double
value
)
{
addCriterion
(
"threshold <"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold not in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold not between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
src/main/java/com/gmei/data/dqmp/domain/TblSqlCheckSingle.java
View file @
ff008571
...
@@ -13,6 +13,8 @@ public class TblSqlCheckSingle {
...
@@ -13,6 +13,8 @@ public class TblSqlCheckSingle {
private
String
colName
;
private
String
colName
;
private
Double
threshold
;
private
Integer
isValid
;
private
Integer
isValid
;
private
String
checkTime
;
private
String
checkTime
;
...
@@ -65,6 +67,14 @@ public class TblSqlCheckSingle {
...
@@ -65,6 +67,14 @@ public class TblSqlCheckSingle {
this
.
colName
=
colName
==
null
?
null
:
colName
.
trim
();
this
.
colName
=
colName
==
null
?
null
:
colName
.
trim
();
}
}
public
Double
getThreshold
()
{
return
threshold
;
}
public
void
setThreshold
(
Double
threshold
)
{
this
.
threshold
=
threshold
;
}
public
Integer
getIsValid
()
{
public
Integer
getIsValid
()
{
return
isValid
;
return
isValid
;
}
}
...
...
src/main/java/com/gmei/data/dqmp/domain/TblSqlCheckSingleCriteria.java
View file @
ff008571
...
@@ -445,6 +445,66 @@ public class TblSqlCheckSingleCriteria {
...
@@ -445,6 +445,66 @@ public class TblSqlCheckSingleCriteria {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andThresholdIsNull
()
{
addCriterion
(
"threshold is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIsNotNull
()
{
addCriterion
(
"threshold is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdEqualTo
(
Double
value
)
{
addCriterion
(
"threshold ="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <>"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThan
(
Double
value
)
{
addCriterion
(
"threshold >"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold >="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThan
(
Double
value
)
{
addCriterion
(
"threshold <"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold not in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold not between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
src/main/java/com/gmei/data/dqmp/domain/TblSqlMonitorSpecial.java
View file @
ff008571
...
@@ -17,6 +17,8 @@ public class TblSqlMonitorSpecial {
...
@@ -17,6 +17,8 @@ public class TblSqlMonitorSpecial {
private
String
startTime
;
private
String
startTime
;
private
Double
threshold
;
private
Integer
isValid
;
private
Integer
isValid
;
private
String
checkTime
;
private
String
checkTime
;
...
@@ -85,6 +87,14 @@ public class TblSqlMonitorSpecial {
...
@@ -85,6 +87,14 @@ public class TblSqlMonitorSpecial {
this
.
startTime
=
startTime
==
null
?
null
:
startTime
.
trim
();
this
.
startTime
=
startTime
==
null
?
null
:
startTime
.
trim
();
}
}
public
Double
getThreshold
()
{
return
threshold
;
}
public
void
setThreshold
(
Double
threshold
)
{
this
.
threshold
=
threshold
;
}
public
Integer
getIsValid
()
{
public
Integer
getIsValid
()
{
return
isValid
;
return
isValid
;
}
}
...
...
src/main/java/com/gmei/data/dqmp/domain/TblSqlMonitorSpecialCriteria.java
View file @
ff008571
...
@@ -585,6 +585,66 @@ public class TblSqlMonitorSpecialCriteria {
...
@@ -585,6 +585,66 @@ public class TblSqlMonitorSpecialCriteria {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andThresholdIsNull
()
{
addCriterion
(
"threshold is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIsNotNull
()
{
addCriterion
(
"threshold is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdEqualTo
(
Double
value
)
{
addCriterion
(
"threshold ="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <>"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThan
(
Double
value
)
{
addCriterion
(
"threshold >"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold >="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThan
(
Double
value
)
{
addCriterion
(
"threshold <"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold not in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold not between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
src/main/java/com/gmei/data/dqmp/domain/TblSqlMonitorVolatility.java
View file @
ff008571
...
@@ -13,6 +13,8 @@ public class TblSqlMonitorVolatility {
...
@@ -13,6 +13,8 @@ public class TblSqlMonitorVolatility {
private
String
indicatorType
;
private
String
indicatorType
;
private
Double
threshold
;
private
Integer
isValid
;
private
Integer
isValid
;
private
String
checkTime
;
private
String
checkTime
;
...
@@ -65,6 +67,14 @@ public class TblSqlMonitorVolatility {
...
@@ -65,6 +67,14 @@ public class TblSqlMonitorVolatility {
this
.
indicatorType
=
indicatorType
==
null
?
null
:
indicatorType
.
trim
();
this
.
indicatorType
=
indicatorType
==
null
?
null
:
indicatorType
.
trim
();
}
}
public
Double
getThreshold
()
{
return
threshold
;
}
public
void
setThreshold
(
Double
threshold
)
{
this
.
threshold
=
threshold
;
}
public
Integer
getIsValid
()
{
public
Integer
getIsValid
()
{
return
isValid
;
return
isValid
;
}
}
...
...
src/main/java/com/gmei/data/dqmp/domain/TblSqlMonitorVolatilityCriteria.java
View file @
ff008571
...
@@ -445,6 +445,66 @@ public class TblSqlMonitorVolatilityCriteria {
...
@@ -445,6 +445,66 @@ public class TblSqlMonitorVolatilityCriteria {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andThresholdIsNull
()
{
addCriterion
(
"threshold is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIsNotNull
()
{
addCriterion
(
"threshold is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdEqualTo
(
Double
value
)
{
addCriterion
(
"threshold ="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <>"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThan
(
Double
value
)
{
addCriterion
(
"threshold >"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdGreaterThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold >="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThan
(
Double
value
)
{
addCriterion
(
"threshold <"
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdLessThanOrEqualTo
(
Double
value
)
{
addCriterion
(
"threshold <="
,
value
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotIn
(
List
<
Double
>
values
)
{
addCriterion
(
"threshold not in"
,
values
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThresholdNotBetween
(
Double
value1
,
Double
value2
)
{
addCriterion
(
"threshold not between"
,
value1
,
value2
,
"threshold"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
src/main/java/com/gmei/data/dqmp/dto/DqReferRuleDto.java
View file @
ff008571
...
@@ -29,6 +29,8 @@ public class DqReferRuleDto extends BaseRowModel{
...
@@ -29,6 +29,8 @@ public class DqReferRuleDto extends BaseRowModel{
private
String
referColName
;
private
String
referColName
;
@ExcelProperty
(
value
=
"参照表过滤条件"
,
index
=
10
)
@ExcelProperty
(
value
=
"参照表过滤条件"
,
index
=
10
)
private
String
referFilters
;
private
String
referFilters
;
@ExcelProperty
(
value
=
"备注"
,
index
=
11
)
@ExcelProperty
(
value
=
"阈值"
,
index
=
11
)
private
Double
threshold
;
@ExcelProperty
(
value
=
"备注"
,
index
=
12
)
private
String
comment
;
private
String
comment
;
}
}
src/main/java/com/gmei/data/dqmp/dto/DqSpecialRuleDto.java
View file @
ff008571
...
@@ -27,6 +27,8 @@ public class DqSpecialRuleDto extends BaseRowModel {
...
@@ -27,6 +27,8 @@ public class DqSpecialRuleDto extends BaseRowModel {
private
String
startTime
;
private
String
startTime
;
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
9
)
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
9
)
private
String
filters
;
private
String
filters
;
@ExcelProperty
(
value
=
"备注"
,
index
=
10
)
@ExcelProperty
(
value
=
"阈值"
,
index
=
10
)
private
Double
threshold
;
@ExcelProperty
(
value
=
"备注"
,
index
=
11
)
private
String
comment
;
private
String
comment
;
}
}
src/main/java/com/gmei/data/dqmp/dto/DqUnblankRuleDto.java
View file @
ff008571
...
@@ -21,6 +21,8 @@ public class DqUnblankRuleDto extends BaseRowModel{
...
@@ -21,6 +21,8 @@ public class DqUnblankRuleDto extends BaseRowModel{
private
String
colName
;
private
String
colName
;
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
6
)
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
6
)
private
String
filters
;
private
String
filters
;
@ExcelProperty
(
value
=
"备注"
,
index
=
7
)
@ExcelProperty
(
value
=
"阈值"
,
index
=
7
)
private
Double
threshold
;
@ExcelProperty
(
value
=
"备注"
,
index
=
8
)
private
String
comment
;
private
String
comment
;
}
}
src/main/java/com/gmei/data/dqmp/dto/DqUniqueRuleDto.java
View file @
ff008571
...
@@ -21,12 +21,8 @@ public class DqUniqueRuleDto extends BaseRowModel{
...
@@ -21,12 +21,8 @@ public class DqUniqueRuleDto extends BaseRowModel{
private
String
colName
;
private
String
colName
;
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
6
)
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
6
)
private
String
filters
;
private
String
filters
;
@ExcelProperty
(
value
=
"备注"
,
index
=
7
)
@ExcelProperty
(
value
=
"阈值"
,
index
=
7
)
private
Double
threshold
;
@ExcelProperty
(
value
=
"备注"
,
index
=
8
)
private
String
comment
;
private
String
comment
;
@Override
public
String
toString
()
{
return
"DqUniqueRuleDto [checkType="
+
checkType
+
", isValid="
+
isValid
+
", checkTime="
+
checkTime
+
", dbName="
+
dbName
+
", tbName="
+
tbName
+
", colName="
+
colName
+
", filters="
+
filters
+
"]"
;
}
}
}
src/main/java/com/gmei/data/dqmp/dto/DqVolatilityRuleDto.java
View file @
ff008571
...
@@ -23,6 +23,8 @@ public class DqVolatilityRuleDto extends BaseRowModel{
...
@@ -23,6 +23,8 @@ public class DqVolatilityRuleDto extends BaseRowModel{
private
String
indicatorType
;
private
String
indicatorType
;
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
7
)
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
7
)
private
String
filters
;
private
String
filters
;
@ExcelProperty
(
value
=
"备注"
,
index
=
8
)
@ExcelProperty
(
value
=
"阈值"
,
index
=
8
)
private
Double
threshold
;
@ExcelProperty
(
value
=
"备注"
,
index
=
9
)
private
String
comment
;
private
String
comment
;
}
}
src/main/java/com/gmei/data/dqmp/service/DingdingService.java
0 → 100644
View file @
ff008571
package
com
.
gmei
.
data
.
dqmp
.
service
;
public
interface
DingdingService
{
Boolean
sendMsgToDingding
(
String
msg
);
}
src/main/java/com/gmei/data/dqmp/service/impl/CheckServiceImpl.java
View file @
ff008571
...
@@ -26,6 +26,8 @@ import com.gmei.data.dqmp.mapper.TblSqlCheckDuplexMapper;
...
@@ -26,6 +26,8 @@ import com.gmei.data.dqmp.mapper.TblSqlCheckDuplexMapper;
import
com.gmei.data.dqmp.mapper.TblSqlCheckSingleMapper
;
import
com.gmei.data.dqmp.mapper.TblSqlCheckSingleMapper
;
import
com.gmei.data.dqmp.pool.JdbcConnectPool
;
import
com.gmei.data.dqmp.pool.JdbcConnectPool
;
import
com.gmei.data.dqmp.service.CheckService
;
import
com.gmei.data.dqmp.service.CheckService
;
import
com.gmei.data.dqmp.service.DingdingService
;
import
com.gmei.data.dqmp.service.MailService
;
import
com.gmei.data.dqmp.utils.DateUtils
;
import
com.gmei.data.dqmp.utils.DateUtils
;
@Service
@Service
...
@@ -41,6 +43,10 @@ public class CheckServiceImpl implements CheckService {
...
@@ -41,6 +43,10 @@ public class CheckServiceImpl implements CheckService {
private
TblResultCheckUnblankMapper
tblResultCheckUnblankMapper
;
private
TblResultCheckUnblankMapper
tblResultCheckUnblankMapper
;
@Autowired
@Autowired
private
TblResultCheckReferMapper
tblResultCheckReferMapper
;
private
TblResultCheckReferMapper
tblResultCheckReferMapper
;
@Autowired
private
MailService
mailService
;
@Autowired
private
DingdingService
dingdingService
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
CheckServiceImpl
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
CheckServiceImpl
.
class
);
/**
/**
...
...
src/main/java/com/gmei/data/dqmp/service/impl/DingdingServiceImpl.java
0 → 100644
View file @
ff008571
package
com
.
gmei
.
data
.
dqmp
.
service
.
impl
;
import
org.apache.http.HttpResponse
;
import
org.apache.http.HttpStatus
;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.client.methods.HttpPost
;
import
org.apache.http.entity.StringEntity
;
import
org.apache.http.impl.client.HttpClients
;
import
org.apache.http.util.EntityUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Value
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gmei.data.dqmp.service.DingdingService
;
public
class
DingdingServiceImpl
implements
DingdingService
{
@Value
(
"${dingding.webhookToken}"
)
private
String
webhookToken
;
@Value
(
"${dingding.atMobile}"
)
private
String
atMobile
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DingdingServiceImpl
.
class
);
/**
* 发送钉钉消息
*
* @param jsonObject
* @throws Exception
*/
@Override
public
Boolean
sendMsgToDingding
(
String
msg
)
{
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"msgtype"
,
"text"
);
JSONObject
jo
=
new
JSONObject
();
jo
.
put
(
"content"
,
msg
);
jsonObject
.
put
(
"text"
,
jo
);
JSONObject
joo
=
new
JSONObject
();
JSONArray
ja
=
new
JSONArray
();
ja
.
add
(
atMobile
);
joo
.
put
(
"atMobiles"
,
ja
);
joo
.
put
(
"isAtAll"
,
false
);
jsonObject
.
put
(
"at"
,
joo
);
Boolean
rs
=
false
;
try
{
HttpClient
httpclient
=
HttpClients
.
createDefault
();
HttpPost
httppost
=
new
HttpPost
(
webhookToken
);
httppost
.
addHeader
(
"Content-Type"
,
"application/json; charset=utf-8"
);
String
str
=
jsonObject
.
toString
();
logger
.
info
(
str
);
StringEntity
se
=
new
StringEntity
(
str
,
"utf-8"
);
httppost
.
setEntity
(
se
);
HttpResponse
response
=
httpclient
.
execute
(
httppost
);
if
(
response
.
getStatusLine
().
getStatusCode
()
==
HttpStatus
.
SC_OK
)
{
String
result
=
EntityUtils
.
toString
(
response
.
getEntity
(),
"utf-8"
);
logger
.
info
(
result
);
}
rs
=
true
;
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
());
e
.
printStackTrace
();
}
return
rs
;
}
}
src/main/java/com/gmei/data/dqmp/vo/DqReferRuleVo.java
View file @
ff008571
package
com
.
gmei
.
data
.
dqmp
.
vo
;
package
com
.
gmei
.
data
.
dqmp
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
lombok.Data
;
import
lombok.Data
;
@Data
@Data
...
@@ -16,5 +18,6 @@ public class DqReferRuleVo{
...
@@ -16,5 +18,6 @@ public class DqReferRuleVo{
private
String
referTbName
;
private
String
referTbName
;
private
String
referColName
;
private
String
referColName
;
private
String
referFilters
;
private
String
referFilters
;
private
Double
threshold
;
private
String
comment
;
private
String
comment
;
}
}
src/main/java/com/gmei/data/dqmp/vo/DqRuleVo.java
View file @
ff008571
...
@@ -5,14 +5,16 @@ import org.hibernate.validator.constraints.NotBlank;
...
@@ -5,14 +5,16 @@ import org.hibernate.validator.constraints.NotBlank;
public
class
DqRuleVo
extends
BaseVo
{
public
class
DqRuleVo
extends
BaseVo
{
//common
//common
@NotBlank
(
message
=
"校验类型
字段
不能为空"
)
@NotBlank
(
message
=
"校验类型不能为空"
)
private
String
checkType
;
private
String
checkType
;
@NotNull
(
message
=
"状态
字段
不能为NULL"
)
@NotNull
(
message
=
"状态不能为NULL"
)
private
Integer
isValid
;
private
Integer
isValid
;
@NotBlank
(
message
=
"校验时间
字段
不能为空"
)
@NotBlank
(
message
=
"校验时间不能为空"
)
private
String
checkTime
;
private
String
checkTime
;
@NotBlank
(
message
=
"校验规则备注"
)
@NotBlank
(
message
=
"校验规则备注"
)
private
String
comment
;
private
String
comment
;
@NotBlank
(
message
=
"阈值不能为空"
)
private
Double
threshold
;
//simple
//simple
private
String
dbName
;
private
String
dbName
;
...
...
src/main/java/com/gmei/data/dqmp/vo/DqSpecialRuleVo.java
View file @
ff008571
...
@@ -15,5 +15,6 @@ public class DqSpecialRuleVo {
...
@@ -15,5 +15,6 @@ public class DqSpecialRuleVo {
private
String
indicatorType
;
private
String
indicatorType
;
private
String
startTime
;
private
String
startTime
;
private
String
filters
;
private
String
filters
;
private
Double
threshold
;
private
String
comment
;
private
String
comment
;
}
}
src/main/java/com/gmei/data/dqmp/vo/DqUnblankRuleVo.java
View file @
ff008571
...
@@ -12,5 +12,6 @@ public class DqUnblankRuleVo{
...
@@ -12,5 +12,6 @@ public class DqUnblankRuleVo{
private
String
tbName
;
private
String
tbName
;
private
String
colName
;
private
String
colName
;
private
String
filters
;
private
String
filters
;
private
Double
threshold
;
private
String
comment
;
private
String
comment
;
}
}
src/main/java/com/gmei/data/dqmp/vo/DqUniqueRuleVo.java
View file @
ff008571
...
@@ -12,5 +12,6 @@ public class DqUniqueRuleVo{
...
@@ -12,5 +12,6 @@ public class DqUniqueRuleVo{
private
String
tbName
;
private
String
tbName
;
private
String
colName
;
private
String
colName
;
private
String
filters
;
private
String
filters
;
private
Double
threshold
;
private
String
comment
;
private
String
comment
;
}
}
src/main/java/com/gmei/data/dqmp/vo/DqVolatilityRuleVo.java
View file @
ff008571
...
@@ -13,5 +13,6 @@ public class DqVolatilityRuleVo{
...
@@ -13,5 +13,6 @@ public class DqVolatilityRuleVo{
private
String
colName
;
private
String
colName
;
private
String
indicatorType
;
private
String
indicatorType
;
private
String
filters
;
private
String
filters
;
private
Double
threshold
;
private
String
comment
;
private
String
comment
;
}
}
src/main/resources/application-dev.yml
View file @
ff008571
...
@@ -53,6 +53,11 @@ mail:
...
@@ -53,6 +53,11 @@ mail:
fromMail
:
fromMail
:
addr
:
youjiantongji@wanmeizhensuo.com
addr
:
youjiantongji@wanmeizhensuo.com
#---dingding send config---
dingding
:
atMobile
:
13051007691
webhookToken
:
https://oapi.dingtalk.com/robot/send?access_token=f7706a17b6de3ab6318806d1ed3d31fc68642bee99693280ee9a1591ab978c51
#---mybatis config---
#---mybatis config---
mybatis
:
mybatis
:
mapper-locations
:
classpath:mybatis/mapper/*Mapper.xml
mapper-locations
:
classpath:mybatis/mapper/*Mapper.xml
...
...
src/main/resources/application-prod.yml
View file @
ff008571
...
@@ -53,6 +53,11 @@ mail:
...
@@ -53,6 +53,11 @@ mail:
fromMail
:
fromMail
:
addr
:
youjiantongji@wanmeizhensuo.com
addr
:
youjiantongji@wanmeizhensuo.com
#---dingding send config---
dingding
:
atMobile
:
13051007691
webhookToken
:
https://oapi.dingtalk.com/robot/send?access_token=68d7d6e9aaf81ebbf0f5228a3eadf769f1af0a7b0cb3dcb8fb8885dc5d93054f
#---mybatis config---
#---mybatis config---
mybatis
:
mybatis
:
mapper-locations
:
classpath:mybatis/mapper/*Mapper.xml
mapper-locations
:
classpath:mybatis/mapper/*Mapper.xml
...
...
src/main/resources/application-test.yml
View file @
ff008571
...
@@ -53,6 +53,11 @@ mail:
...
@@ -53,6 +53,11 @@ mail:
fromMail
:
fromMail
:
addr
:
youjiantongji@wanmeizhensuo.com
addr
:
youjiantongji@wanmeizhensuo.com
#---dingding send config---
dingding
:
atMobile
:
13051007691
webhookToken
:
https://oapi.dingtalk.com/robot/send?access_token=f7706a17b6de3ab6318806d1ed3d31fc68642bee99693280ee9a1591ab978c51
#---mybatis config---
#---mybatis config---
mybatis
:
mybatis
:
mapper-locations
:
classpath:mybatis/mapper/*Mapper.xml
mapper-locations
:
classpath:mybatis/mapper/*Mapper.xml
...
...
src/main/resources/mybatis/mapper/TblRuleInfoDuplexMapper.xml
View file @
ff008571
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<result
column=
"refer_db_name"
property=
"referDbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"refer_db_name"
property=
"referDbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"refer_tb_name"
property=
"referTbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"refer_tb_name"
property=
"referTbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"refer_col_name"
property=
"referColName"
jdbcType=
"VARCHAR"
/>
<result
column=
"refer_col_name"
property=
"referColName"
jdbcType=
"VARCHAR"
/>
<result
column=
"threshold"
property=
"threshold"
jdbcType=
"DOUBLE"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
...
@@ -79,7 +80,7 @@
...
@@ -79,7 +80,7 @@
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, check_type, check_db_name, check_tb_name, check_col_name, refer_db_name, refer_tb_name,
id, check_type, check_db_name, check_tb_name, check_col_name, refer_db_name, refer_tb_name,
refer_col_name, is_valid, check_time, comment, create_time
refer_col_name,
threshold,
is_valid, check_time, comment, create_time
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
check_filters, refer_filters
check_filters, refer_filters
...
@@ -138,14 +139,14 @@
...
@@ -138,14 +139,14 @@
</selectKey>
</selectKey>
insert into tbl_rule_info_duplex (check_type, check_db_name, check_tb_name,
insert into tbl_rule_info_duplex (check_type, check_db_name, check_tb_name,
check_col_name, refer_db_name, refer_tb_name,
check_col_name, refer_db_name, refer_tb_name,
refer_col_name,
is_valid, check_time
,
refer_col_name,
threshold, is_valid
,
c
omment, create_time, check_filters
,
c
heck_time, comment, create_time
,
refer_filters)
check_filters,
refer_filters)
values (#{checkType,jdbcType=VARCHAR}, #{checkDbName,jdbcType=VARCHAR}, #{checkTbName,jdbcType=VARCHAR},
values (#{checkType,jdbcType=VARCHAR}, #{checkDbName,jdbcType=VARCHAR}, #{checkTbName,jdbcType=VARCHAR},
#{checkColName,jdbcType=VARCHAR}, #{referDbName,jdbcType=VARCHAR}, #{referTbName,jdbcType=VARCHAR},
#{checkColName,jdbcType=VARCHAR}, #{referDbName,jdbcType=VARCHAR}, #{referTbName,jdbcType=VARCHAR},
#{referColName,jdbcType=VARCHAR}, #{
isValid,jdbcType=INTEGER}, #{checkTime,jdbcType=VARCHA
R},
#{referColName,jdbcType=VARCHAR}, #{
threshold,jdbcType=DOUBLE}, #{isValid,jdbcType=INTEGE
R},
#{c
omment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{checkFilters,jdbcType=LONGVARCHAR
},
#{c
heckTime,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP
},
#{referFilters,jdbcType=LONGVARCHAR})
#{
checkFilters,jdbcType=LONGVARCHAR}, #{
referFilters,jdbcType=LONGVARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblRuleInfoDuplexWithBLOBs"
>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblRuleInfoDuplexWithBLOBs"
>
<selectKey
resultType=
"java.lang.Integer"
keyProperty=
"id"
order=
"AFTER"
>
<selectKey
resultType=
"java.lang.Integer"
keyProperty=
"id"
order=
"AFTER"
>
...
@@ -174,6 +175,9 @@
...
@@ -174,6 +175,9 @@
<if
test=
"referColName != null"
>
<if
test=
"referColName != null"
>
refer_col_name,
refer_col_name,
</if>
</if>
<if
test=
"threshold != null"
>
threshold,
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid,
is_valid,
</if>
</if>
...
@@ -215,6 +219,9 @@
...
@@ -215,6 +219,9 @@
<if
test=
"referColName != null"
>
<if
test=
"referColName != null"
>
#{referColName,jdbcType=VARCHAR},
#{referColName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
#{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -268,6 +275,9 @@
...
@@ -268,6 +275,9 @@
<if
test=
"record.referColName != null"
>
<if
test=
"record.referColName != null"
>
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.threshold != null"
>
threshold = #{record.threshold,jdbcType=DOUBLE},
</if>
<if
test=
"record.isValid != null"
>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -301,6 +311,7 @@
...
@@ -301,6 +311,7 @@
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -321,6 +332,7 @@
...
@@ -321,6 +332,7 @@
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -353,6 +365,9 @@
...
@@ -353,6 +365,9 @@
<if
test=
"referColName != null"
>
<if
test=
"referColName != null"
>
refer_col_name = #{referColName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
threshold = #{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -383,6 +398,7 @@
...
@@ -383,6 +398,7 @@
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
@@ -400,6 +416,7 @@
...
@@ -400,6 +416,7 @@
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
...
src/main/resources/mybatis/mapper/TblRuleInfoSimpleMapper.xml
View file @
ff008571
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<result
column=
"time_col_name"
property=
"timeColName"
jdbcType=
"VARCHAR"
/>
<result
column=
"time_col_name"
property=
"timeColName"
jdbcType=
"VARCHAR"
/>
<result
column=
"indicator_type"
property=
"indicatorType"
jdbcType=
"VARCHAR"
/>
<result
column=
"indicator_type"
property=
"indicatorType"
jdbcType=
"VARCHAR"
/>
<result
column=
"start_time"
property=
"startTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"start_time"
property=
"startTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"threshold"
property=
"threshold"
jdbcType=
"DOUBLE"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
...
@@ -78,7 +79,7 @@
...
@@ -78,7 +79,7 @@
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, check_type, db_name, tb_name, col_name, time_col_name, indicator_type, start_time,
id, check_type, db_name, tb_name, col_name, time_col_name, indicator_type, start_time,
is_valid, check_time, comment, create_time
threshold,
is_valid, check_time, comment, create_time
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
filters
filters
...
@@ -137,14 +138,14 @@
...
@@ -137,14 +138,14 @@
</selectKey>
</selectKey>
insert into tbl_rule_info_simple (check_type, db_name, tb_name,
insert into tbl_rule_info_simple (check_type, db_name, tb_name,
col_name, time_col_name, indicator_type,
col_name, time_col_name, indicator_type,
start_time,
is_valid, check_time
,
start_time,
threshold, is_valid
,
c
omment, create_time, filters
c
heck_time, comment, create_time,
)
filters
)
values (#{checkType,jdbcType=VARCHAR}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
values (#{checkType,jdbcType=VARCHAR}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{timeColName,jdbcType=VARCHAR}, #{indicatorType,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{timeColName,jdbcType=VARCHAR}, #{indicatorType,jdbcType=VARCHAR},
#{startTime,jdbcType=VARCHAR}, #{
isValid,jdbcType=INTEGER}, #{checkTime,jdbcType=VARCHA
R},
#{startTime,jdbcType=VARCHAR}, #{
threshold,jdbcType=DOUBLE}, #{isValid,jdbcType=INTEGE
R},
#{c
omment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{filters,jdbcType=LONGVARCHAR}
#{c
heckTime,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
)
#{filters,jdbcType=LONGVARCHAR}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblRuleInfoSimple"
>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblRuleInfoSimple"
>
<selectKey
resultType=
"java.lang.Integer"
keyProperty=
"id"
order=
"AFTER"
>
<selectKey
resultType=
"java.lang.Integer"
keyProperty=
"id"
order=
"AFTER"
>
...
@@ -173,6 +174,9 @@
...
@@ -173,6 +174,9 @@
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
start_time,
start_time,
</if>
</if>
<if
test=
"threshold != null"
>
threshold,
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid,
is_valid,
</if>
</if>
...
@@ -211,6 +215,9 @@
...
@@ -211,6 +215,9 @@
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
#{startTime,jdbcType=VARCHAR},
#{startTime,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
#{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -261,6 +268,9 @@
...
@@ -261,6 +268,9 @@
<if
test=
"record.startTime != null"
>
<if
test=
"record.startTime != null"
>
start_time = #{record.startTime,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.threshold != null"
>
threshold = #{record.threshold,jdbcType=DOUBLE},
</if>
<if
test=
"record.isValid != null"
>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -291,6 +301,7 @@
...
@@ -291,6 +301,7 @@
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -310,6 +321,7 @@
...
@@ -310,6 +321,7 @@
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -342,6 +354,9 @@
...
@@ -342,6 +354,9 @@
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
start_time = #{startTime,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
threshold = #{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -369,6 +384,7 @@
...
@@ -369,6 +384,7 @@
time_col_name = #{timeColName,jdbcType=VARCHAR},
time_col_name = #{timeColName,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
@@ -385,6 +401,7 @@
...
@@ -385,6 +401,7 @@
time_col_name = #{timeColName,jdbcType=VARCHAR},
time_col_name = #{timeColName,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
...
src/main/resources/mybatis/mapper/TblSqlCheckDuplexMapper.xml
View file @
ff008571
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<result
column=
"refer_db_name"
property=
"referDbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"refer_db_name"
property=
"referDbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"refer_tb_name"
property=
"referTbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"refer_tb_name"
property=
"referTbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"refer_col_name"
property=
"referColName"
jdbcType=
"VARCHAR"
/>
<result
column=
"refer_col_name"
property=
"referColName"
jdbcType=
"VARCHAR"
/>
<result
column=
"threshold"
property=
"threshold"
jdbcType=
"DOUBLE"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
...
@@ -79,7 +80,7 @@
...
@@ -79,7 +80,7 @@
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, check_type, check_db_name, check_tb_name, check_col_name, refer_db_name, refer_tb_name,
id, check_type, check_db_name, check_tb_name, check_col_name, refer_db_name, refer_tb_name,
refer_col_name, is_valid, check_time, comment, parent_id, create_time
refer_col_name,
threshold,
is_valid, check_time, comment, parent_id, create_time
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
sql_content
sql_content
...
@@ -135,14 +136,16 @@
...
@@ -135,14 +136,16 @@
<insert
id=
"insert"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheckDuplex"
>
<insert
id=
"insert"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheckDuplex"
>
insert into tbl_sql_check_duplex (id, check_type, check_db_name,
insert into tbl_sql_check_duplex (id, check_type, check_db_name,
check_tb_name, check_col_name, refer_db_name,
check_tb_name, check_col_name, refer_db_name,
refer_tb_name, refer_col_name, is_valid,
refer_tb_name, refer_col_name, threshold,
check_time, comment, parent_id,
is_valid, check_time, comment,
create_time, sql_content)
parent_id, create_time, sql_content
)
values (#{id,jdbcType=INTEGER}, #{checkType,jdbcType=VARCHAR}, #{checkDbName,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{checkType,jdbcType=VARCHAR}, #{checkDbName,jdbcType=VARCHAR},
#{checkTbName,jdbcType=VARCHAR}, #{checkColName,jdbcType=VARCHAR}, #{referDbName,jdbcType=VARCHAR},
#{checkTbName,jdbcType=VARCHAR}, #{checkColName,jdbcType=VARCHAR}, #{referDbName,jdbcType=VARCHAR},
#{referTbName,jdbcType=VARCHAR}, #{referColName,jdbcType=VARCHAR}, #{isValid,jdbcType=INTEGER},
#{referTbName,jdbcType=VARCHAR}, #{referColName,jdbcType=VARCHAR}, #{threshold,jdbcType=DOUBLE},
#{checkTime,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER}, #{checkTime,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{sqlContent,jdbcType=LONGVARCHAR})
#{parentId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{sqlContent,jdbcType=LONGVARCHAR}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheckDuplex"
>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheckDuplex"
>
insert into tbl_sql_check_duplex
insert into tbl_sql_check_duplex
...
@@ -171,6 +174,9 @@
...
@@ -171,6 +174,9 @@
<if
test=
"referColName != null"
>
<if
test=
"referColName != null"
>
refer_col_name,
refer_col_name,
</if>
</if>
<if
test=
"threshold != null"
>
threshold,
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid,
is_valid,
</if>
</if>
...
@@ -215,6 +221,9 @@
...
@@ -215,6 +221,9 @@
<if
test=
"referColName != null"
>
<if
test=
"referColName != null"
>
#{referColName,jdbcType=VARCHAR},
#{referColName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
#{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -268,6 +277,9 @@
...
@@ -268,6 +277,9 @@
<if
test=
"record.referColName != null"
>
<if
test=
"record.referColName != null"
>
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.threshold != null"
>
threshold = #{record.threshold,jdbcType=DOUBLE},
</if>
<if
test=
"record.isValid != null"
>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -301,6 +313,7 @@
...
@@ -301,6 +313,7 @@
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -321,6 +334,7 @@
...
@@ -321,6 +334,7 @@
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_db_name = #{record.referDbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_tb_name = #{record.referTbName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
refer_col_name = #{record.referColName,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -354,6 +368,9 @@
...
@@ -354,6 +368,9 @@
<if
test=
"referColName != null"
>
<if
test=
"referColName != null"
>
refer_col_name = #{referColName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
threshold = #{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -384,6 +401,7 @@
...
@@ -384,6 +401,7 @@
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
@@ -401,6 +419,7 @@
...
@@ -401,6 +419,7 @@
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_db_name = #{referDbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_tb_name = #{referTbName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
refer_col_name = #{referColName,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
...
src/main/resources/mybatis/mapper/TblSqlCheckSingleMapper.xml
View file @
ff008571
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<result
column=
"db_name"
property=
"dbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"db_name"
property=
"dbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"tb_name"
property=
"tbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"tb_name"
property=
"tbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"col_name"
property=
"colName"
jdbcType=
"VARCHAR"
/>
<result
column=
"col_name"
property=
"colName"
jdbcType=
"VARCHAR"
/>
<result
column=
"threshold"
property=
"threshold"
jdbcType=
"DOUBLE"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
...
@@ -75,8 +76,8 @@
...
@@ -75,8 +76,8 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, check_type, db_name, tb_name, col_name,
is_valid, check_time, comment, parent_id
,
id, check_type, db_name, tb_name, col_name,
threshold, is_valid, check_time, comment
,
create_time
parent_id,
create_time
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
sql_content
sql_content
...
@@ -131,13 +132,15 @@
...
@@ -131,13 +132,15 @@
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheckSingle"
>
<insert
id=
"insert"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheckSingle"
>
insert into tbl_sql_check_single (id, check_type, db_name,
insert into tbl_sql_check_single (id, check_type, db_name,
tb_name, col_name, is_valid,
tb_name, col_name, threshold,
check_time, comment, parent_id,
is_valid, check_time, comment,
create_time, sql_content)
parent_id, create_time, sql_content
)
values (#{id,jdbcType=INTEGER}, #{checkType,jdbcType=VARCHAR}, #{dbName,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{checkType,jdbcType=VARCHAR}, #{dbName,jdbcType=VARCHAR},
#{tbName,jdbcType=VARCHAR}, #{colName,jdbcType=VARCHAR}, #{isValid,jdbcType=INTEGER},
#{tbName,jdbcType=VARCHAR}, #{colName,jdbcType=VARCHAR}, #{threshold,jdbcType=DOUBLE},
#{checkTime,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER}, #{checkTime,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{sqlContent,jdbcType=LONGVARCHAR})
#{parentId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{sqlContent,jdbcType=LONGVARCHAR}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheckSingle"
>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlCheckSingle"
>
insert into tbl_sql_check_single
insert into tbl_sql_check_single
...
@@ -157,6 +160,9 @@
...
@@ -157,6 +160,9 @@
<if
test=
"colName != null"
>
<if
test=
"colName != null"
>
col_name,
col_name,
</if>
</if>
<if
test=
"threshold != null"
>
threshold,
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid,
is_valid,
</if>
</if>
...
@@ -192,6 +198,9 @@
...
@@ -192,6 +198,9 @@
<if
test=
"colName != null"
>
<if
test=
"colName != null"
>
#{colName,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
#{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -236,6 +245,9 @@
...
@@ -236,6 +245,9 @@
<if
test=
"record.colName != null"
>
<if
test=
"record.colName != null"
>
col_name = #{record.colName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.threshold != null"
>
threshold = #{record.threshold,jdbcType=DOUBLE},
</if>
<if
test=
"record.isValid != null"
>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -266,6 +278,7 @@
...
@@ -266,6 +278,7 @@
db_name = #{record.dbName,jdbcType=VARCHAR},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -283,6 +296,7 @@
...
@@ -283,6 +296,7 @@
db_name = #{record.dbName,jdbcType=VARCHAR},
db_name = #{record.dbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -307,6 +321,9 @@
...
@@ -307,6 +321,9 @@
<if
test=
"colName != null"
>
<if
test=
"colName != null"
>
col_name = #{colName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
threshold = #{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -334,6 +351,7 @@
...
@@ -334,6 +351,7 @@
db_name = #{dbName,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
@@ -348,6 +366,7 @@
...
@@ -348,6 +366,7 @@
db_name = #{dbName,jdbcType=VARCHAR},
db_name = #{dbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
...
src/main/resources/mybatis/mapper/TblSqlMonitorSpecialMapper.xml
View file @
ff008571
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<result
column=
"time_col_name"
property=
"timeColName"
jdbcType=
"VARCHAR"
/>
<result
column=
"time_col_name"
property=
"timeColName"
jdbcType=
"VARCHAR"
/>
<result
column=
"indicator_type"
property=
"indicatorType"
jdbcType=
"VARCHAR"
/>
<result
column=
"indicator_type"
property=
"indicatorType"
jdbcType=
"VARCHAR"
/>
<result
column=
"start_time"
property=
"startTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"start_time"
property=
"startTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"threshold"
property=
"threshold"
jdbcType=
"DOUBLE"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
...
@@ -77,8 +78,8 @@
...
@@ -77,8 +78,8 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, db_name, tb_name, col_name, time_col_name, indicator_type, start_time,
is_vali
d,
id, db_name, tb_name, col_name, time_col_name, indicator_type, start_time,
threshol
d,
check_time, comment, parent_id, create_time
is_valid,
check_time, comment, parent_id, create_time
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
sql_content
sql_content
...
@@ -134,14 +135,14 @@
...
@@ -134,14 +135,14 @@
<insert
id=
"insert"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlMonitorSpecial"
>
<insert
id=
"insert"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlMonitorSpecial"
>
insert into tbl_sql_monitor_special (id, db_name, tb_name,
insert into tbl_sql_monitor_special (id, db_name, tb_name,
col_name, time_col_name, indicator_type,
col_name, time_col_name, indicator_type,
start_time,
is_valid, check_time
,
start_time,
threshold, is_valid
,
c
omment, parent_id, create_time
,
c
heck_time, comment, parent_id
,
sql_content)
create_time,
sql_content)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{timeColName,jdbcType=VARCHAR}, #{indicatorType,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{timeColName,jdbcType=VARCHAR}, #{indicatorType,jdbcType=VARCHAR},
#{startTime,jdbcType=VARCHAR}, #{
isValid,jdbcType=INTEGER}, #{checkTime,jdbcType=VARCHA
R},
#{startTime,jdbcType=VARCHAR}, #{
threshold,jdbcType=DOUBLE}, #{isValid,jdbcType=INTEGE
R},
#{c
omment,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP
},
#{c
heckTime,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER
},
#{sqlContent,jdbcType=LONGVARCHAR})
#{
createTime,jdbcType=TIMESTAMP}, #{
sqlContent,jdbcType=LONGVARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlMonitorSpecial"
>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlMonitorSpecial"
>
insert into tbl_sql_monitor_special
insert into tbl_sql_monitor_special
...
@@ -167,6 +168,9 @@
...
@@ -167,6 +168,9 @@
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
start_time,
start_time,
</if>
</if>
<if
test=
"threshold != null"
>
threshold,
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid,
is_valid,
</if>
</if>
...
@@ -208,6 +212,9 @@
...
@@ -208,6 +212,9 @@
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
#{startTime,jdbcType=VARCHAR},
#{startTime,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
#{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -258,6 +265,9 @@
...
@@ -258,6 +265,9 @@
<if
test=
"record.startTime != null"
>
<if
test=
"record.startTime != null"
>
start_time = #{record.startTime,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.threshold != null"
>
threshold = #{record.threshold,jdbcType=DOUBLE},
</if>
<if
test=
"record.isValid != null"
>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -290,6 +300,7 @@
...
@@ -290,6 +300,7 @@
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -309,6 +320,7 @@
...
@@ -309,6 +320,7 @@
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
time_col_name = #{record.timeColName,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -339,6 +351,9 @@
...
@@ -339,6 +351,9 @@
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
start_time = #{startTime,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
threshold = #{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -368,6 +383,7 @@
...
@@ -368,6 +383,7 @@
time_col_name = #{timeColName,jdbcType=VARCHAR},
time_col_name = #{timeColName,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
@@ -384,6 +400,7 @@
...
@@ -384,6 +400,7 @@
time_col_name = #{timeColName,jdbcType=VARCHAR},
time_col_name = #{timeColName,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
...
src/main/resources/mybatis/mapper/TblSqlMonitorVolatilityMapper.xml
View file @
ff008571
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<result
column=
"tb_name"
property=
"tbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"tb_name"
property=
"tbName"
jdbcType=
"VARCHAR"
/>
<result
column=
"col_name"
property=
"colName"
jdbcType=
"VARCHAR"
/>
<result
column=
"col_name"
property=
"colName"
jdbcType=
"VARCHAR"
/>
<result
column=
"indicator_type"
property=
"indicatorType"
jdbcType=
"VARCHAR"
/>
<result
column=
"indicator_type"
property=
"indicatorType"
jdbcType=
"VARCHAR"
/>
<result
column=
"threshold"
property=
"threshold"
jdbcType=
"DOUBLE"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"is_valid"
property=
"isValid"
jdbcType=
"INTEGER"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"check_time"
property=
"checkTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
<result
column=
"comment"
property=
"comment"
jdbcType=
"VARCHAR"
/>
...
@@ -75,8 +76,8 @@
...
@@ -75,8 +76,8 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, db_name, tb_name, col_name, indicator_type,
is_valid, check_time, comment, parent_id
,
id, db_name, tb_name, col_name, indicator_type,
threshold, is_valid, check_time
,
create_time
c
omment, parent_id, c
reate_time
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
sql_content
sql_content
...
@@ -131,13 +132,15 @@
...
@@ -131,13 +132,15 @@
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlMonitorVolatility"
>
<insert
id=
"insert"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlMonitorVolatility"
>
insert into tbl_sql_monitor_volatility (id, db_name, tb_name,
insert into tbl_sql_monitor_volatility (id, db_name, tb_name,
col_name, indicator_type, is_valid,
col_name, indicator_type, threshold,
check_time, comment, parent_id,
is_valid, check_time, comment,
create_time, sql_content)
parent_id, create_time, sql_content
)
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{dbName,jdbcType=VARCHAR}, #{tbName,jdbcType=VARCHAR},
#{colName,jdbcType=VARCHAR}, #{indicatorType,jdbcType=VARCHAR}, #{isValid,jdbcType=INTEGER},
#{colName,jdbcType=VARCHAR}, #{indicatorType,jdbcType=VARCHAR}, #{threshold,jdbcType=DOUBLE},
#{checkTime,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER}, #{checkTime,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{sqlContent,jdbcType=LONGVARCHAR})
#{parentId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{sqlContent,jdbcType=LONGVARCHAR}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlMonitorVolatility"
>
<insert
id=
"insertSelective"
parameterType=
"com.gmei.data.dqmp.domain.TblSqlMonitorVolatility"
>
insert into tbl_sql_monitor_volatility
insert into tbl_sql_monitor_volatility
...
@@ -157,6 +160,9 @@
...
@@ -157,6 +160,9 @@
<if
test=
"indicatorType != null"
>
<if
test=
"indicatorType != null"
>
indicator_type,
indicator_type,
</if>
</if>
<if
test=
"threshold != null"
>
threshold,
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid,
is_valid,
</if>
</if>
...
@@ -192,6 +198,9 @@
...
@@ -192,6 +198,9 @@
<if
test=
"indicatorType != null"
>
<if
test=
"indicatorType != null"
>
#{indicatorType,jdbcType=VARCHAR},
#{indicatorType,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
#{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=INTEGER},
#{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -236,6 +245,9 @@
...
@@ -236,6 +245,9 @@
<if
test=
"record.indicatorType != null"
>
<if
test=
"record.indicatorType != null"
>
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.threshold != null"
>
threshold = #{record.threshold,jdbcType=DOUBLE},
</if>
<if
test=
"record.isValid != null"
>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -266,6 +278,7 @@
...
@@ -266,6 +278,7 @@
tb_name = #{record.tbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -283,6 +296,7 @@
...
@@ -283,6 +296,7 @@
tb_name = #{record.tbName,jdbcType=VARCHAR},
tb_name = #{record.tbName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
col_name = #{record.colName,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
indicator_type = #{record.indicatorType,jdbcType=VARCHAR},
threshold = #{record.threshold,jdbcType=DOUBLE},
is_valid = #{record.isValid,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=INTEGER},
check_time = #{record.checkTime,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
comment = #{record.comment,jdbcType=VARCHAR},
...
@@ -307,6 +321,9 @@
...
@@ -307,6 +321,9 @@
<if
test=
"indicatorType != null"
>
<if
test=
"indicatorType != null"
>
indicator_type = #{indicatorType,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"threshold != null"
>
threshold = #{threshold,jdbcType=DOUBLE},
</if>
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
</if>
</if>
...
@@ -334,6 +351,7 @@
...
@@ -334,6 +351,7 @@
tb_name = #{tbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
@@ -348,6 +366,7 @@
...
@@ -348,6 +366,7 @@
tb_name = #{tbName,jdbcType=VARCHAR},
tb_name = #{tbName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
col_name = #{colName,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
indicator_type = #{indicatorType,jdbcType=VARCHAR},
threshold = #{threshold,jdbcType=DOUBLE},
is_valid = #{isValid,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
comment = #{comment,jdbcType=VARCHAR},
...
...
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