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
01bc8030
Commit
01bc8030
authored
Dec 23, 2019
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
ff008571
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
14 deletions
+33
-14
DqReferRuleDto.java
src/main/java/com/gmei/data/dqmp/dto/DqReferRuleDto.java
+1
-1
DqSpecialRuleDto.java
src/main/java/com/gmei/data/dqmp/dto/DqSpecialRuleDto.java
+1
-1
DqUnblankRuleDto.java
src/main/java/com/gmei/data/dqmp/dto/DqUnblankRuleDto.java
+1
-1
DqUniqueRuleDto.java
src/main/java/com/gmei/data/dqmp/dto/DqUniqueRuleDto.java
+1
-1
DqVolatilityRuleDto.java
...main/java/com/gmei/data/dqmp/dto/DqVolatilityRuleDto.java
+1
-1
DingdingServiceImpl.java
.../com/gmei/data/dqmp/service/impl/DingdingServiceImpl.java
+2
-0
DqReferRuleVo.java
src/main/java/com/gmei/data/dqmp/vo/DqReferRuleVo.java
+0
-2
DqRuleVo.java
src/main/java/com/gmei/data/dqmp/vo/DqRuleVo.java
+15
-6
index.html
src/main/resources/templates/index.html
+11
-1
No files found.
src/main/java/com/gmei/data/dqmp/dto/DqReferRuleDto.java
View file @
01bc8030
...
...
@@ -29,7 +29,7 @@ public class DqReferRuleDto extends BaseRowModel{
private
String
referColName
;
@ExcelProperty
(
value
=
"参照表过滤条件"
,
index
=
10
)
private
String
referFilters
;
@ExcelProperty
(
value
=
"阈值"
,
index
=
11
)
@ExcelProperty
(
value
=
"
预警
阈值"
,
index
=
11
)
private
Double
threshold
;
@ExcelProperty
(
value
=
"备注"
,
index
=
12
)
private
String
comment
;
...
...
src/main/java/com/gmei/data/dqmp/dto/DqSpecialRuleDto.java
View file @
01bc8030
...
...
@@ -27,7 +27,7 @@ public class DqSpecialRuleDto extends BaseRowModel {
private
String
startTime
;
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
9
)
private
String
filters
;
@ExcelProperty
(
value
=
"阈值"
,
index
=
10
)
@ExcelProperty
(
value
=
"
预警
阈值"
,
index
=
10
)
private
Double
threshold
;
@ExcelProperty
(
value
=
"备注"
,
index
=
11
)
private
String
comment
;
...
...
src/main/java/com/gmei/data/dqmp/dto/DqUnblankRuleDto.java
View file @
01bc8030
...
...
@@ -21,7 +21,7 @@ public class DqUnblankRuleDto extends BaseRowModel{
private
String
colName
;
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
6
)
private
String
filters
;
@ExcelProperty
(
value
=
"阈值"
,
index
=
7
)
@ExcelProperty
(
value
=
"
预警
阈值"
,
index
=
7
)
private
Double
threshold
;
@ExcelProperty
(
value
=
"备注"
,
index
=
8
)
private
String
comment
;
...
...
src/main/java/com/gmei/data/dqmp/dto/DqUniqueRuleDto.java
View file @
01bc8030
...
...
@@ -21,7 +21,7 @@ public class DqUniqueRuleDto extends BaseRowModel{
private
String
colName
;
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
6
)
private
String
filters
;
@ExcelProperty
(
value
=
"阈值"
,
index
=
7
)
@ExcelProperty
(
value
=
"
预警
阈值"
,
index
=
7
)
private
Double
threshold
;
@ExcelProperty
(
value
=
"备注"
,
index
=
8
)
private
String
comment
;
...
...
src/main/java/com/gmei/data/dqmp/dto/DqVolatilityRuleDto.java
View file @
01bc8030
...
...
@@ -23,7 +23,7 @@ public class DqVolatilityRuleDto extends BaseRowModel{
private
String
indicatorType
;
@ExcelProperty
(
value
=
"过滤条件"
,
index
=
7
)
private
String
filters
;
@ExcelProperty
(
value
=
"阈值"
,
index
=
8
)
@ExcelProperty
(
value
=
"
预警
阈值"
,
index
=
8
)
private
Double
threshold
;
@ExcelProperty
(
value
=
"备注"
,
index
=
9
)
private
String
comment
;
...
...
src/main/java/com/gmei/data/dqmp/service/impl/DingdingServiceImpl.java
View file @
01bc8030
...
...
@@ -10,11 +10,13 @@ import org.apache.http.util.EntityUtils;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gmei.data.dqmp.service.DingdingService
;
@Service
public
class
DingdingServiceImpl
implements
DingdingService
{
@Value
(
"${dingding.webhookToken}"
)
...
...
src/main/java/com/gmei/data/dqmp/vo/DqReferRuleVo.java
View file @
01bc8030
package
com
.
gmei
.
data
.
dqmp
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
lombok.Data
;
@Data
...
...
src/main/java/com/gmei/data/dqmp/vo/DqRuleVo.java
View file @
01bc8030
...
...
@@ -13,7 +13,7 @@ public class DqRuleVo extends BaseVo{
private
String
checkTime
;
@NotBlank
(
message
=
"校验规则备注"
)
private
String
comment
;
@NotBlank
(
message
=
"阈值不能为空"
)
@NotBlank
(
message
=
"
预警
阈值不能为空"
)
private
Double
threshold
;
//simple
...
...
@@ -159,6 +159,14 @@ public class DqRuleVo extends BaseVo{
public
void
setReferFilters
(
String
referFilters
)
{
this
.
referFilters
=
referFilters
;
}
public
Double
getThreshold
()
{
return
threshold
;
}
public
void
setThreshold
(
Double
threshold
)
{
this
.
threshold
=
threshold
;
}
public
String
getComment
()
{
return
comment
;
}
...
...
@@ -178,10 +186,11 @@ public class DqRuleVo extends BaseVo{
@Override
public
String
toString
()
{
return
"DqRuleVo [checkType="
+
checkType
+
", isValid="
+
isValid
+
", checkTime="
+
checkTime
+
", comment="
+
comment
+
", dbName="
+
dbName
+
", tbName="
+
tbName
+
", colName="
+
colName
+
", timeColName="
+
timeColName
+
", filters="
+
filters
+
", indicatorType="
+
indicatorType
+
", startTime="
+
startTime
+
", checkDbName="
+
checkDbName
+
", checkTbName="
+
checkTbName
+
", checkColName="
+
checkColName
+
", referDbName="
+
referDbName
+
", referTbName="
+
referTbName
+
", referColName="
+
referColName
+
", checkFilters="
+
checkFilters
+
", referFilters="
+
referFilters
+
"]"
;
+
comment
+
", threshold="
+
threshold
+
", dbName="
+
dbName
+
", tbName="
+
tbName
+
", colName="
+
colName
+
", timeColName="
+
timeColName
+
", filters="
+
filters
+
", indicatorType="
+
indicatorType
+
", startTime="
+
startTime
+
", checkDbName="
+
checkDbName
+
", checkTbName="
+
checkTbName
+
", checkColName="
+
checkColName
+
", referDbName="
+
referDbName
+
", referTbName="
+
referTbName
+
", referColName="
+
referColName
+
", checkFilters="
+
checkFilters
+
", referFilters="
+
referFilters
+
", id="
+
id
+
"]"
;
}
}
src/main/resources/templates/index.html
View file @
01bc8030
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<title>
WT
</title>
<title>
数据质量管理平台
</title>
</head>
<style
type=
"text/css"
>
.table
{
...
...
@@ -54,6 +54,7 @@
<th>
数据表名
</th>
<th>
数据列名
</th>
<th>
过滤条件
</th>
<th>
预警阈值
</th>
<th>
当前状态
</th>
<th>
校验时间
</th>
<th>
备注
</th>
...
...
@@ -66,6 +67,7 @@
<td
th:text=
"${dqRule.tbName}"
></td>
<th
th:text=
"${dqRule.colName}"
></th>
<th
th:text=
"${dqRule.filters}"
></th>
<th
th:text=
"${dqRule.threshold}"
></th>
<th
th:text=
"${dqRule.status}"
></th>
<th
th:text=
"${dqRule.checkTime}"
></th>
<th
th:text=
"${dqRule.comment}"
></th>
...
...
@@ -83,6 +85,7 @@
<th>
数据表名
</th>
<th>
数据列名
</th>
<th>
过滤条件
</th>
<th>
预警阈值
</th>
<th>
当前状态
</th>
<th>
校验时间
</th>
<th>
备注
</th>
...
...
@@ -95,6 +98,7 @@
<td
th:text=
"${dqRule.tbName}"
></td>
<th
th:text=
"${dqRule.colName}"
></th>
<th
th:text=
"${dqRule.filters}"
></th>
<th
th:text=
"${dqRule.threshold}"
></th>
<th
th:text=
"${dqRule.status}"
></th>
<th
th:text=
"${dqRule.checkTime}"
></th>
<th
th:text=
"${dqRule.comment}"
></th>
...
...
@@ -116,6 +120,7 @@
<th>
参照数据表名
</th>
<th>
参照数据列名
</th>
<th>
参照过滤条件
</th>
<th>
预警阈值
</th>
<th>
当前状态
</th>
<th>
校验时间
</th>
<th>
备注
</th>
...
...
@@ -132,6 +137,7 @@
<td
th:text=
"${dqRule.referTbName}"
></td>
<th
th:text=
"${dqRule.referColName}"
></th>
<th
th:text=
"${dqRule.referFilters}"
></th>
<th
th:text=
"${dqRule.threshold}"
></th>
<th
th:text=
"${dqRule.status}"
></th>
<th
th:text=
"${dqRule.checkTime}"
></th>
<th
th:text=
"${dqRule.comment}"
></th>
...
...
@@ -150,6 +156,7 @@
<th>
数据列名
</th>
<th>
指标类型
</th>
<th>
过滤条件
</th>
<th>
预警阈值
</th>
<th>
当前状态
</th>
<th>
校验时间
</th>
<th>
备注
</th>
...
...
@@ -163,6 +170,7 @@
<th
th:text=
"${dqRule.colName}"
></th>
<th
th:text=
"${dqRule.indicatorType}"
></th>
<th
th:text=
"${dqRule.filters}"
></th>
<th
th:text=
"${dqRule.threshold}"
></th>
<th
th:text=
"${dqRule.status}"
></th>
<th
th:text=
"${dqRule.checkTime}"
></th>
<th
th:text=
"${dqRule.comment}"
></th>
...
...
@@ -183,6 +191,7 @@
<th>
指标类型
</th>
<th>
数据校验起始时间
</th>
<th>
过滤条件
</th>
<th>
预警阈值
</th>
<th>
当前状态
</th>
<th>
校验时间
</th>
<th>
备注
</th>
...
...
@@ -198,6 +207,7 @@
<th
th:text=
"${dqRule.indicatorType}"
></th>
<th
th:text=
"${dqRule.startTime}"
></th>
<th
th:text=
"${dqRule.filters}"
></th>
<th
th:text=
"${dqRule.threshold}"
></th>
<th
th:text=
"${dqRule.status}"
></th>
<th
th:text=
"${dqRule.checkTime}"
></th>
<th
th:text=
"${dqRule.comment}"
></th>
...
...
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