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
4381a078
Commit
4381a078
authored
Jan 14, 2021
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
1c8ca75b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
324 additions
and
207 deletions
+324
-207
DataDevExamplesListDto.java
...controller/dataOperation/bean/DataDevExamplesListDto.java
+6
-2
DataDevExamplesListReq.java
...controller/dataOperation/bean/DataDevExamplesListReq.java
+105
-0
DataDevTaskListDto.java
...les/controller/dataOperation/bean/DataDevTaskListDto.java
+15
-0
DmpDevelopTaskServiceImpl.java
...z/dmp/modules/service/impl/DmpDevelopTaskServiceImpl.java
+190
-197
ExecutionFlowsMapper.xml
src/main/resources/azkabanmapper/ExecutionFlowsMapper.xml
+6
-1
DmpDevelopTaskMapper.xml
src/main/resources/mapper/dmp/DmpDevelopTaskMapper.xml
+2
-7
No files found.
src/main/java/com/jz/dmp/modules/controller/dataOperation/bean/DataDevExamplesListDto.java
View file @
4381a078
...
...
@@ -20,6 +20,12 @@ public class DataDevExamplesListDto {
@ApiModelProperty
(
value
=
"任务ID"
)
private
String
taskId
;
/*
* 执行实例ID
* */
@ApiModelProperty
(
value
=
"执行实例ID"
)
private
String
execId
;
/*
* 基本信息(任务名称)
* */
...
...
@@ -74,8 +80,6 @@ public class DataDevExamplesListDto {
@ApiModelProperty
(
value
=
"结束时间"
)
private
String
endTime
;
private
String
execId
;
private
String
flowData
;
/*
...
...
src/main/java/com/jz/dmp/modules/controller/dataOperation/bean/DataDevExamplesListReq.java
0 → 100644
View file @
4381a078
package
com
.
jz
.
dmp
.
modules
.
controller
.
dataOperation
.
bean
;
import
com.jz.common.page.BasePageBean
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
javax.validation.constraints.NotEmpty
;
import
javax.validation.constraints.NotNull
;
/**
* @ClassName: DataDevExamplesListReq
* @Description: 数据运维-数据开发实例列表请求参数
* @Author:Bellamy
* @Date 2021/01/14
* @Version 1.0
*/
@ApiModel
(
value
=
"数据运维-数据开发实例列表请求参数"
,
description
=
"数据开发实例列表请求参数"
)
public
class
DataDevExamplesListReq
extends
BasePageBean
{
/*
* 项目id
* */
@ApiModelProperty
(
value
=
"项目id"
)
@NotNull
(
message
=
"项目id不能为空"
)
@NotEmpty
(
message
=
"项目ID不能空"
)
private
String
projectId
;
/*
* 任务名称
* */
@ApiModelProperty
(
value
=
"任务名称"
)
private
String
treeName
;
/*
* 业务日期
* */
@ApiModelProperty
(
value
=
"业务日期(时间范围)"
)
private
String
businessTime
;
/*
* 业务日期类型
* */
@ApiModelProperty
(
value
=
"业务日期类型:01 昨天,02 前天,03 全部"
)
private
String
creTimeType
;
/*
* 业务日期
* */
private
String
startTime
;
/*
* 业务日期
* */
private
String
endTime
;
public
String
getProjectId
()
{
return
projectId
;
}
public
void
setProjectId
(
String
projectId
)
{
this
.
projectId
=
projectId
;
}
public
String
getTreeName
()
{
return
treeName
;
}
public
void
setTreeName
(
String
treeName
)
{
this
.
treeName
=
treeName
;
}
public
String
getCreTimeType
()
{
return
creTimeType
;
}
public
void
setCreTimeType
(
String
creTimeType
)
{
this
.
creTimeType
=
creTimeType
;
}
public
String
getStartTime
()
{
return
startTime
;
}
public
void
setStartTime
(
String
startTime
)
{
this
.
startTime
=
startTime
;
}
public
String
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
String
endTime
)
{
this
.
endTime
=
endTime
;
}
public
String
getBusinessTime
()
{
return
businessTime
;
}
public
void
setBusinessTime
(
String
businessTime
)
{
this
.
businessTime
=
businessTime
;
}
}
src/main/java/com/jz/dmp/modules/controller/dataOperation/bean/DataDevTaskListDto.java
View file @
4381a078
...
...
@@ -3,6 +3,7 @@ package com.jz.dmp.modules.controller.dataOperation.bean;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
org.apache.htrace.fasterxml.jackson.annotation.JsonIgnore
;
/**
* @ClassName: DataDevTaskListDto
...
...
@@ -73,6 +74,12 @@ public class DataDevTaskListDto {
* */
@ApiModelProperty
(
value
=
"通知"
)
private
String
notice
;
/*
* 任务类型
* */
@JsonIgnore
@ApiModelProperty
(
value
=
"任务类型"
)
private
String
type
;
public
String
getStatus
()
{
return
status
;
...
...
@@ -153,4 +160,12 @@ public class DataDevTaskListDto {
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
}
src/main/java/com/jz/dmp/modules/service/impl/DmpDevelopTaskServiceImpl.java
View file @
4381a078
This diff is collapsed.
Click to expand it.
src/main/resources/azkabanmapper/ExecutionFlowsMapper.xml
View file @
4381a078
...
...
@@ -182,7 +182,12 @@
execution_flows
where 1=1
<if
test=
"businessTime != null and businessTime != ''"
>
and from_unixtime(submit_time/1000,'%Y-%m-%d') =#{businessTime}
</if>
<if
test=
"taskName != null and taskName != ''"
>
and flow_id like concat('%',#{taskName},'%')
</if>
<if
test=
"taskName != null and taskName != ''"
>
and flow_id in
<foreach
collection=
"taskName"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"startTime != null and startTime != ''"
>
and from_unixtime(submit_time/1000,'%Y-%m-%d %H:%i:%s') >=#{startTime}
</if>
<if
test=
"endTime != null and endTime != ''"
>
#{endTime} >= and from_unixtime(submit_time/1000,'%Y-%m-%d %H:%i:%s')
</if>
</select>
...
...
src/main/resources/mapper/dmp/DmpDevelopTaskMapper.xml
View file @
4381a078
...
...
@@ -190,7 +190,7 @@
select
t1.id as treeId,
t1.name as taskName,
t1.type as taskT
ype
(case when t1.type='01' then '离线同步' when t1.type='02' then '实时同步' when t1.type='03' then '数据开发' end) as t
ype
from
dmp_navigation_tree t1
left join dmp_develop_task t2 on t2.TREE_ID=t1.ID
...
...
@@ -198,12 +198,7 @@
where 1=1 and t1.type='01'
and t1.project_id = #{projectId}
<if
test=
"treeId != null and treeId != ''"
>
and t1.id =#{treeId}
</if>
<if
test=
"taskName != null and taskName != ''"
>
and t1.name in
<foreach
collection=
"taskName"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"taskName != null and taskName != ''"
>
and t1.name like concat('%',#{taskName},'%')
</if>
<if
test=
"taskType != null and taskType!= ''"
>
and t1.type=#{taskType}
</if>
</select>
...
...
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