fix(檢驗作業): 調整null異常

refs: #
This commit is contained in:
YiLiLin 2023-08-08 14:35:07 +08:00
parent f9b64309b6
commit 5adbb63599

View File

@ -118,7 +118,9 @@ public class QmsInspecDetailServiceImpl extends ServiceImpl<QmsInspecDetailMappe
List<QmsInspecResultNccodeDTO> resultNcCodeList = new ArrayList<>(); List<QmsInspecResultNccodeDTO> resultNcCodeList = new ArrayList<>();
if (ObjectUtil.isNotNull(result)) { if (ObjectUtil.isNotNull(result)) {
resultValue = result.getResult().stripTrailingZeros().toPlainString(); if (ObjectUtil.isNotNull(result.getResult())) {
resultValue = result.getResult().stripTrailingZeros().toPlainString();
}
resultNcCodeList = qmsInspecResultNccodeService.selectAll(result.getSid()); resultNcCodeList = qmsInspecResultNccodeService.selectAll(result.getSid());
} }
map.put(value, resultValue); map.put(value, resultValue);