|
|
@ -2000,10 +2000,6 @@ public class LabelDataProcessorServiceImpl implements LabelDataProcessorService |
|
|
|
|
|
|
|
|
/** HU主视图打印必须明确站点和HU;仅使用IFS数据的模板无需HU条件。 */ |
|
|
/** HU主视图打印必须明确站点和HU;仅使用IFS数据的模板无需HU条件。 */ |
|
|
private void validateHuPrintScope(Map<String, Object> queryParams) { |
|
|
private void validateHuPrintScope(Map<String, Object> queryParams) { |
|
|
Object site = queryParams != null ? queryParams.get("site") : null; |
|
|
|
|
|
if (!(site instanceof String siteValue) || StringUtils.isBlank(siteValue)) { |
|
|
|
|
|
throw new RuntimeException(labelSettingI18n.text("label.error.printSiteRequired")); |
|
|
|
|
|
} |
|
|
|
|
|
Object requestedUnits = queryParams.get("unitIds"); |
|
|
Object requestedUnits = queryParams.get("unitIds"); |
|
|
if (!(requestedUnits instanceof List<?> unitIds) || unitIds.isEmpty() |
|
|
if (!(requestedUnits instanceof List<?> unitIds) || unitIds.isEmpty() |
|
|
|| unitIds.stream().anyMatch(unitId -> !(unitId instanceof String id) || StringUtils.isBlank(id))) { |
|
|
|| unitIds.stream().anyMatch(unitId -> !(unitId instanceof String id) || StringUtils.isBlank(id))) { |
|
|
|