|
|
|
@ -705,7 +705,10 @@ public class StandardTicketInfoServiceImpl extends BaseServiceImpl<StandardTicke
|
|
|
|
|
//废票数量
|
|
|
|
|
int ticketInfoInvalidatedNum = typeOperateTicket.getValue().stream().filter(item -> "作废".equals(item.getFlowTaskName())).collect(Collectors.toList()).size(); |
|
|
|
|
//计算合格率
|
|
|
|
|
double ticketInfoProportion = new BigDecimal(ticketInfoQualifiedNum / (double) operateTicketReportStatistic.size() * 100).setScale(2, RoundingMode.HALF_DOWN).doubleValue(); |
|
|
|
|
Double ticketInfoProportion = new BigDecimal(ticketInfoQualifiedNum) |
|
|
|
|
.divide(new BigDecimal(typeOperateTicket.getValue().size()),4, RoundingMode.HALF_UP) |
|
|
|
|
.multiply(new BigDecimal(100)) |
|
|
|
|
.setScale(2, RoundingMode.HALF_UP).doubleValue(); |
|
|
|
|
TicketInfoStatisticVO ticketInfoStatisticVO = TicketInfoStatisticVO.builder().ticketInfoType(type) |
|
|
|
|
.ticketInfoNumber(typeOperateTicket.getValue().size()) |
|
|
|
|
.ticketInfoCompleteNum(ticketInfoCompleteNum) |
|
|
|
|