|
@@ -69,13 +69,13 @@ public class QcresultInfoFacade extends QcresultInfoServiceImpl {
|
|
|
|
|
|
Long hospitalId = Long.valueOf(SysUserUtils.getCurrentHospitalID());
|
|
|
//验证病历的存在性
|
|
|
- Integer mrcnt
|
|
|
- = behospitalInfoFacade.count(
|
|
|
+ List<BehospitalInfo> behospitalInfos
|
|
|
+ = behospitalInfoFacade.list(
|
|
|
new QueryWrapper<BehospitalInfo>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("hospital_id", hospitalId)
|
|
|
.eq("behospital_code", qcresultVO.getBehospitalCode()));
|
|
|
- if (mrcnt < 1) {
|
|
|
+ if (behospitalInfos.size() != 1) {
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS, "该医院下该病历号不存在!");
|
|
|
}
|
|
|
//验证是否评估过
|
|
@@ -106,6 +106,7 @@ public class QcresultInfoFacade extends QcresultInfoServiceImpl {
|
|
|
algorithmVO.setQcResultAlgVOList(qcResultAlgVOList);
|
|
|
algorithmVO.setHospitalId(hospitalId);
|
|
|
algorithmVO.setBehospitalCode(qcresultVO.getBehospitalCode());
|
|
|
+ algorithmVO.setIsPlacefile(behospitalInfos.get(0).getIsPlacefile());
|
|
|
AlgorithmDTO algorithmDTO = algorithmFacade.getAlgorithmRes(algorithmVO);
|
|
|
//更新质控评分结果信息
|
|
|
AnalyzeVO analyzeVO = new AnalyzeVO();
|