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
e0fbe06a
Commit
e0fbe06a
authored
Dec 29, 2020
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e671aabe
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
98 additions
and
101 deletions
+98
-101
TaskListPageDto.java
...ules/controller/DataIntegration/bean/TaskListPageDto.java
+32
-18
TaskListPageReq.java
...ules/controller/DataIntegration/bean/TaskListPageReq.java
+43
-78
OfflineSynchDao.java
src/main/java/com/jz/dmp/modules/dao/OfflineSynchDao.java
+2
-0
OfflineSynchServiceImpl.java
.../jz/dmp/modules/service/impl/OfflineSynchServiceImpl.java
+1
-5
DmpSyncingDatasourceMapper.xml
src/main/resources/mapper/dmp/DmpSyncingDatasourceMapper.xml
+0
-0
DvRuleTMapper.xml
src/main/resources/mapper/dmp/DvRuleTMapper.xml
+0
-0
OfflineSynchMapper.xml
src/main/resources/mapper/dmp/OfflineSynchMapper.xml
+20
-0
No files found.
src/main/java/com/jz/dmp/modules/controller/DataIntegration/bean/TaskListPageDto.java
View file @
e0fbe06a
...
...
@@ -17,81 +17,87 @@ public class TaskListPageDto {
* taskId
* */
@ApiModelProperty
(
value
=
"任务taskId"
)
String
taskId
;
private
String
taskId
;
/*
*
treeI
d
*
节点i
d
* */
@ApiModelProperty
(
value
=
"
treeI
d"
)
String
treeId
;
@ApiModelProperty
(
value
=
"
节点i
d"
)
private
String
treeId
;
/*
*
任务树
名称
*
节点
名称
* */
@ApiModelProperty
(
value
=
"任务树名称"
)
String
treeName
;
@ApiModelProperty
(
value
=
"节点名称"
)
private
String
treeName
;
/*
* 创建人
* */
@ApiModelProperty
(
value
=
"创建人"
)
private
String
createUserId
;
/*
* 同步时间
* */
@ApiModelProperty
(
value
=
"同步时间"
)
String
syncTime
;
private
String
syncTime
;
/*
* 同步状态
* */
@ApiModelProperty
(
value
=
"同步状态"
)
String
syncResult
;
private
String
syncResult
;
/*
*校验状态
* */
@ApiModelProperty
(
value
=
"校验状态"
)
String
chkResult
;
private
String
chkResult
;
/*
* 校验时间
* */
@ApiModelProperty
(
value
=
"校验时间"
)
String
chkTime
;
private
String
chkTime
;
/*
* 创建时间
* */
@ApiModelProperty
(
value
=
"创建时间"
)
String
createTime
;
private
String
createTime
;
/*
* 更改时间
* */
@ApiModelProperty
(
value
=
"更改时间"
)
String
updateTime
;
private
String
updateTime
;
/*
* 源数据库名称
* */
@ApiModelProperty
(
value
=
"源数据库名称"
)
String
sourceDbName
;
private
String
sourceDbName
;
/*
* 源数据库表名称
* */
@ApiModelProperty
(
value
=
"源数据表名称"
)
String
sourceTableName
;
private
String
sourceTableName
;
/*
* 目标数据库名称
* */
@ApiModelProperty
(
value
=
"目标数据库名称"
)
String
targetDbName
;
private
String
targetDbName
;
/*
* 目标数据库表名称
* */
@ApiModelProperty
(
value
=
"目标数据表名称"
)
String
targetTableName
;
private
String
targetTableName
;
/*
* 目标数据库类型
* */
@ApiModelProperty
(
value
=
"目标数据库类型"
)
String
targetDbType
;
private
String
targetDbType
;
public
String
getSyncTime
()
{
return
syncTime
;
...
...
@@ -204,4 +210,12 @@ public class TaskListPageDto {
public
void
setTreeName
(
String
treeName
)
{
this
.
treeName
=
treeName
;
}
public
String
getCreateUserId
()
{
return
createUserId
;
}
public
void
setCreateUserId
(
String
createUserId
)
{
this
.
createUserId
=
createUserId
;
}
}
src/main/java/com/jz/dmp/modules/controller/DataIntegration/bean/TaskListPageReq.java
View file @
e0fbe06a
...
...
@@ -27,41 +27,46 @@ public class TaskListPageReq extends BasePageBean {
private
String
projectId
;
/*
*
父类ID
*
创建人
* */
//@NotNull(message = "父类ID不能空")
@ApiModelProperty
(
value
=
"父类ID"
)
private
String
parentId
;
/*
* 源数据库id
* */
@ApiModelProperty
(
value
=
"源数据库id"
)
private
String
sourceDbId
;
/*
* 目标数据库id
* */
@ApiModelProperty
(
value
=
"目标数据库id"
)
private
String
targetDbId
;
/*
* 目标数据库名称
* */
@ApiModelProperty
(
value
=
"目标数据库名称"
)
private
String
targetDbName
;
/*
* 源数据库表名称
* */
@ApiModelProperty
(
value
=
"源数据库表"
)
private
String
sourceTableName
;
/*
* 目标数据库表名称
* */
@ApiModelProperty
(
value
=
"目标数据库表"
)
private
String
targetTableName
;
@ApiModelProperty
(
value
=
"创建人"
)
private
String
createUserId
;
// /*
// * 父类ID
// * */
// @ApiModelProperty(value = "父类ID")
// private String parentId;
//
// /*
// * 源数据库id
// * */
// @ApiModelProperty(value = "源数据库id")
// private String sourceDbId;
//
// /*
// * 目标数据库id
// * */
// @ApiModelProperty(value = "目标数据库id")
// private String targetDbId;
//
// /*
// * 目标数据库名称
// * */
// @ApiModelProperty(value = "目标数据库名称")
// private String targetDbName;
//
// /*
// * 源数据库表名称
// * */
// @ApiModelProperty(value = "源数据库表")
// private String sourceTableName;
//
// /*
// * 目标数据库表名称
// * */
// @ApiModelProperty(value = "目标数据库表")
// private String targetTableName;
public
String
getProjectId
()
{
return
projectId
;
...
...
@@ -71,51 +76,11 @@ public class TaskListPageReq extends BasePageBean {
this
.
projectId
=
projectId
;
}
public
String
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
String
parentId
)
{
this
.
parentId
=
parentId
;
}
public
String
getSourceDbId
()
{
return
sourceDbId
;
}
public
void
setSourceDbId
(
String
sourceDbId
)
{
this
.
sourceDbId
=
sourceDbId
;
}
public
String
getTargetDbId
()
{
return
targetDbId
;
}
public
void
setTargetDbId
(
String
targetDbId
)
{
this
.
targetDbId
=
targetDbId
;
}
public
String
getTargetDbName
()
{
return
targetDbName
;
}
public
void
setTargetDbName
(
String
targetDbName
)
{
this
.
targetDbName
=
targetDbName
;
}
public
String
getSourceTableName
()
{
return
sourceTableName
;
}
public
void
setSourceTableName
(
String
sourceTableName
)
{
this
.
sourceTableName
=
sourceTableName
;
}
public
String
getTargetTableName
()
{
return
targetTableName
;
public
String
getCreateUserId
()
{
return
createUserId
;
}
public
void
set
TargetTableName
(
String
targetTableName
)
{
this
.
targetTableName
=
targetTableName
;
public
void
set
CreateUserId
(
String
createUserId
)
{
this
.
createUserId
=
createUserId
;
}
}
src/main/java/com/jz/dmp/modules/dao/OfflineSynchDao.java
View file @
e0fbe06a
...
...
@@ -28,4 +28,6 @@ public interface OfflineSynchDao {
Map
<
String
,
Object
>
selectNavigationTreeByTaskId
(
String
taskId
)
throws
Exception
;
List
<
CheckJyRlueStatusDto
>
selectCheckJyStatusInfo
(
@Param
(
"executionId"
)
String
executionId
)
throws
Exception
;
List
<
TaskListPageDto
>
selectOfflineTaskInfo
(
TaskListPageReq
taskListPageReq
)
throws
Exception
;
}
\ No newline at end of file
src/main/java/com/jz/dmp/modules/service/impl/OfflineSynchServiceImpl.java
View file @
e0fbe06a
...
...
@@ -77,12 +77,8 @@ public class OfflineSynchServiceImpl implements OfflineSynchService {
public
PageInfoResponse
<
TaskListPageDto
>
queryTaskListPage
(
TaskListPageReq
taskListPageReq
)
throws
Exception
{
PageInfoResponse
<
TaskListPageDto
>
pageInfoResponse
=
new
PageInfoResponse
<>();
Map
param
=
new
HashMap
();
//param.put("userId", user.getUserId());
//param.put("pageNum", pageBean.getPageNum());
//param.put("pageSize", pageBean.getPageSize());
PageHelper
.
startPage
(
taskListPageReq
.
getPageNum
(),
taskListPageReq
.
getPageSize
());
List
<
TaskListPageDto
>
list
=
offlineSynchDao
.
queryTaskListPage
(
taskListPageReq
);
List
<
TaskListPageDto
>
list
=
offlineSynchDao
.
selectOfflineTaskInfo
(
taskListPageReq
);
PageInfo
<
TaskListPageDto
>
pageInfo
=
new
PageInfo
<>(
list
);
pageInfoResponse
.
setCode
(
ResultCode
.
SUCCESS
);
...
...
src/main/resources/mapper/dmp/DmpSyncingDatasource
Dao
.xml
→
src/main/resources/mapper/dmp/DmpSyncingDatasource
Mapper
.xml
View file @
e0fbe06a
File moved
src/main/resources/mapper/dmp/DvRuleT
Dao
.xml
→
src/main/resources/mapper/dmp/DvRuleT
Mapper
.xml
View file @
e0fbe06a
File moved
src/main/resources/mapper/dmp/OfflineSynchMapper.xml
View file @
e0fbe06a
...
...
@@ -170,4 +170,24 @@
AND checkResult.execution_id = #{executionId,jdbcType=BIGINT}
</if>
</select>
<select
id=
"selectOfflineTaskInfo"
resultType=
"com.jz.dmp.modules.controller.DataIntegration.bean.TaskListPageDto"
parameterType=
"com.jz.dmp.modules.controller.DataIntegration.bean.TaskListPageReq"
>
SELECT
ddt.id AS taskId,
ddt.tree_id AS treeId,
dnt.NAME AS treeName,
dnt.CREATE_USER_ID as createUserId,
DATE_FORMAT( ddt.create_time, '%Y-%m-%d %H:%i:%s' ) AS createTime,
DATE_FORMAT( ddt.update_time, '%Y-%m-%d %H:%i:%s' ) AS updateTime
FROM dmp_develop_task AS ddt
INNER JOIN dmp_navigation_tree AS dnt ON ddt.TREE_ID = dnt.ID
LEFT JOIN dmp_syncing_datasource AS dsd ON instr(script,concat('"targetDbConnection":"',dsd.datasource_name,'"'))>0
WHERE ddt.data_status ='1' AND ddt.TYPE='3' AND ddt.TASK_TYPE ='2'
AND dnt.CATEGORY='2' AND dnt.TYPE ='3'
AND dnt.IS_LEVEL ='1'
AND dnt.PROJECT_ID =31
AND dsd.PROJECT_ID=31
ORDER BY ddt.create_time DESC
</select>
</mapper>
\ No newline at end of file
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