Commit bab10141 by guominglei

将统计所有的工作流的执行次数改为统计剩余执行次数不为零的

parent 6db325c2
...@@ -55,7 +55,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper { ...@@ -55,7 +55,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
log.info("没有工作流无需记录---"); log.info("没有工作流无需记录---");
return (60 - LocalDateTime.now().getMinute()) * 60 * 1000L; return (60 - LocalDateTime.now().getMinute()) * 60 * 1000L;
}else { }else {
//获取所有的工作流 //获取所有剩余执行次数不为零的工作流
List<Flow> flowList = flowMapper.findAll(); List<Flow> flowList = flowMapper.findAll();
if (flowList != null && flowList.size() > 0){ if (flowList != null && flowList.size() > 0){
LocalDateTime hourDateTime = localDateTime LocalDateTime hourDateTime = localDateTime
......
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from flow from flow
where remaining_count != 0
</select> </select>
<select id="findAllByCondition" parameterType="com.byit.dto.FlowConditionDto" resultMap="BaseResultMap"> <select id="findAllByCondition" parameterType="com.byit.dto.FlowConditionDto" resultMap="BaseResultMap">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment