处理空白样样品编号为null导致bug
This commit is contained in:
@@ -272,7 +272,7 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
|
|||||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||||
// String key = entry.getKey();
|
// String key = entry.getKey();
|
||||||
Object val = entry.getValue();
|
Object val = entry.getValue();
|
||||||
if (val instanceof String) {
|
if (val instanceof String || val == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
|
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
|
||||||
@@ -635,7 +635,7 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
|
|||||||
List<BusinessAssayProjectAndParameterRespVO> listBusinessAssayProjectAndParameter = new ArrayList<>();
|
List<BusinessAssayProjectAndParameterRespVO> listBusinessAssayProjectAndParameter = new ArrayList<>();
|
||||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||||
Object val = entry.getValue();
|
Object val = entry.getValue();
|
||||||
if (val instanceof String) {
|
if (val instanceof String || val == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
|
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
|
||||||
@@ -717,7 +717,7 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
|
|||||||
List<BusinessAssayProjectAndParameterRespVO> listBusinessAssayProjectAndParameter = new ArrayList<>();
|
List<BusinessAssayProjectAndParameterRespVO> listBusinessAssayProjectAndParameter = new ArrayList<>();
|
||||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||||
Object val = entry.getValue();
|
Object val = entry.getValue();
|
||||||
if (val instanceof String) {
|
if (val instanceof String || val == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
|
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
|
||||||
@@ -796,7 +796,7 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
|
|||||||
List<BusinessAssayProjectAndParameterRespVO> listBusinessAssayProjectAndParameter = new ArrayList<>();
|
List<BusinessAssayProjectAndParameterRespVO> listBusinessAssayProjectAndParameter = new ArrayList<>();
|
||||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||||
Object val = entry.getValue();
|
Object val = entry.getValue();
|
||||||
if (val instanceof String) {
|
if (val instanceof String || val == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
|
BusinessAssayProjectAndParameterRespVO businessAssayProjectAndParameter = JSON.parseObject(JSON.toJSONString(val), BusinessAssayProjectAndParameterRespVO.class);
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ public class SampleEntrustServiceImpl implements SampleEntrustService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
result.put("sampleEntrustRegistration", jsonArray);
|
result.put("sampleEntrustRegistration", jsonArray);
|
||||||
result.put("sampleEntrustDetail", businessSampleEntrustDetailExtendRespVO);
|
result.put("sampleEntrustDetail", sampleEntrustDetailExtendRespVOList);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user