fix:分析-下发自动火试金任务,查询为空优化
This commit is contained in:
@@ -1607,7 +1607,7 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService {
|
||||
String parameter = source.getParameter();
|
||||
BusinessAssayProjectDataExtendRespVO currentBusinessAssayProjectData = businessAssayProjectDataList.stream().filter(f -> f.getBusinessAssayTaskDataId().equals(businessAssayTaskDataDO.getId()) && f.getSimpleName().equals(project)).findFirst().orElse(null);
|
||||
BusinessAssayParameterDataExtendRespVO currentBusinessAssayParameterData = businessAssayParameterDataList.stream().filter(f -> f.getBusinessAssayProjectDataId().equals(currentBusinessAssayProjectData.getId()) && f.getParameterKey().equals(parameter)).findFirst().orElse(null);
|
||||
if (StringUtils.isBlank(currentBusinessAssayParameterData.getValue())) {
|
||||
if (currentBusinessAssayParameterData!=null && StringUtils.isBlank(currentBusinessAssayParameterData.getValue())) {
|
||||
throw new ServiceException(1_032_050_000, "当前分析任务,存在下发配料必填为空情况。请检查后再下发!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user