|
@@ -230,28 +230,32 @@ public class AlgorithmFacade {
|
|
|
throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "恢复操作条目不能为空!");
|
|
|
}
|
|
|
//操作数据
|
|
|
- if (ListUtil.isNotEmpty(qcResultAlgVOList)) {
|
|
|
- Boolean hasData = false;
|
|
|
- Long optId = algorithmVO.getOptResultAlgVO().getId(); // 操作id
|
|
|
- QcresultDetail qcresultDetail = qcresultDetailFacade.getOne(new QueryWrapper<QcresultDetail>()
|
|
|
- .eq("id",optId));
|
|
|
- if(qcresultDetail!=null)
|
|
|
- {
|
|
|
- QcResultAlgVO qcResultAlgVO = new QcResultAlgVO();
|
|
|
- qcResultAlgVO.setScore(qcresultDetail.getScore());
|
|
|
- qcResultAlgVO.setId(qcresultDetail.getId());
|
|
|
- qcResultAlgVO.setCasesEntryId(qcresultDetail.getCasesEntryId());
|
|
|
- qcResultAlgVO.setCasesId(qcresultDetail.getCasesId());
|
|
|
- qcResultAlgVO.setMsg(qcresultDetail.getMsg());
|
|
|
- qcResultAlgVO.setIsReject(qcresultDetail.getIsReject());
|
|
|
- qcResultAlgVO.setCasesScore(qcresultDetail.getCasesScore());
|
|
|
+ Boolean hasData = false;
|
|
|
+ Long optId = algorithmVO.getOptResultAlgVO().getId(); // 操作id
|
|
|
+ QcresultDetail qcresultDetail = qcresultDetailFacade.getOne(new QueryWrapper<QcresultDetail>()
|
|
|
+ .eq("id",optId));
|
|
|
+ if(qcresultDetail!=null)
|
|
|
+ {
|
|
|
+ QcResultAlgVO qcResultAlgVO = new QcResultAlgVO();
|
|
|
+ qcResultAlgVO.setScore(qcresultDetail.getScore());
|
|
|
+ qcResultAlgVO.setId(qcresultDetail.getId());
|
|
|
+ qcResultAlgVO.setCasesEntryId(qcresultDetail.getCasesEntryId());
|
|
|
+ qcResultAlgVO.setCasesId(qcresultDetail.getCasesId());
|
|
|
+ qcResultAlgVO.setMsg(qcresultDetail.getMsg());
|
|
|
+ qcResultAlgVO.setIsReject(qcresultDetail.getIsReject());
|
|
|
+ qcResultAlgVO.setCasesScore(qcresultDetail.getCasesScore());
|
|
|
+ if (ListUtil.isNotEmpty(qcResultAlgVOList)) {
|
|
|
qcResultAlgVOList.add(qcResultAlgVO);
|
|
|
- hasData = true;
|
|
|
+ }else{
|
|
|
+ qcResultAlgVOList = new ArrayList<>();
|
|
|
+ qcResultAlgVOList.add(qcResultAlgVO);
|
|
|
+ algorithmVO.setQcResultAlgVOList(qcResultAlgVOList);
|
|
|
}
|
|
|
+ hasData = true;
|
|
|
+ }
|
|
|
if (!hasData) {
|
|
|
throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "恢复的条目不存在!");
|
|
|
}
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
//修改
|