|
@@ -156,7 +156,7 @@ public class WorkOrderStatisticsController {
|
|
|
endDate = subMonth(startDate, 1);
|
|
|
break;
|
|
|
case 1:
|
|
|
- maintainerCount = userCenterClient.findMaintainerCount(String.format("%-12",startDate));
|
|
|
+ maintainerCount = userCenterClient.findMaintainerCount(String.format("%s-12",startDate));
|
|
|
startDate = String.format("%s-01-01", startDate);
|
|
|
endDate = subYear(startDate, 1);
|
|
|
break;
|
|
@@ -174,7 +174,7 @@ public class WorkOrderStatisticsController {
|
|
|
} else if (type == 1) {
|
|
|
statistics = workOrderManageService.eventYearStatistics(workOrderManageDto);
|
|
|
}
|
|
|
- DecimalFormat df = new DecimalFormat("#.00");
|
|
|
+ DecimalFormat df = new DecimalFormat("#0.00");
|
|
|
for(Map<String,Object> map : statistics){
|
|
|
double number = 0;
|
|
|
if(maintainerCount > 0){
|
|
@@ -227,7 +227,7 @@ public class WorkOrderStatisticsController {
|
|
|
|
|
|
private List<StatisticsDto> CalculatePercentage(List<StatisticsDto> list) {
|
|
|
double total = 0;
|
|
|
- DecimalFormat df = new DecimalFormat("#.00");
|
|
|
+ DecimalFormat df = new DecimalFormat("#0.00");
|
|
|
for (StatisticsDto statisticsDto : list) {
|
|
|
if (statisticsDto.getStatisticsValue() != null) {
|
|
|
total += statisticsDto.getStatisticsValue();
|