|
|
@ -491,10 +491,12 @@ public class AreaMonthReportServiceImpl implements IAreaMonthReportService { |
|
|
|
ticketChartCell.setTicketName(value.getFileName()); |
|
|
|
ticketChartCell.setTicketName(value.getFileName()); |
|
|
|
if (value.getTicketType() == 2) { |
|
|
|
if (value.getTicketType() == 2) { |
|
|
|
List<WorkTicketInfoEntity> yearTicketCollect = Optional.ofNullable(yearTicket.getData()).orElse(new ArrayList<>()).stream() |
|
|
|
List<WorkTicketInfoEntity> yearTicketCollect = Optional.ofNullable(yearTicket.getData()).orElse(new ArrayList<>()).stream() |
|
|
|
|
|
|
|
.filter(s -> s.getSignageCode() != null) |
|
|
|
.filter(s -> stationId.equals(s.getSignageCode())) |
|
|
|
.filter(s -> stationId.equals(s.getSignageCode())) |
|
|
|
.filter(s -> s.getType().equals(value.getType())).collect(Collectors.toList()); |
|
|
|
.filter(s -> s.getType().equals(value.getType())).collect(Collectors.toList()); |
|
|
|
List<WorkTicketInfoEntity> monthTicketCollect = Optional.ofNullable(monthTicket.getData()).orElse(new ArrayList<>()).stream() |
|
|
|
List<WorkTicketInfoEntity> monthTicketCollect = Optional.ofNullable(monthTicket.getData()).orElse(new ArrayList<>()).stream() |
|
|
|
.filter(s -> s.getSignageCode().equals(stationId)) |
|
|
|
.filter(s -> s.getSignageCode() != null) |
|
|
|
|
|
|
|
.filter(s -> stationId.equals(s.getSignageCode())) |
|
|
|
.filter(s -> s.getType().equals(value.getType())).collect(Collectors.toList()); |
|
|
|
.filter(s -> s.getType().equals(value.getType())).collect(Collectors.toList()); |
|
|
|
if (CollectionUtils.isNotEmpty(yearTicketCollect)) { |
|
|
|
if (CollectionUtils.isNotEmpty(yearTicketCollect)) { |
|
|
|
//年合格率和数量
|
|
|
|
//年合格率和数量
|
|
|
@ -521,10 +523,12 @@ public class AreaMonthReportServiceImpl implements IAreaMonthReportService { |
|
|
|
} |
|
|
|
} |
|
|
|
if (value.getTicketType() == 1) { |
|
|
|
if (value.getTicketType() == 1) { |
|
|
|
List<StandardTicketInfoEntity> yearOperateCollect = Optional.ofNullable(yearOperateTicket.getData()).orElse(new ArrayList<>()).stream() |
|
|
|
List<StandardTicketInfoEntity> yearOperateCollect = Optional.ofNullable(yearOperateTicket.getData()).orElse(new ArrayList<>()).stream() |
|
|
|
|
|
|
|
.filter(s -> s.getSignageCode() != null) |
|
|
|
.filter(s -> stationId.equals(s.getSignageCode())) |
|
|
|
.filter(s -> stationId.equals(s.getSignageCode())) |
|
|
|
.filter(s -> s.getTicketType().equals(value.getType())).collect(Collectors.toList()); |
|
|
|
.filter(s -> s.getTicketType().equals(value.getType())).collect(Collectors.toList()); |
|
|
|
List<StandardTicketInfoEntity> monthOperateCollect = Optional.ofNullable(monthOperateTicket.getData()).orElse(new ArrayList<>()).stream() |
|
|
|
List<StandardTicketInfoEntity> monthOperateCollect = Optional.ofNullable(monthOperateTicket.getData()).orElse(new ArrayList<>()).stream() |
|
|
|
.filter(s -> s.getSignageCode().equals(stationId)) |
|
|
|
.filter(s -> s.getSignageCode() != null) |
|
|
|
|
|
|
|
.filter(s -> stationId.equals(s.getSignageCode())) |
|
|
|
.filter(s -> s.getTicketType().equals(value.getType())).collect(Collectors.toList()); |
|
|
|
.filter(s -> s.getTicketType().equals(value.getType())).collect(Collectors.toList()); |
|
|
|
if (CollectionUtils.isNotEmpty(yearOperateCollect)) { |
|
|
|
if (CollectionUtils.isNotEmpty(yearOperateCollect)) { |
|
|
|
//年合格率和数量
|
|
|
|
//年合格率和数量
|
|
|
@ -590,8 +594,8 @@ public class AreaMonthReportServiceImpl implements IAreaMonthReportService { |
|
|
|
ticketMap2.put("info", "合格率"); |
|
|
|
ticketMap2.put("info", "合格率"); |
|
|
|
ticketMap.put("ticketMon" + ticketType, String.valueOf(chartCell.getTicketMon())); |
|
|
|
ticketMap.put("ticketMon" + ticketType, String.valueOf(chartCell.getTicketMon())); |
|
|
|
ticketMap.put("ticketYear" + ticketType, String.valueOf(chartCell.getTicketYear())); |
|
|
|
ticketMap.put("ticketYear" + ticketType, String.valueOf(chartCell.getTicketYear())); |
|
|
|
ticketMap2.put("ticketMon" + ticketType, chartCell.getTicketMonPerc()* 100 + "%"); |
|
|
|
ticketMap2.put("ticketMon" + ticketType, new BigDecimal(chartCell.getTicketMonPerc()).multiply(new BigDecimal(100)).setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue() + "%"); |
|
|
|
ticketMap2.put("ticketYear" + ticketType, chartCell.getTicketYeaPercr()* 100 + "%"); |
|
|
|
ticketMap2.put("ticketYear" + ticketType,new BigDecimal(chartCell.getTicketYeaPercr()).multiply(new BigDecimal(100)).setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue()+ "%"); |
|
|
|
} |
|
|
|
} |
|
|
|
ticketListRes.add(ticketMap); |
|
|
|
ticketListRes.add(ticketMap); |
|
|
|
ticketListRes.add(ticketMap2); |
|
|
|
ticketListRes.add(ticketMap2); |
|
|
|