|
|
@ -624,7 +624,7 @@ public class OperStationMonthReportServiceImpl implements IOperStationMonthRepor |
|
|
|
map.put("inspectReportSum", sumList); |
|
|
|
map.put("inspectReportSum", sumList); |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
fillMapByClass(inspectReportVOList,list); |
|
|
|
fillMapByClass(inspectReport, list); |
|
|
|
} |
|
|
|
} |
|
|
|
map.put("inspectReportVOList", list); |
|
|
|
map.put("inspectReportVOList", list); |
|
|
|
} |
|
|
|
} |
|
|
@ -1222,9 +1222,10 @@ public class OperStationMonthReportServiceImpl implements IOperStationMonthRepor |
|
|
|
int sum = stationReportAllVo.getTicketInfoStatisticVOList().stream().filter(s->"合计".equals(s.getTicketInfoType())).mapToInt(TicketInfoStatisticVO::getTicketInfoNumber).sum(); |
|
|
|
int sum = stationReportAllVo.getTicketInfoStatisticVOList().stream().filter(s->"合计".equals(s.getTicketInfoType())).mapToInt(TicketInfoStatisticVO::getTicketInfoNumber).sum(); |
|
|
|
int qualifiedNum = stationReportAllVo.getTicketInfoStatisticVOList().stream().filter(s->"合计".equals(s.getTicketInfoType())).mapToInt(TicketInfoStatisticVO::getTicketInfoQualifiedNum).sum(); |
|
|
|
int qualifiedNum = stationReportAllVo.getTicketInfoStatisticVOList().stream().filter(s->"合计".equals(s.getTicketInfoType())).mapToInt(TicketInfoStatisticVO::getTicketInfoQualifiedNum).sum(); |
|
|
|
// double ticketInfoProportion = new BigDecimal(qualifiedNum ).divide(sum,2, RoundingMode.HALF_DOWN).doubleValue();
|
|
|
|
// double ticketInfoProportion = new BigDecimal(qualifiedNum ).divide(sum,2, RoundingMode.HALF_DOWN).doubleValue();
|
|
|
|
double ticketInfoProportion = new BigDecimal(qualifiedNum ).divide(new BigDecimal(sum*100),2, RoundingMode.HALF_DOWN).doubleValue(); |
|
|
|
double ticketInfoProportion = sum == 0 ? 0 : new BigDecimal(qualifiedNum).divide(new BigDecimal(sum*100),2, |
|
|
|
|
|
|
|
RoundingMode.HALF_DOWN).doubleValue(); |
|
|
|
String phenomenonConclusion = "5、本月开票%s张,合格率%s;"; |
|
|
|
String phenomenonConclusion = "5、本月开票%s张,合格率%s;"; |
|
|
|
conclusion.append(String.format(phenomenonConclusion,sum,ticketInfoProportion)).append(";\r\n"); |
|
|
|
conclusion.append(String.format(phenomenonConclusion, sum, ticketInfoProportion)).append(";\r\n"); |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
conclusion.append("5、本月未开票;\r\n"); |
|
|
|
conclusion.append("5、本月未开票;\r\n"); |
|
|
|
} |
|
|
|
} |
|
|
|