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
69644f84
Commit
69644f84
authored
Dec 30, 2020
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
be5c85f8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
4 deletions
+39
-4
OfflineSynchController.java
...es/controller/DataIntegration/OfflineSynchController.java
+12
-0
OfflineSynchService.java
.../java/com/jz/dmp/modules/service/OfflineSynchService.java
+2
-0
OfflineSynchServiceImpl.java
.../jz/dmp/modules/service/impl/OfflineSynchServiceImpl.java
+25
-4
No files found.
src/main/java/com/jz/dmp/modules/controller/DataIntegration/OfflineSynchController.java
View file @
69644f84
...
...
@@ -183,4 +183,16 @@ public class OfflineSynchController {
JsonResult
list
=
offlineSynchService
.
addSyncTask
(
syncDmpTaskAddReq
);
return
list
;
}
/**
* 编辑离线任务数据
*
* @return
*/
@ApiOperation
(
value
=
"编辑离线任务数据"
,
notes
=
"编辑离线任务数据"
)
@PostMapping
(
value
=
"/addSyncTask"
)
public
JsonResult
updateSyncTask
(
@RequestBody
@Validated
SyncDmpTaskAddReq
syncDmpTaskAddReq
)
throws
Exception
{
JsonResult
list
=
offlineSynchService
.
updateSyncTask
(
syncDmpTaskAddReq
);
return
list
;
}
}
src/main/java/com/jz/dmp/modules/service/OfflineSynchService.java
View file @
69644f84
...
...
@@ -37,4 +37,6 @@ public interface OfflineSynchService {
PageInfoResponse
<
DvRuleTDto
>
queryJyRuleListPage
(
BasePageBean
basePageBean
,
HttpServletRequest
httpRequest
)
throws
Exception
;
JsonResult
addSyncTask
(
SyncDmpTaskAddReq
syncDmpTaskAddReq
)
throws
Exception
;
JsonResult
updateSyncTask
(
SyncDmpTaskAddReq
syncDmpTaskAddReq
)
throws
Exception
;
}
src/main/java/com/jz/dmp/modules/service/impl/OfflineSynchServiceImpl.java
View file @
69644f84
...
...
@@ -242,6 +242,8 @@ public class OfflineSynchServiceImpl implements OfflineSynchService {
/**
* 任务状态查看,异步调用azkaban服务
* @Author Bellamy
* @Date 2020/12/20
*/
@Override
public
JsonResult
<
List
<
CheckTaskStatusPageDto
>>
queryCheckTaskStatusListPage
(
CheckTaskStatusPageReq
checkTaskStatusPageReq
)
throws
Exception
{
...
...
@@ -428,7 +430,8 @@ public class OfflineSynchServiceImpl implements OfflineSynchService {
/**
* 添加保存dmp数据(包含校验数据)
*
* @Author Bellamy
* @Date 2020/12/20
* @param syncDmpTaskAddReq
* @return
*/
...
...
@@ -445,6 +448,24 @@ public class OfflineSynchServiceImpl implements OfflineSynchService {
return
new
JsonResult
(
ResultCode
.
SUCCESS
,
result
);
}
/*
*编辑离线任务数据
* @Author Bellamy
* @Date 2020/12/30
* */
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
,
propagation
=
Propagation
.
REQUIRES_NEW
)
public
JsonResult
updateSyncTask
(
SyncDmpTaskAddReq
syncDmpTaskAddReq
)
throws
Exception
{
List
<
Map
<
String
,
Object
>>
result
=
new
ArrayList
<>();
Map
<
String
,
Object
>
reqParam
=
syncDmpTaskAddReq
.
getParams
();
if
(
reqParam
.
size
()
>
0
&&
reqParam
!=
null
)
{
JsonResult
jsonResult
=
addSyncing
(
reqParam
);
DmpDevelopTask
data
=
(
DmpDevelopTask
)
jsonResult
.
getData
();
saveRuleInfo
(
result
,
reqParam
,
jsonResult
,
String
.
valueOf
(
data
.
getId
()));
}
return
new
JsonResult
(
ResultCode
.
SUCCESS
,
result
);
}
/**
* 添加保存离线任务dmp数据
*
...
...
@@ -452,7 +473,7 @@ public class OfflineSynchServiceImpl implements OfflineSynchService {
* @return
*/
public
JsonResult
addSyncing
(
Map
<
String
,
Object
>
body
)
throws
Exception
{
Integer
projectId
=
Integer
.
valueOf
(
body
.
get
(
"projectId"
).
toString
())
;
Integer
projectId
=
Integer
.
valueOf
(
body
.
get
(
"projectId"
).
toString
());
Integer
parentId
=
Integer
.
valueOf
(
body
.
get
(
"parentId"
).
toString
());
//父节点ID
String
taskName
=
(
String
)
body
.
get
(
"taskName"
);
//任务名称 业务节点名称 一对一
Integer
treeId
=
Integer
.
valueOf
(
body
.
get
(
"treeId"
).
toString
());
//树节点ID
...
...
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