Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-service
Project
Project
Details
Activity
Releases
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
姚本章
jz-dmp-service
Commits
5f068100
Commit
5f068100
authored
Feb 03, 2021
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
54def7c9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
430 additions
and
18 deletions
+430
-18
DmpRealtimeTaskHistory.java
...java/com/jz/dmp/modules/model/DmpRealtimeTaskHistory.java
+430
-0
DmpRealtimeSyncInfoServiceImpl.java
.../modules/service/impl/DmpRealtimeSyncInfoServiceImpl.java
+0
-18
No files found.
src/main/java/com/jz/dmp/modules/model/DmpRealtimeTaskHistory.java
0 → 100644
View file @
5f068100
package
com
.
jz
.
dmp
.
modules
.
model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 实时同步任务版本记录(DmpRealtimeTaskHistory)实体类
*
* @author Bellamy
* @since 2021-02-02 18:16:43
*/
@ApiModel
(
value
=
"实时同步任务版本记录"
,
description
=
"实时同步任务版本记录"
)
public
class
DmpRealtimeTaskHistory
implements
Serializable
{
private
static
final
long
serialVersionUID
=
862155366631362474L
;
/**
* 实时同步任务版本记录ID
*/
@ApiModelProperty
(
value
=
"实时同步任务版本记录ID"
)
private
Integer
realtimeHistoryId
;
/**
* 实时同步任务id
*/
@ApiModelProperty
(
value
=
"实时同步任务id"
)
private
Integer
realtimeSyncId
;
/**
* treeID
*/
@ApiModelProperty
(
value
=
"treeID"
)
private
Integer
treeId
;
/**
* 项目id
*/
@ApiModelProperty
(
value
=
"项目id"
)
private
Integer
projectId
;
/**
* 源数据库id
*/
@ApiModelProperty
(
value
=
"源数据库id"
)
private
Integer
srcDatasourceId
;
/**
* 目标数据库id
*/
@ApiModelProperty
(
value
=
"目标数据库id"
)
private
Integer
targetDatasourceId
;
/**
* 源数据库表名称
*/
@ApiModelProperty
(
value
=
"源数据库表名称"
)
private
String
srcTableName
;
/**
* 目标数据库表名称
*/
@ApiModelProperty
(
value
=
"目标数据库表名称"
)
private
String
targetTableName
;
@ApiModelProperty
(
value
=
"${column.comment}"
)
private
Integer
type
;
/**
* 名称
*/
@ApiModelProperty
(
value
=
"名称"
)
private
String
connectorJobId
;
@ApiModelProperty
(
value
=
"${column.comment}"
)
private
Object
connectorJsonData
;
@ApiModelProperty
(
value
=
"${column.comment}"
)
private
String
srcTopicName
;
/**
* 脱敏字段
*/
@ApiModelProperty
(
value
=
"脱敏字段"
)
private
String
desensitizationField
;
/**
* 加密算法
*/
@ApiModelProperty
(
value
=
"加密算法"
)
private
String
arithmetic
;
/**
* 主键名称
*/
@ApiModelProperty
(
value
=
"主键名称"
)
private
String
pkName
;
/**
* 源类型名称
*/
@ApiModelProperty
(
value
=
"源类型名称"
)
private
String
sourceTypeName
;
/**
* 目标类型名称
*/
@ApiModelProperty
(
value
=
"目标类型名称"
)
private
String
targetTypeName
;
/**
* 源数据库类型
*/
@ApiModelProperty
(
value
=
"源数据库类型"
)
private
String
srcDatabaseType
;
/**
* 源数据库名称
*/
@ApiModelProperty
(
value
=
"源数据库名称"
)
private
String
srcDatabaseName
;
/**
* 目标数据源URL连接信息
*/
@ApiModelProperty
(
value
=
"目标数据源URL连接信息"
)
private
String
connectorUrl
;
/**
* 目标数据库类型
*/
@ApiModelProperty
(
value
=
"目标数据库类型"
)
private
String
targetDatabaseType
;
/**
* 目标数据库名称
*/
@ApiModelProperty
(
value
=
"目标数据库名称"
)
private
String
targetDatabaseName
;
/**
* 来源数据源
*/
@ApiModelProperty
(
value
=
"来源数据源"
)
private
String
srcDatasourceName
;
/**
* 目标数据源
*/
@ApiModelProperty
(
value
=
"目标数据源"
)
private
String
targetDatasourceName
;
/**
* 存储类型
*/
@ApiModelProperty
(
value
=
"存储类型"
)
private
String
storeType
;
/**
* 版本号
*/
@ApiModelProperty
(
value
=
"版本号"
)
private
String
version
;
/**
* 任务状态
*/
@ApiModelProperty
(
value
=
"任务状态"
)
private
String
status
;
/**
* 创建时间
*/
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
/**
* 创建人
*/
@ApiModelProperty
(
value
=
"创建人"
)
private
String
crePerson
;
/**
* 更新人
*/
@ApiModelProperty
(
value
=
"更新人"
)
private
String
uptPerson
;
/**
* 0 删除,1未删除
*/
@ApiModelProperty
(
value
=
"0 删除,1未删除"
)
private
String
dataStatus
;
public
Integer
getRealtimeHistoryId
()
{
return
realtimeHistoryId
;
}
public
void
setRealtimeHistoryId
(
Integer
realtimeHistoryId
)
{
this
.
realtimeHistoryId
=
realtimeHistoryId
;
}
public
Integer
getRealtimeSyncId
()
{
return
realtimeSyncId
;
}
public
void
setRealtimeSyncId
(
Integer
realtimeSyncId
)
{
this
.
realtimeSyncId
=
realtimeSyncId
;
}
public
Integer
getTreeId
()
{
return
treeId
;
}
public
void
setTreeId
(
Integer
treeId
)
{
this
.
treeId
=
treeId
;
}
public
Integer
getProjectId
()
{
return
projectId
;
}
public
void
setProjectId
(
Integer
projectId
)
{
this
.
projectId
=
projectId
;
}
public
Integer
getSrcDatasourceId
()
{
return
srcDatasourceId
;
}
public
void
setSrcDatasourceId
(
Integer
srcDatasourceId
)
{
this
.
srcDatasourceId
=
srcDatasourceId
;
}
public
Integer
getTargetDatasourceId
()
{
return
targetDatasourceId
;
}
public
void
setTargetDatasourceId
(
Integer
targetDatasourceId
)
{
this
.
targetDatasourceId
=
targetDatasourceId
;
}
public
String
getSrcTableName
()
{
return
srcTableName
;
}
public
void
setSrcTableName
(
String
srcTableName
)
{
this
.
srcTableName
=
srcTableName
;
}
public
String
getTargetTableName
()
{
return
targetTableName
;
}
public
void
setTargetTableName
(
String
targetTableName
)
{
this
.
targetTableName
=
targetTableName
;
}
public
Integer
getType
()
{
return
type
;
}
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
public
String
getConnectorJobId
()
{
return
connectorJobId
;
}
public
void
setConnectorJobId
(
String
connectorJobId
)
{
this
.
connectorJobId
=
connectorJobId
;
}
public
Object
getConnectorJsonData
()
{
return
connectorJsonData
;
}
public
void
setConnectorJsonData
(
Object
connectorJsonData
)
{
this
.
connectorJsonData
=
connectorJsonData
;
}
public
String
getSrcTopicName
()
{
return
srcTopicName
;
}
public
void
setSrcTopicName
(
String
srcTopicName
)
{
this
.
srcTopicName
=
srcTopicName
;
}
public
String
getDesensitizationField
()
{
return
desensitizationField
;
}
public
void
setDesensitizationField
(
String
desensitizationField
)
{
this
.
desensitizationField
=
desensitizationField
;
}
public
String
getArithmetic
()
{
return
arithmetic
;
}
public
void
setArithmetic
(
String
arithmetic
)
{
this
.
arithmetic
=
arithmetic
;
}
public
String
getPkName
()
{
return
pkName
;
}
public
void
setPkName
(
String
pkName
)
{
this
.
pkName
=
pkName
;
}
public
String
getSourceTypeName
()
{
return
sourceTypeName
;
}
public
void
setSourceTypeName
(
String
sourceTypeName
)
{
this
.
sourceTypeName
=
sourceTypeName
;
}
public
String
getTargetTypeName
()
{
return
targetTypeName
;
}
public
void
setTargetTypeName
(
String
targetTypeName
)
{
this
.
targetTypeName
=
targetTypeName
;
}
public
String
getSrcDatabaseType
()
{
return
srcDatabaseType
;
}
public
void
setSrcDatabaseType
(
String
srcDatabaseType
)
{
this
.
srcDatabaseType
=
srcDatabaseType
;
}
public
String
getSrcDatabaseName
()
{
return
srcDatabaseName
;
}
public
void
setSrcDatabaseName
(
String
srcDatabaseName
)
{
this
.
srcDatabaseName
=
srcDatabaseName
;
}
public
String
getConnectorUrl
()
{
return
connectorUrl
;
}
public
void
setConnectorUrl
(
String
connectorUrl
)
{
this
.
connectorUrl
=
connectorUrl
;
}
public
String
getTargetDatabaseType
()
{
return
targetDatabaseType
;
}
public
void
setTargetDatabaseType
(
String
targetDatabaseType
)
{
this
.
targetDatabaseType
=
targetDatabaseType
;
}
public
String
getTargetDatabaseName
()
{
return
targetDatabaseName
;
}
public
void
setTargetDatabaseName
(
String
targetDatabaseName
)
{
this
.
targetDatabaseName
=
targetDatabaseName
;
}
public
String
getSrcDatasourceName
()
{
return
srcDatasourceName
;
}
public
void
setSrcDatasourceName
(
String
srcDatasourceName
)
{
this
.
srcDatasourceName
=
srcDatasourceName
;
}
public
String
getTargetDatasourceName
()
{
return
targetDatasourceName
;
}
public
void
setTargetDatasourceName
(
String
targetDatasourceName
)
{
this
.
targetDatasourceName
=
targetDatasourceName
;
}
public
String
getStoreType
()
{
return
storeType
;
}
public
void
setStoreType
(
String
storeType
)
{
this
.
storeType
=
storeType
;
}
public
String
getVersion
()
{
return
version
;
}
public
void
setVersion
(
String
version
)
{
this
.
version
=
version
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
String
getCrePerson
()
{
return
crePerson
;
}
public
void
setCrePerson
(
String
crePerson
)
{
this
.
crePerson
=
crePerson
;
}
public
String
getUptPerson
()
{
return
uptPerson
;
}
public
void
setUptPerson
(
String
uptPerson
)
{
this
.
uptPerson
=
uptPerson
;
}
public
String
getDataStatus
()
{
return
dataStatus
;
}
public
void
setDataStatus
(
String
dataStatus
)
{
this
.
dataStatus
=
dataStatus
;
}
}
\ No newline at end of file
src/main/java/com/jz/dmp/modules/service/impl/DmpRealtimeSyncInfoServiceImpl.java
View file @
5f068100
...
...
@@ -326,24 +326,6 @@ public class DmpRealtimeSyncInfoServiceImpl implements DmpRealtimeSyncInfoServic
Integer
srcDataSourceId
=
sourceDbInfo
.
getId
();
Integer
targetDataSourceId
=
targetDbInfo
.
getId
();
/* //保存实时同步任务提交结果
DmpRealtimeSyncSubmitResult dmpRealtimeSyncSubmitResult = new DmpRealtimeSyncSubmitResult();
dmpRealtimeSyncSubmitResult.setUuid(uuid);
dmpRealtimeSyncSubmitResult.setStatus(2);
dmpRealtimeSyncSubmitResult.setType(1);
dmpRealtimeSyncSubmitResult.setCreatedTime(new Date());
dmpRealtimeSyncSubmitResult.setSubmitResult(sourceDbInfo.getDbName() + "----->" + sourceDbInfo.getDbName() + " 提交中");
dmpRealtimeSyncHandleCountDao.insertRealtimeSyncSubmitResult(dmpRealtimeSyncSubmitResult);
logger.info("###################添加实时同步任务提交结果 结束{}" + dmpRealtimeSyncSubmitResult.toString() + "############");
DmpRealtimeSyncHandleCount handleCount = dmpRealtimeSyncHandleCountDao.queryById(uuid);
if (handleCount != null) {
handleCount.setToSubmit(handleCount.getToSubmit() - 1);
handleCount.setSubmiting(handleCount.getSubmiting() + 1);
dmpRealtimeSyncHandleCountDao.update(handleCount);
logger.info("###################修改实时同步任务处理数--结束{}" + handleCount.toString() + "############");
}*/
logger
.
info
(
"###################开始--同步数据源到数据源任务################### "
);
Long
realtiemId
=
null
;
//同步任务id
//源数据源到数据源同步connector信息
...
...
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