样品收样不再判断样品在那个分析室
This commit is contained in:
@@ -235,18 +235,18 @@ public class BusinessSubSampleServiceImpl implements BusinessSubSampleService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BusinessSubSampleExtendRespVO getBySampleCodeAndFlowKey(@Valid BusinessSubSampleReqVO reqVO) {
|
public BusinessSubSampleExtendRespVO getBySampleCodeAndFlowKey(@Valid BusinessSubSampleReqVO reqVO) {
|
||||||
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
|
// LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
|
||||||
BusinessSubSampleExtendRespVO subSample = null;
|
BusinessSubSampleExtendRespVO subSample = null;
|
||||||
if (QmsCommonConstant.FLOW_NODE_TEAM_RECEIVE.equals(reqVO.getSampleFlowNodeKey())) {
|
if (QmsCommonConstant.FLOW_NODE_TEAM_RECEIVE.equals(reqVO.getSampleFlowNodeKey())) {
|
||||||
subSample = businessSubSampleMapper.getBySampleCode(reqVO);
|
subSample = businessSubSampleMapper.getBySampleCode(reqVO);
|
||||||
if (subSample == null) {
|
if (subSample == null) {
|
||||||
return subSample;
|
return subSample;
|
||||||
}
|
}
|
||||||
List<BusinessSubSampleAnalysisGroupDO> businessSubSampleAnalysisGroupList = businessSubSampleAnalysisGroupMapper.selectByBusinessSubSampleId(subSample.getId());
|
// List<BusinessSubSampleAnalysisGroupDO> businessSubSampleAnalysisGroupList = businessSubSampleAnalysisGroupMapper.selectByBusinessSubSampleId(subSample.getId());
|
||||||
BusinessSubSampleAnalysisGroupDO receiveSample = businessSubSampleAnalysisGroupList.stream().filter(f -> "已收样".equals(f.getSampleStatus()) && !f.getAssayDepartmentId().equals(loginUser.getVisitDeptId())).findFirst().orElse(null);
|
// BusinessSubSampleAnalysisGroupDO receiveSample = businessSubSampleAnalysisGroupList.stream().filter(f -> "已收样".equals(f.getSampleStatus()) && !f.getAssayDepartmentId().equals(loginUser.getVisitDeptId())).findFirst().orElse(null);
|
||||||
if (receiveSample != null) {
|
// if (receiveSample != null) {
|
||||||
throw new ServiceException(1_032_100_000, "当前样品在" + receiveSample.getAssayDepartmentName() + ",不允许收样!");
|
// throw new ServiceException(1_032_100_000, "当前样品在" + receiveSample.getAssayDepartmentName() + ",不允许收样!");
|
||||||
}
|
// }
|
||||||
} else {
|
} else {
|
||||||
subSample = businessSubSampleMapper.getBySampleCodeAndFlowKey(reqVO);
|
subSample = businessSubSampleMapper.getBySampleCodeAndFlowKey(reqVO);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user