battery-business/src/main/java/com/battery/business/report/CompareReportService.java
@@ -241,10 +241,7 @@ // 报表人工值只能归入已冻结的来源电池,不接受电池号或列位置作为身份。 if (!identities.contains(entry.getKey()) || entry.getValue() == null) throw new ServiceException("测试详情来源不属于当前报表"); var fields = entry.getValue().fieldValues(); if (fields != null && fields.entrySet().stream().anyMatch(field -> field.getKey() == null || !field.getKey().matches("(?:battery|special)\\|.{1,100}") || field.getValue() == null || field.getValue().length() > 500)) throw new ServiceException("测试详情字段或填写值无效"); entry.getValue().validate(); } }