소스 검색

app改名

tangxiangan 8 달 전
부모
커밋
11b7ace283
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pdf-tech-core/src/main/java/cn/kdan/pdf/tech/core/service/impl/VppDashboardServiceImpl.java

+ 1 - 1
pdf-tech-core/src/main/java/cn/kdan/pdf/tech/core/service/impl/VppDashboardServiceImpl.java

@@ -52,7 +52,7 @@ public class VppDashboardServiceImpl implements VppDashboardService {
         int assignedLicenses = (int) vppLicenseCodeList.stream().filter(c -> c.getValidFlag().equals(LicenseCodeStatusEnum.ASSIGNED.code()) || c.getValidFlag().equals(LicenseCodeStatusEnum.ACTIVE.code())).count();
         // 可分配
         int availableLicenses = (int) vppLicenseCodeList.stream().filter(c -> c.getValidFlag().equals(LicenseCodeStatusEnum.UNASSIGNED.code()) || c.getValidFlag().equals(LicenseCodeStatusEnum.CANCELED.code())).count();
-        List<LicenseCodes> collect = vppLicenseCodeList.stream().filter(c -> !c.getValidFlag().equals(LicenseCodeStatusEnum.Refunded.code())).collect(Collectors.toList());
+        List<LicenseCodes> collect = vppLicenseCodeList.stream().filter(c -> !c.getValidFlag().equals(LicenseCodeStatusEnum.Refunded.code())&& !c.getValidFlag().equals(LicenseCodeStatusEnum.EXPIRED.code())).collect(Collectors.toList());
         // 已激活
         int activatedDevices = collect.stream().mapToInt(o -> Objects.isNull(o.getUsedTimes()) ? 0 : o.getUsedTimes()).sum();