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
0ee7d414
Commit
0ee7d414
authored
Mar 09, 2021
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
0f3e8b43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
10 deletions
+29
-10
OfflineSynchController.java
...es/controller/DataIntegration/OfflineSynchController.java
+10
-3
NewSynchTaskReq.java
...ules/controller/DataIntegration/bean/NewSynchTaskReq.java
+12
-1
syncTaskJson.json
src/main/resources/templates/syncTaskJson.json
+7
-6
No files found.
src/main/java/com/jz/dmp/modules/controller/DataIntegration/OfflineSynchController.java
View file @
0ee7d414
...
...
@@ -118,7 +118,14 @@ public class OfflineSynchController {
if
(
StringUtils
.
isEmpty
(
taskId
))
{
return
new
JsonResult
(
ResultCode
.
PARAMS_ERROR
);
}
JsonResult
list
=
offlineSynchService
.
taskRunNowByTaskId
(
taskId
);
JsonResult
list
=
new
JsonResult
();
try
{
list
=
offlineSynchService
.
taskRunNowByTaskId
(
taskId
);
}
catch
(
Exception
e
)
{
list
.
setMessage
(
e
.
getMessage
());
list
.
setCode
(
ResultCode
.
INTERNAL_SERVER_ERROR
);
e
.
printStackTrace
();
}
return
list
;
}
...
...
@@ -307,9 +314,9 @@ public class OfflineSynchController {
if
(
StringUtils
.
isEmpty
(
newSynchTaskReq
.
getTreeName
()))
{
return
JsonResult
.
error
(
ResultCode
.
PARAMS_ERROR
,
"任务名称不能为空"
);
}
/*
if (StringUtils.isEmpty(newSynchTaskReq.getType())) {
if
(
StringUtils
.
isEmpty
(
newSynchTaskReq
.
getType
()))
{
return
JsonResult
.
error
(
ResultCode
.
PARAMS_ERROR
,
"任务类型不能为空"
);
}
*/
}
if
(
StringUtils
.
isEmpty
(
newSynchTaskReq
.
getProjectId
()))
{
return
JsonResult
.
error
(
ResultCode
.
PARAMS_ERROR
,
"目标文件夹不能为空"
);
}
...
...
src/main/java/com/jz/dmp/modules/controller/DataIntegration/bean/NewSynchTaskReq.java
View file @
0ee7d414
...
...
@@ -22,7 +22,7 @@ public class NewSynchTaskReq implements Serializable {
/*
* 任务类型
* */
@ApiModelProperty
(
value
=
"任务类型:01:离线同步,02:实时同步,03:数据开发"
)
@ApiModelProperty
(
value
=
"任务类型:01:离线同步,02:实时同步,03:数据开发
,04:脚本开发,05:SQL开发
"
)
@NotNull
(
message
=
"任务类型不能为空"
)
@NotEmpty
(
message
=
"任务类型不能为空"
)
private
String
type
;
...
...
@@ -48,6 +48,9 @@ public class NewSynchTaskReq implements Serializable {
@NotEmpty
(
message
=
"目标文件夹不能为空"
)
private
String
parentId
;
@ApiModelProperty
(
value
=
"实时任务 同步方式"
)
private
String
syncMode
;
public
String
getProjectId
()
{
return
projectId
;
}
...
...
@@ -79,4 +82,12 @@ public class NewSynchTaskReq implements Serializable {
public
void
setParentId
(
String
parentId
)
{
this
.
parentId
=
parentId
;
}
public
String
getSyncMode
()
{
return
syncMode
;
}
public
void
setSyncMode
(
String
syncMode
)
{
this
.
syncMode
=
syncMode
;
}
}
src/main/resources/templates/syncTaskJson.json
View file @
0ee7d414
...
...
@@ -113,7 +113,7 @@
"sourceCsvDelimiter"
:
""
,
//分隔符
"sourceCsvCharset"
:
""
,
//字符集编码
"sourceCsvHeader"
:
""
,
//是否含有表头
"null
值"
:
""
,
"null
Value"
:
""
,
//null值
"compressedFormat"
:
""
,
//压缩格式
"sourceFtpFile"
:
""
,
//Ftp文件名
"sourceSkipFtpFile"
:
""
,
//没有数据文件是否跳过
...
...
@@ -147,7 +147,7 @@
"targetCsvCharset"
:
""
,
//字符集编码
"fileType"
:
""
,
//文件类型
"datatimeFormat"
:
""
,
//时间格式
"null
值
"
:
""
,
//表示有null值得字符串
"null
Value
"
:
""
,
//表示有null值得字符串
"prefixConflict"
:
""
,
//前缀冲突
"markCompletionFile"
:
""
,
//标记完成文件
"targetCsvHeader"
:
""
,
...
...
@@ -208,12 +208,13 @@
}
]
},
//字段映射关系
"mappingRelation"
:[
{
"sourceFieldId"
:
""
,
"sourceField"
:
""
,
"targetFieldId"
:
""
,
"targetField"
:
""
"sourceFieldId"
:
""
,
//源字段id
"sourceField"
:
""
,
//源字段
"targetFieldId"
:
""
,
//目标字段id
"targetField"
:
""
//目标字段
}
]
},
...
...
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