|
@@ -84,7 +84,7 @@ public class BackgroundConvertDataServiceImpl extends ServiceImpl<BackgroundConv
|
|
.fileTotal(fileTotal)
|
|
.fileTotal(fileTotal)
|
|
.successfulRequest(successfulRequest)
|
|
.successfulRequest(successfulRequest)
|
|
.errorRequest(errorRequest)
|
|
.errorRequest(errorRequest)
|
|
- .errorRatio(errorRatio)
|
|
|
|
|
|
+ .errorRatio(errorRatio.toString() + "%")
|
|
.averageProcessTime(averageProcessTime + "ms")
|
|
.averageProcessTime(averageProcessTime + "ms")
|
|
.build();
|
|
.build();
|
|
}
|
|
}
|
|
@@ -101,7 +101,7 @@ public class BackgroundConvertDataServiceImpl extends ServiceImpl<BackgroundConv
|
|
.fileTotal(fileTotal)
|
|
.fileTotal(fileTotal)
|
|
.successfulRequest(successfulRequest)
|
|
.successfulRequest(successfulRequest)
|
|
.errorRequest(errorRequest)
|
|
.errorRequest(errorRequest)
|
|
- .errorRatio(new BigDecimal(String.format("%.2f", errorRequest * 100.00 / fileTotal)))
|
|
|
|
|
|
+ .errorRatio(new BigDecimal(String.format("%.2f", errorRequest * 100.00 / fileTotal)).toString() + "%")
|
|
.averageProcessTime(TimeConvert(averageProcessTime1, null))
|
|
.averageProcessTime(TimeConvert(averageProcessTime1, null))
|
|
.build();
|
|
.build();
|
|
}
|
|
}
|
|
@@ -218,6 +218,7 @@ public class BackgroundConvertDataServiceImpl extends ServiceImpl<BackgroundConv
|
|
default:
|
|
default:
|
|
throw new CommonException(ResponseEnum.SYSTEM_ERROR);
|
|
throw new CommonException(ResponseEnum.SYSTEM_ERROR);
|
|
}
|
|
}
|
|
|
|
+ Collections.reverse(dataDTOS);
|
|
return dataDTOS;
|
|
return dataDTOS;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -303,6 +304,7 @@ public class BackgroundConvertDataServiceImpl extends ServiceImpl<BackgroundConv
|
|
default:
|
|
default:
|
|
throw new CommonException(ResponseEnum.SYSTEM_ERROR);
|
|
throw new CommonException(ResponseEnum.SYSTEM_ERROR);
|
|
}
|
|
}
|
|
|
|
+ Collections.reverse(dataDTOS);
|
|
return dataDTOS;
|
|
return dataDTOS;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -322,6 +324,7 @@ public class BackgroundConvertDataServiceImpl extends ServiceImpl<BackgroundConv
|
|
/ fileTotal)).toString() + "%")
|
|
/ fileTotal)).toString() + "%")
|
|
.build());
|
|
.build());
|
|
}
|
|
}
|
|
|
|
+ Collections.reverse(dataDTOS);
|
|
return dataDTOS;
|
|
return dataDTOS;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -459,6 +462,7 @@ public class BackgroundConvertDataServiceImpl extends ServiceImpl<BackgroundConv
|
|
dataDTO.setYData(dataDTO.getYData() + "ms");
|
|
dataDTO.setYData(dataDTO.getYData() + "ms");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ Collections.reverse(dataDTOS);
|
|
return dataDTOS;
|
|
return dataDTOS;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -645,4 +649,14 @@ public class BackgroundConvertDataServiceImpl extends ServiceImpl<BackgroundConv
|
|
return dateTime1.compareTo(dateTime2) >= 0;
|
|
return dateTime1.compareTo(dateTime2) >= 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ public static void main(String[] args) {
|
|
|
|
+ List<Integer> list= new ArrayList<>();
|
|
|
|
+ list.add(1);
|
|
|
|
+ list.add(5);
|
|
|
|
+ list.add(3);
|
|
|
|
+ System.out.println(list.toString());
|
|
|
|
+ Collections.reverse(list);
|
|
|
|
+ System.out.println(list.toString());
|
|
|
|
+ }
|
|
}
|
|
}
|