|
@@ -61,7 +61,7 @@ public class WorkOrderStatisticsController {
|
|
|
sameEndDate = subYear(sameStartDate, 1);
|
|
|
|
|
|
chainStartDate = subYear(startDate, -1);
|
|
|
- chainEndDate = subYear(chainEndDate, 1);
|
|
|
+ chainEndDate = subYear(chainStartDate, 1);
|
|
|
} else if (type == 2) {
|
|
|
startDate = String.format("%s-01", startDate);
|
|
|
endDate = String.format("%s-01", endDate);
|
|
@@ -85,7 +85,7 @@ public class WorkOrderStatisticsController {
|
|
|
workOrderManageDto.setEndDate(chainEndDate);
|
|
|
Map<String, Object> chainStatistic = workOrderManageService.workOrderStatistics(workOrderManageDto);
|
|
|
|
|
|
- DecimalFormat df = new DecimalFormat("#.00");
|
|
|
+ DecimalFormat df = new DecimalFormat("#0.00");
|
|
|
|
|
|
if (sameStatistic.get("工单完成率") == null || sameStatistic.get("工单完成率").toString().equals("0")) {
|
|
|
statistics.put("工单完成率同比", 0);
|