Commit e086a3c4 by huangfusuper

时间格式初始化

parent 7fd8913b
...@@ -850,16 +850,16 @@ public class ApiFlowServiceImpl implements ApiFlowService { ...@@ -850,16 +850,16 @@ public class ApiFlowServiceImpl implements ApiFlowService {
StatisticData figFlowStatisticData = new StatisticData(); StatisticData figFlowStatisticData = new StatisticData();
Map<Integer, Long> integerLongMap = flowStatusSnapshoots.stream().collect(Collectors.groupingBy(FlowStatusSnapshoot::getFlowStatus, Collectors.counting())); Map<Integer, Long> integerLongMap = flowStatusSnapshoots.stream().collect(Collectors.groupingBy(FlowStatusSnapshoot::getFlowStatus, Collectors.counting()));
//未运行的 //未运行的
long waitFigFlowCount = integerLongMap.get("1") == null?0:integerLongMap.get("1"); long waitFigFlowCount = integerLongMap.get(1) == null?0:integerLongMap.get(1);
//运行中的 暂停的 //运行中的 暂停的
long runFigFlowCount = integerLongMap.get("2") == null?0:integerLongMap.get("2"); long runFigFlowCount = integerLongMap.get(2) == null?0:integerLongMap.get(2);
long stopFigFlowCount = integerLongMap.get("3") == null?0:integerLongMap.get("3"); long stopFigFlowCount = integerLongMap.get(3) == null?0:integerLongMap.get(3);
long figRunTotal = runFigFlowCount + stopFigFlowCount; long figRunTotal = runFigFlowCount + stopFigFlowCount;
//成功的 //成功的
long successFigFlowCount = integerLongMap.get("4") == null?0:integerLongMap.get("4"); long successFigFlowCount = integerLongMap.get(4) == null?0:integerLongMap.get(4);
//失败的 //失败的
long errorFigFlowCount = integerLongMap.get("5") == null?0:integerLongMap.get("5"); long errorFigFlowCount = integerLongMap.get(5) == null?0:integerLongMap.get(5);
long killFigFlowCount = integerLongMap.get("6") == null?0:integerLongMap.get("6"); long killFigFlowCount = integerLongMap.get(6) == null?0:integerLongMap.get(6);
long figErrorTotal = errorFigFlowCount + killFigFlowCount; long figErrorTotal = errorFigFlowCount + killFigFlowCount;
figFlowStatisticData.setUnstart((int)waitFigFlowCount); figFlowStatisticData.setUnstart((int)waitFigFlowCount);
figFlowStatisticData.setFail((int)figErrorTotal); figFlowStatisticData.setFail((int)figErrorTotal);
......
...@@ -192,6 +192,7 @@ public class ApiNodeServiceImpl implements ApiNodeService { ...@@ -192,6 +192,7 @@ public class ApiNodeServiceImpl implements ApiNodeService {
JavaTask oldJavaTask = javaTaskMapper.findByJobName(javaTask.getJobName()); JavaTask oldJavaTask = javaTaskMapper.findByJobName(javaTask.getJobName());
ValidationUtil.isTrueValidation(null != oldJavaTask, javaTask.getJobName() + "的任务已存在!"); ValidationUtil.isTrueValidation(null != oldJavaTask, javaTask.getJobName() + "的任务已存在!");
javaTask.setCreateTime(new Date()); javaTask.setCreateTime(new Date());
javaTask.setId(null);
javaTaskMapper.insertSelective(javaTask); javaTaskMapper.insertSelective(javaTask);
} }
......
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