Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
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
liyuan
byit-myth-job
Commits
d691a9a5
Commit
d691a9a5
authored
Apr 09, 2020
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改统计快照的方法
parent
52b5f3fe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
FlowStatusSnapshootMapper.java
.../main/java/com/byit/mapper/FlowStatusSnapshootMapper.java
+10
-0
StatusSnapshootThreadRunHelper.java
...om/byit/thread/helper/StatusSnapshootThreadRunHelper.java
+0
-0
FlowStatusSnapshootMapper.xml
...e/src/main/resources/mapper/FlowStatusSnapshootMapper.xml
+6
-1
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/FlowStatusSnapshootMapper.java
View file @
d691a9a5
...
...
@@ -47,4 +47,13 @@ public interface FlowStatusSnapshootMapper {
* @return
*/
List
<
FlowStatusSnapshoot
>
findByTime
(
@Param
(
"startTime"
)
Long
startTime
,
@Param
(
"endTime"
)
Long
endTime
);
/**
* 根据天、小时、工作流id获取快照信息
* @param date
* @param hour
* @param flowId
* @return
*/
List
<
FlowStatusSnapshoot
>
findByDateAndHourAndFlowId
(
@Param
(
"date"
)
String
date
,
@Param
(
"hour"
)
String
hour
,
@Param
(
"flowId"
)
Integer
flowId
);
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/StatusSnapshootThreadRunHelper.java
View file @
d691a9a5
This diff is collapsed.
Click to expand it.
byit-myth-core/myth-admin-core/src/main/resources/mapper/FlowStatusSnapshootMapper.xml
View file @
d691a9a5
...
...
@@ -205,7 +205,12 @@
where snapshoot_time
>
= #{startTime}
and snapshoot_time
<
= #{endTime}
</select>
<delete
id=
"deleteOutSnapShoot"
parameterType=
"java.lang.Long"
>
<select
id=
"findByDateAndHourAndFlowId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from flow_status_snapshoot
where `day` = #{date} and `hour` = #{hour} and flow_id = #{flowId}
</select>
<delete
id=
"deleteOutSnapShoot"
parameterType=
"java.lang.Long"
>
delete from flow_status_snapshoot
where snapshoot_time = #{outTime,jdbcType=BIGINT}
</delete>
...
...
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