Commit e086a3c4 by huangfusuper

时间格式初始化

parent 7fd8913b
......@@ -850,16 +850,16 @@ public class ApiFlowServiceImpl implements ApiFlowService {
StatisticData figFlowStatisticData = new StatisticData();
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 stopFigFlowCount = integerLongMap.get("3") == null?0:integerLongMap.get("3");
long runFigFlowCount = integerLongMap.get(2) == null?0:integerLongMap.get(2);
long stopFigFlowCount = integerLongMap.get(3) == null?0:integerLongMap.get(3);
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 killFigFlowCount = integerLongMap.get("6") == null?0:integerLongMap.get("6");
long errorFigFlowCount = integerLongMap.get(5) == null?0:integerLongMap.get(5);
long killFigFlowCount = integerLongMap.get(6) == null?0:integerLongMap.get(6);
long figErrorTotal = errorFigFlowCount + killFigFlowCount;
figFlowStatisticData.setUnstart((int)waitFigFlowCount);
figFlowStatisticData.setFail((int)figErrorTotal);
......
......@@ -192,6 +192,7 @@ public class ApiNodeServiceImpl implements ApiNodeService {
JavaTask oldJavaTask = javaTaskMapper.findByJobName(javaTask.getJobName());
ValidationUtil.isTrueValidation(null != oldJavaTask, javaTask.getJobName() + "的任务已存在!");
javaTask.setCreateTime(new Date());
javaTask.setId(null);
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