处理空白样样品编号为null导致bug

This commit is contained in:
2025-11-10 18:16:48 +08:00
parent 3afd68cbfe
commit d9d63ab587
2 changed files with 5 additions and 5 deletions

View File

@@ -272,7 +272,7 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
for (Map.Entry<String, Object> entry : map.entrySet()) {
// String key = entry.getKey();
Object val = entry.getValue();
if (val instanceof String) {
if (val instanceof String || val == null) {
continue;
}
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
@@ -635,7 +635,7 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
List<BusinessAssayProjectAndParameterRespVO> listBusinessAssayProjectAndParameter = new ArrayList<>();
for (Map.Entry<String, Object> entry : map.entrySet()) {
Object val = entry.getValue();
if (val instanceof String) {
if (val instanceof String || val == null) {
continue;
}
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
@@ -717,7 +717,7 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
List<BusinessAssayProjectAndParameterRespVO> listBusinessAssayProjectAndParameter = new ArrayList<>();
for (Map.Entry<String, Object> entry : map.entrySet()) {
Object val = entry.getValue();
if (val instanceof String) {
if (val instanceof String || val == null) {
continue;
}
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
@@ -796,7 +796,7 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
List<BusinessAssayProjectAndParameterRespVO> listBusinessAssayProjectAndParameter = new ArrayList<>();
for (Map.Entry<String, Object> entry : map.entrySet()) {
Object val = entry.getValue();
if (val instanceof String) {
if (val instanceof String || val == null) {
continue;
}
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);

View File

@@ -124,7 +124,7 @@ public class SampleEntrustServiceImpl implements SampleEntrustService {
}
result.put("sampleEntrustRegistration", jsonArray);
result.put("sampleEntrustDetail", businessSampleEntrustDetailExtendRespVO);
result.put("sampleEntrustDetail", sampleEntrustDetailExtendRespVOList);
return result;
}