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
cd4b5211
Commit
cd4b5211
authored
Mar 05, 2021
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据运维修改
parent
5682aa10
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
490 additions
and
406 deletions
+490
-406
ExecutionFlowsMapper.java
...ain/java/com/jz/dmp/azkaban/dao/ExecutionFlowsMapper.java
+4
-0
DmpDevTaskController.java
...odules/controller/dataOperation/DmpDevTaskController.java
+25
-0
DataDevTaskListReq.java
...les/controller/dataOperation/bean/DataDevTaskListReq.java
+11
-0
AuthApiListReq.java
...p/modules/controller/dataService/bean/AuthApiListReq.java
+8
-4
OrganizationManageListQueryReq.java
...ller/dataService/bean/OrganizationManageListQueryReq.java
+3
-0
DmpRealtimeSyncInfoDao.java
...n/java/com/jz/dmp/modules/dao/DmpRealtimeSyncInfoDao.java
+9
-0
DmpDevelopTaskService.java
...ava/com/jz/dmp/modules/service/DmpDevelopTaskService.java
+9
-0
DmpDevelopTaskServiceImpl.java
...z/dmp/modules/service/impl/DmpDevelopTaskServiceImpl.java
+406
-400
application-test.yml
src/main/resources/application-test.yml
+2
-2
DmpRealtimeSyncInfoMapper.xml
src/main/resources/mapper/dmp/DmpRealtimeSyncInfoMapper.xml
+13
-0
No files found.
src/main/java/com/jz/dmp/azkaban/dao/ExecutionFlowsMapper.java
View file @
cd4b5211
...
@@ -37,4 +37,8 @@ public interface ExecutionFlowsMapper {
...
@@ -37,4 +37,8 @@ public interface ExecutionFlowsMapper {
* @since 2021-02-03
* @since 2021-02-03
*/
*/
List
<
Map
>
queryExamplesLogByExecId
(
String
execId
)
throws
Exception
;
List
<
Map
>
queryExamplesLogByExecId
(
String
execId
)
throws
Exception
;
Map
<
String
,
Object
>
queryTaskInstanceStatus
()
throws
Exception
;
List
<
Map
>
queryLastStatus
(
@Param
(
"taskName"
)
String
[]
taskName
)
throws
Exception
;
}
}
src/main/java/com/jz/dmp/modules/controller/dataOperation/DmpDevTaskController.java
View file @
cd4b5211
...
@@ -3,6 +3,7 @@ package com.jz.dmp.modules.controller.dataOperation;
...
@@ -3,6 +3,7 @@ package com.jz.dmp.modules.controller.dataOperation;
import
com.jz.common.constant.JsonResult
;
import
com.jz.common.constant.JsonResult
;
import
com.jz.common.constant.ResultCode
;
import
com.jz.common.constant.ResultCode
;
import
com.jz.common.page.PageInfoResponse
;
import
com.jz.common.page.PageInfoResponse
;
import
com.jz.dmp.modules.controller.DataIntegration.bean.ConflictCheckReq
;
import
com.jz.dmp.modules.controller.DataIntegration.bean.RealTimeSyncListDto
;
import
com.jz.dmp.modules.controller.DataIntegration.bean.RealTimeSyncListDto
;
import
com.jz.dmp.modules.controller.DataIntegration.bean.RealTimeSyncListReq
;
import
com.jz.dmp.modules.controller.DataIntegration.bean.RealTimeSyncListReq
;
import
com.jz.dmp.modules.controller.dataOperation.bean.DataDevTaskListDto
;
import
com.jz.dmp.modules.controller.dataOperation.bean.DataDevTaskListDto
;
...
@@ -74,4 +75,28 @@ public class DmpDevTaskController {
...
@@ -74,4 +75,28 @@ public class DmpDevTaskController {
JsonResult
list
=
dmpDevelopTaskService
.
runTaskByTaskId
(
taskId
);
JsonResult
list
=
dmpDevelopTaskService
.
runTaskByTaskId
(
taskId
);
return
list
;
return
list
;
}
}
/**
* 运维大屏--获取任务状态
*
* @return
* @author Bellamy
* @since 2021-02-22
*/
@ApiOperation
(
value
=
"运维大屏--重点关注任务状态"
,
notes
=
"重点关注"
)
@PostMapping
(
value
=
"/getTaskStatus"
)
public
JsonResult
getTaskStatus
(
@RequestParam
String
projectId
)
throws
Exception
{
if
(
StringUtils
.
isEmpty
(
projectId
))
{
return
new
JsonResult
(
ResultCode
.
PARAMS_ERROR
,
"projectId不能为空!"
);
}
JsonResult
result
=
new
JsonResult
();
try
{
result
=
dmpDevelopTaskService
.
getTaskStatus
(
projectId
);
}
catch
(
Exception
e
)
{
result
.
setMessage
(
e
.
getMessage
());
result
.
setCode
(
ResultCode
.
INTERNAL_SERVER_ERROR
);
e
.
printStackTrace
();
}
return
result
;
}
}
}
src/main/java/com/jz/dmp/modules/controller/dataOperation/bean/DataDevTaskListReq.java
View file @
cd4b5211
...
@@ -44,6 +44,9 @@ public class DataDevTaskListReq extends BasePageBean {
...
@@ -44,6 +44,9 @@ public class DataDevTaskListReq extends BasePageBean {
@ApiModelProperty
(
value
=
"任务类型"
)
@ApiModelProperty
(
value
=
"任务类型"
)
private
String
taskType
;
private
String
taskType
;
@ApiModelProperty
(
value
=
"最后执行状态"
)
private
String
status
;
public
String
getProjectId
()
{
public
String
getProjectId
()
{
return
projectId
;
return
projectId
;
}
}
...
@@ -75,4 +78,12 @@ public class DataDevTaskListReq extends BasePageBean {
...
@@ -75,4 +78,12 @@ public class DataDevTaskListReq extends BasePageBean {
public
void
setTaskType
(
String
taskType
)
{
public
void
setTaskType
(
String
taskType
)
{
this
.
taskType
=
taskType
;
this
.
taskType
=
taskType
;
}
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
}
}
src/main/java/com/jz/dmp/modules/controller/dataService/bean/AuthApiListReq.java
View file @
cd4b5211
...
@@ -18,12 +18,16 @@ import java.io.Serializable;
...
@@ -18,12 +18,16 @@ import java.io.Serializable;
@ApiModel
(
"授权api列表请求对象"
)
@ApiModel
(
"授权api列表请求对象"
)
public
class
AuthApiListReq
extends
BasePageBean
implements
Serializable
{
public
class
AuthApiListReq
extends
BasePageBean
implements
Serializable
{
@ApiModelProperty
(
value
=
"文件夹id"
,
required
=
false
)
@ApiModelProperty
(
value
=
"文件夹id"
,
required
=
false
)
private
Long
fileId
;
private
Long
fileId
;
@ApiModelProperty
(
value
=
"组织编码"
,
required
=
false
)
@ApiModelProperty
(
value
=
"文件来源:,1 API制做,2 组织创建"
,
required
=
false
)
private
String
fileSource
;
@ApiModelProperty
(
value
=
"组织编码"
,
required
=
false
)
private
String
orgCode
;
private
String
orgCode
;
@ApiModelProperty
(
value
=
"组织名称"
,
required
=
false
)
@ApiModelProperty
(
value
=
"组织名称"
,
required
=
false
)
private
String
orgName
;
private
String
orgName
;
@ApiModelProperty
(
value
=
"api名称"
,
required
=
false
)
@ApiModelProperty
(
value
=
"api名称"
,
required
=
false
)
private
String
apiName
;
private
String
apiName
;
@ApiModelProperty
(
value
=
"项目id"
)
private
Long
projectId
;
}
}
src/main/java/com/jz/dmp/modules/controller/dataService/bean/OrganizationManageListQueryReq.java
View file @
cd4b5211
...
@@ -30,4 +30,7 @@ public class OrganizationManageListQueryReq extends BasePageBean implements Seri
...
@@ -30,4 +30,7 @@ public class OrganizationManageListQueryReq extends BasePageBean implements Seri
@ApiModelProperty
(
value
=
"文件夹id"
)
@ApiModelProperty
(
value
=
"文件夹id"
)
private
String
fileId
;
private
String
fileId
;
@ApiModelProperty
(
value
=
"工程id"
)
private
Long
projectId
;
}
}
src/main/java/com/jz/dmp/modules/dao/DmpRealtimeSyncInfoDao.java
View file @
cd4b5211
...
@@ -195,4 +195,13 @@ public interface DmpRealtimeSyncInfoDao {
...
@@ -195,4 +195,13 @@ public interface DmpRealtimeSyncInfoDao {
* @since 2021-02-02
* @since 2021-02-02
*/
*/
int
insertRealtimeHistory
(
DmpRealtimeTaskHistory
taskHistory
)
throws
Exception
;
int
insertRealtimeHistory
(
DmpRealtimeTaskHistory
taskHistory
)
throws
Exception
;
/**
* 获取实时任务状态
*
* @return
* @author Bellamy
* @since 2021-02-02
*/
Map
<
String
,
Object
>
queryTaskStatus
(
String
projectId
)
throws
Exception
;
}
}
\ No newline at end of file
src/main/java/com/jz/dmp/modules/service/DmpDevelopTaskService.java
View file @
cd4b5211
...
@@ -174,4 +174,13 @@ public interface DmpDevelopTaskService {
...
@@ -174,4 +174,13 @@ public interface DmpDevelopTaskService {
* @since 2021-02-03
* @since 2021-02-03
*/
*/
JsonResult
queryExamplesLogByExecId
(
String
execId
)
throws
Exception
;
JsonResult
queryExamplesLogByExecId
(
String
execId
)
throws
Exception
;
/**
* 运维大屏--获取任务状态
*
* @return
* @author Bellamy
* @since 2021-02-22
*/
JsonResult
getTaskStatus
(
String
projectId
)
throws
Exception
;
}
}
\ No newline at end of file
src/main/java/com/jz/dmp/modules/service/impl/DmpDevelopTaskServiceImpl.java
View file @
cd4b5211
This diff is collapsed.
Click to expand it.
src/main/resources/application-test.yml
View file @
cd4b5211
# 测试环境配置
# 测试环境配置
server
:
server
:
port
:
718
1
port
:
718
3
#contextPath: /resource
#contextPath: /resource
management
:
management
:
port
:
5400
1
port
:
5400
3
health
:
health
:
mail
:
mail
:
enabled
:
false
enabled
:
false
...
...
src/main/resources/mapper/dmp/DmpRealtimeSyncInfoMapper.xml
View file @
cd4b5211
...
@@ -546,4 +546,17 @@
...
@@ -546,4 +546,17 @@
#{item}
#{item}
</foreach>
</foreach>
</update>
</update>
<!--实时任务状态-->
<select
id=
"queryTaskStatus"
resultType=
"java.util.Map"
parameterType=
"string"
>
select
sum(case when t1.status='FAILED' then 1 else 0 end) failed,
sum(case when t1.status='RUNNING' then 1 else 0 end) running,
sum(case when t1.status='PAUSED' then 1 else 0 end) paused
from
dmp_realtime_sync_info t1
inner join dmp_navigation_tree t2 on t1.tree_id=t2.id
where 1=1 and t1.data_status='1' and t2.data_status='1'
and t1.project_id =#{projectId}
</select>
</mapper>
</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