| | |
| | | int portRow = ports % 8 == 0 ? ports / 8 : ports / 8 + 1; |
| | | //先判断是1简单版还是0复杂版 |
| | | if (insOrderState.getVersion() == 1) { |
| | | if (inspectionItemSubclass.equals("电压驻波比")) { |
| | | if (inspectionItemSubclass.contains("电压驻波比")) { |
| | | aa += 2 * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("同极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("同极化隔离度")) { |
| | | aa += 1 * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("隔离度")) { |
| | | if (inspectionItemSubclass.contains("同列隔离度")) { |
| | | aa += 1 * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("端口间隔离度")) { |
| | | if (inspectionItemSubclass.contains("端口间隔离度")) { |
| | | aa += 1 * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("异极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("异极化隔离度")) { |
| | | aa += 1 * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("互调")) { |
| | | if (inspectionItemSubclass.contains("互调")) { |
| | | aa += (angles + 1) * portRow * often; |
| | | } |
| | | } else { |
| | | if (inspectionItemSubclass.equals("电压驻波比")) { |
| | | if (inspectionItemSubclass.contains("电压驻波比")) { |
| | | aa += (angles + 1) * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("同极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("同极化隔离度")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("同极化隔离度") && insProductResult2.getFrequency().equals(s) |
| | |
| | | int length = result2s.get(0).getPort().split(",").length; |
| | | aa += (angles + 1) * (length % (ports > 8 ? 4 : (ports + 1) / 2) == 0 ? length / (ports > 8 ? 4 : (ports + 1) / 2) : length / (ports > 8 ? 4 : (ports + 1) / 2) + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("隔离度")) { |
| | | if (inspectionItemSubclass.contains("同列隔离度")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("隔离度") && insProductResult2.getFrequency().equals(s) |
| | | .getInspectionItemSubclass().equals("同列隔离度") && insProductResult2.getFrequency().equals(s) |
| | | ).collect(Collectors.toList()); |
| | | int length = result2s.get(0).getPort().split(",").length; |
| | | aa += (angles + 1) * (length % (ports > 8 ? 4 : (ports + 1) / 2) == 0 ? length / (ports > 8 ? 4 : (ports + 1) / 2) : length / (ports > 8 ? 4 : (ports + 1) / 2) + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("端口间隔离度")) { |
| | | if (inspectionItemSubclass.contains("端口间隔离度")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("端口间隔离度") && insProductResult2.getFrequency().equals(s) |
| | |
| | | int length = result2s.get(0).getPort().split(",").length; |
| | | aa += (angles + 1) * (length % (ports > 8 ? 4 : (ports + 1) / 2) == 0 ? length / (ports > 8 ? 4 : (ports + 1) / 2) : length / (ports > 8 ? 4 : (ports + 1) / 2) + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("异极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("异极化隔离度")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("异极化隔离度") && insProductResult2.getFrequency().equals(s) |
| | |
| | | int length = result2s.get(0).getPort().split(",").length; |
| | | aa += (angles + 1) * (length % (ports > 8 ? 4 : (ports + 1) / 2) == 0 ? length / (ports > 8 ? 4 : (ports + 1) / 2) : length / (ports > 8 ? 4 : (ports + 1) / 2) + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("互调")) { |
| | | if (inspectionItemSubclass.contains("互调")) { |
| | | aa += (angles + 1) * portRow * often; |
| | | } |
| | | if (inspectionItemSubclass.equals("最大耦合度")) { |
| | | if (inspectionItemSubclass.contains("最大耦合度")) { |
| | | aa += (angles + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("最小耦合度")) { |
| | | if (inspectionItemSubclass.contains("最小耦合度")) { |
| | | aa += (angles + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("幅度偏差")) { |
| | | if (inspectionItemSubclass.contains("幅度偏差")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("幅度偏差")&& insProductResult2.getFrequency().equals(s) |
| | |
| | | int length = result2s.get(0).getPort().split(",").length; |
| | | aa += (angles + 1) * (length % 8 == 0 ? length / 8 : length / 8 + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("最大相位偏差")) { |
| | | if (inspectionItemSubclass.contains("最大相位偏差")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("最大相位偏差")&& insProductResult2.getFrequency().equals(s) |
| | |
| | | } else { |
| | | if (insOrderState.getVersion() == 1) { |
| | | //非电调版本(简单版) |
| | | if (inspectionItemSubclass.equals("电压驻波比") && i <= 2 * portRow) { |
| | | if (inspectionItemSubclass.contains("电压驻波比") && i <= 2 * portRow) { |
| | | cc = 2 * portRow; |
| | | if (itemSet.add("电压驻波比")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("同极化隔离度") && i > cc && i <= cc + portRow) { |
| | | if (inspectionItemSubclass.contains("同极化隔离度") && i > cc && i <= cc + portRow) { |
| | | dd = cc + portRow; |
| | | if (itemSet.add("同极化隔离度")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("隔离度") && i > (dd == 0 ? cc : dd) && i <= (dd == 0 ? cc : dd) + portRow) { |
| | | if (inspectionItemSubclass.contains("同列隔离度") && i > (dd == 0 ? cc : dd) && i <= (dd == 0 ? cc : dd) + portRow) { |
| | | ee = (dd == 0 ? cc : dd) + portRow; |
| | | if (itemSet.add("隔离度")) { |
| | | if (itemSet.add("同列隔离度")) { |
| | | index.getAndIncrement(); |
| | | } |
| | | List<InsProduct> products = insProducts.stream() |
| | | .filter(insProduct -> insProduct.getInspectionItemSubclass().equals("隔离度")) |
| | | .filter(insProduct -> insProduct.getInspectionItemSubclass().equals("同列隔离度")) |
| | | .collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("端口间隔离度") && i > (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) && i <= (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) + portRow) { |
| | | if (inspectionItemSubclass.contains("端口间隔离度") && i > (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) && i <= (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) + portRow) { |
| | | ff = (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) + portRow; |
| | | if (itemSet.add("端口间隔离度")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("异极化隔离度") && i >(ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff)&& i <= (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) + portRow) { |
| | | if (inspectionItemSubclass.contains("异极化隔离度") && i >(ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff)&& i <= (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) + portRow) { |
| | | gg = (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) + portRow; |
| | | if (itemSet.add("异极化隔离度")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("互调") && i > (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg)) { |
| | | if (inspectionItemSubclass.contains("互调") && i > (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg)) { |
| | | if (itemSet.add("互调")) { |
| | | index.getAndIncrement(); |
| | | } |
| | |
| | | } |
| | | } else { |
| | | //电调版本(复杂版) |
| | | if (inspectionItemSubclass.equals("电压驻波比") && i <= (angles + 1) * portRow) { |
| | | if (inspectionItemSubclass.contains("电压驻波比") && i <= (angles + 1) * portRow) { |
| | | cc = (angles + 1) * portRow; |
| | | if (itemSet.add("电压驻波比")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("同极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("同极化隔离度")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("同极化隔离度")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | } |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("隔离度")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("隔离度")).collect(Collectors.toList()); |
| | | if (inspectionItemSubclass.contains("同列隔离度")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("同列隔离度")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | | .collect(Collectors.toList()); |
| | |
| | | int k = (angles + 1) * portRow2; |
| | | if (i > (dd == 0 ? cc : dd) && i <= (dd == 0 ? cc : dd) + k) { |
| | | ee = (dd == 0 ? cc : dd) + k; |
| | | if (itemSet.add("隔离度")) { |
| | | if (itemSet.add("同列隔离度")) { |
| | | index.getAndIncrement(); |
| | | } |
| | | //隔离度所在行 |
| | |
| | | } |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("端口间隔离度")) { |
| | | if (inspectionItemSubclass.contains("端口间隔离度")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("端口间隔离度")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | } |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("异极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("异极化隔离度")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("异极化隔离度")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | } |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("互调") && i > (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) && i <= ((gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) + (angles + 1) * portRow * often)) { |
| | | if (inspectionItemSubclass.contains("互调") && i > (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) && i <= ((gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) + (angles + 1) * portRow * often)) { |
| | | hh = (int) ((gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) + (angles + 1) * portRow * often); |
| | | if (itemSet.add("互调")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("最大耦合度") && i > (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) && i <= ((hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) + (angles + 1))) { |
| | | if (inspectionItemSubclass.contains("最大耦合度") && i > (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) && i <= ((hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) + (angles + 1))) { |
| | | mm = ((hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) + (angles + 1)); |
| | | if (itemSet.add("最大耦合度")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("最小耦合度") && i > (mm == 0 ? (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) : mm) && i <= ((mm == 0 ? (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) : mm) + (angles + 1))) { |
| | | if (inspectionItemSubclass.contains("最小耦合度") && i > (mm == 0 ? (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) : mm) && i <= ((mm == 0 ? (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) : mm) + (angles + 1))) { |
| | | nn = (mm == 0 ? (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) : mm) + (angles + 1); |
| | | if (itemSet.add("最小耦合度")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("幅度偏差")) { |
| | | if (inspectionItemSubclass.contains("幅度偏差")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("幅度偏差")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | } |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("最大相位偏差")) { |
| | | if (inspectionItemSubclass.contains("最大相位偏差")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("最大相位偏差")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | int portRow = ports % 8 == 0 ? ports / 8 : ports / 8 + 1; |
| | | //先判断是1简单版还是0复杂版 |
| | | if (insOrderState.getVersion() == 1) { |
| | | if (inspectionItemSubclass.equals("电压驻波比")) { |
| | | if (inspectionItemSubclass.contains("电压驻波比")) { |
| | | aa += 2 * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("同极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("同极化隔离度")) { |
| | | aa += 1 * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("隔离度")) { |
| | | if (inspectionItemSubclass.contains("同列隔离度")) { |
| | | aa += 1 * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("端口间隔离度")) { |
| | | if (inspectionItemSubclass.contains("端口间隔离度")) { |
| | | aa += 1 * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("异极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("异极化隔离度")) { |
| | | aa += 1 * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("互调")) { |
| | | if (inspectionItemSubclass.contains("互调")) { |
| | | aa += (angles + 1) * portRow * often; |
| | | } |
| | | } else { |
| | | if (inspectionItemSubclass.equals("电压驻波比")) { |
| | | } |
| | | else { |
| | | if (inspectionItemSubclass.contains("电压驻波比")) { |
| | | aa += (angles + 1) * portRow; |
| | | } |
| | | if (inspectionItemSubclass.equals("同极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("同极化隔离度")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("同极化隔离度") && insProductResult2.getFrequency().equals(s) |
| | |
| | | int length = result2s.get(0).getPort().split(",").length; |
| | | aa += (angles + 1) * (length % (ports > 8 ? 4 : (ports + 1) / 2) == 0 ? length / (ports > 8 ? 4 : (ports + 1) / 2) : length / (ports > 8 ? 4 : (ports + 1) / 2) + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("隔离度")) { |
| | | if (inspectionItemSubclass.contains("同列隔离度")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("隔离度") && insProductResult2.getFrequency().equals(s) |
| | | .getInspectionItemSubclass().equals("同列隔离度") && insProductResult2.getFrequency().equals(s) |
| | | ).collect(Collectors.toList()); |
| | | int length = result2s.get(0).getPort().split(",").length; |
| | | aa += (angles + 1) * (length % (ports > 8 ? 4 : (ports + 1) / 2) == 0 ? length / (ports > 8 ? 4 : (ports + 1) / 2) : length / (ports > 8 ? 4 : (ports + 1) / 2) + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("端口间隔离度")) { |
| | | if (inspectionItemSubclass.contains("端口间隔离度")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("端口间隔离度") && insProductResult2.getFrequency().equals(s) |
| | |
| | | int length = result2s.get(0).getPort().split(",").length; |
| | | aa += (angles + 1) * (length % (ports > 8 ? 4 : (ports + 1) / 2) == 0 ? length / (ports > 8 ? 4 : (ports + 1) / 2) : length / (ports > 8 ? 4 : (ports + 1) / 2) + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("异极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("异极化隔离度")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("异极化隔离度") && insProductResult2.getFrequency().equals(s) |
| | |
| | | int length = result2s.get(0).getPort().split(",").length; |
| | | aa += (angles + 1) * (length % (ports > 8 ? 4 : (ports + 1) / 2) == 0 ? length / (ports > 8 ? 4 : (ports + 1) / 2) : length / (ports > 8 ? 4 : (ports + 1) / 2) + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("互调")) { |
| | | if (inspectionItemSubclass.contains("互调")) { |
| | | aa += (angles + 1) * portRow * often; |
| | | } |
| | | if (inspectionItemSubclass.equals("最大耦合度")) { |
| | | if (inspectionItemSubclass.contains("最大耦合度")) { |
| | | aa += (angles + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("最小耦合度")) { |
| | | if (inspectionItemSubclass.contains("最小耦合度")) { |
| | | aa += (angles + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("幅度偏差")) { |
| | | if (inspectionItemSubclass.contains("幅度偏差")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("幅度偏差")&& insProductResult2.getFrequency().equals(s) |
| | |
| | | int length = result2s.get(0).getPort().split(",").length; |
| | | aa += (angles + 1) * (length % 8 == 0 ? length / 8 : length / 8 + 1); |
| | | } |
| | | if (inspectionItemSubclass.equals("最大相位偏差")) { |
| | | if (inspectionItemSubclass.contains("最大相位偏差")) { |
| | | List<InsProductResult2> result2s = productResult2s.stream().filter(insProductResult2 -> |
| | | insProductMapper.selectById(insProductResult2.getInsProductId()) |
| | | .getInspectionItemSubclass().equals("最大相位偏差")&& insProductResult2.getFrequency().equals(s) |
| | |
| | | } else { |
| | | if (insOrderState.getVersion() == 1) { |
| | | //非电调版本(简单版) |
| | | if (inspectionItemSubclass.equals("电压驻波比") && i <= 2 * portRow) { |
| | | if (inspectionItemSubclass.contains("电压驻波比") && i <= 2 * portRow) { |
| | | cc = 2 * portRow; |
| | | if (itemSet.add("电压驻波比")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("同极化隔离度") && i > cc && i <= cc + portRow) { |
| | | if (inspectionItemSubclass.contains("同极化隔离度") && i > cc && i <= cc + portRow) { |
| | | dd = cc + portRow; |
| | | if (itemSet.add("同极化隔离度")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("隔离度") && i > (dd == 0 ? cc : dd) && i <= (dd == 0 ? cc : dd) + portRow) { |
| | | if (inspectionItemSubclass.contains("同列隔离度") && i > (dd == 0 ? cc : dd) && i <= (dd == 0 ? cc : dd) + portRow) { |
| | | ee = (dd == 0 ? cc : dd) + portRow; |
| | | if (itemSet.add("隔离度")) { |
| | | if (itemSet.add("同列隔离度")) { |
| | | index.getAndIncrement(); |
| | | } |
| | | List<InsProduct> products = insProducts.stream() |
| | | .filter(insProduct -> insProduct.getInspectionItemSubclass().equals("隔离度")) |
| | | .filter(insProduct -> insProduct.getInspectionItemSubclass().equals("同列隔离度")) |
| | | .collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("端口间隔离度") && i > (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) && i <= (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) + portRow) { |
| | | if (inspectionItemSubclass.contains("端口间隔离度") && i > (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) && i <= (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) + portRow) { |
| | | ff = (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) + portRow; |
| | | if (itemSet.add("端口间隔离度")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("异极化隔离度") && i >(ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff)&& i <= (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) + portRow) { |
| | | if (inspectionItemSubclass.contains("异极化隔离度") && i >(ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff)&& i <= (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) + portRow) { |
| | | gg = (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) + portRow; |
| | | if (itemSet.add("异极化隔离度")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("互调") && i > (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg)) { |
| | | if (inspectionItemSubclass.contains("互调") && i > (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg)) { |
| | | if (itemSet.add("互调")) { |
| | | index.getAndIncrement(); |
| | | } |
| | |
| | | } |
| | | } else { |
| | | //电调版本(复杂版) |
| | | if (inspectionItemSubclass.equals("电压驻波比") && i <= (angles + 1) * portRow) { |
| | | if (inspectionItemSubclass.contains("电压驻波比") && i <= (angles + 1) * portRow) { |
| | | cc = (angles + 1) * portRow; |
| | | if (itemSet.add("电压驻波比")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("同极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("同极化隔离度")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("同极化隔离度")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | } |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("隔离度")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("隔离度")).collect(Collectors.toList()); |
| | | if (inspectionItemSubclass.contains("同列隔离度")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("同列隔离度")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | | .collect(Collectors.toList()); |
| | |
| | | int k = (angles + 1) * portRow2; |
| | | if (i > (dd == 0 ? cc : dd) && i <= (dd == 0 ? cc : dd) + k) { |
| | | ee = (dd == 0 ? cc : dd) + k; |
| | | if (itemSet.add("隔离度")) { |
| | | if (itemSet.add("同列隔离度")) { |
| | | index.getAndIncrement(); |
| | | } |
| | | //隔离度所在行 |
| | |
| | | } |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("端口间隔离度")) { |
| | | if (inspectionItemSubclass.contains("端口间隔离度")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("端口间隔离度")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | } |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("异极化隔离度")) { |
| | | if (inspectionItemSubclass.contains("异极化隔离度")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("异极化隔离度")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | } |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("互调") && i > (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) && i <= ((gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) + (angles + 1) * portRow * often)) { |
| | | if (inspectionItemSubclass.contains("互调") && i > (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) && i <= ((gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) + (angles + 1) * portRow * often)) { |
| | | hh = (int) ((gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) + (angles + 1) * portRow * often); |
| | | if (itemSet.add("互调")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("最大耦合度") && i > (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) && i <= ((hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) + (angles + 1))) { |
| | | if (inspectionItemSubclass.contains("最大耦合度") && i > (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) && i <= ((hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) + (angles + 1))) { |
| | | mm = ((hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) + (angles + 1)); |
| | | if (itemSet.add("最大耦合度")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("最小耦合度") && i > (mm == 0 ? (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) : mm) && i <= ((mm == 0 ? (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) : mm) + (angles + 1))) { |
| | | if (inspectionItemSubclass.contains("最小耦合度") && i > (mm == 0 ? (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) : mm) && i <= ((mm == 0 ? (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) : mm) + (angles + 1))) { |
| | | nn = (mm == 0 ? (hh==0?(gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg):hh) : mm) + (angles + 1); |
| | | if (itemSet.add("最小耦合度")) { |
| | | index.getAndIncrement(); |
| | |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("幅度偏差")) { |
| | | if (inspectionItemSubclass.contains("幅度偏差")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("幅度偏差")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |
| | |
| | | } |
| | | } |
| | | } |
| | | if (inspectionItemSubclass.equals("最大相位偏差")) { |
| | | if (inspectionItemSubclass.contains("最大相位偏差")) { |
| | | List<InsProduct> products = insProducts.stream().filter(insProduct -> insProduct.getInspectionItemSubclass().equals("最大相位偏差")).collect(Collectors.toList()); |
| | | List<InsProductResult2> result2s = productResult2s.stream() |
| | | .filter(insProductResult2 -> insProductResult2.getFrequency().equals(s) && insProductResult2.getInsProductId().equals(products.get(0).getId())) |