|
@@ -68,11 +68,11 @@ public class QcresultInfoFacade extends QcresultInfoServiceImpl {
|
|
AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
analyzeVO.setHospitalId(qcresultVO.getHospitalId());
|
|
analyzeVO.setHospitalId(qcresultVO.getHospitalId());
|
|
analyzeVO.setBehospitalCode(qcresultVO.getBehospitalCode());
|
|
analyzeVO.setBehospitalCode(qcresultVO.getBehospitalCode());
|
|
- this.saveQcResult(algorithmDTO, algorithmVO, analyzeVO);
|
|
|
|
|
|
+ this.saveQcResult(algorithmDTO, algorithmVO, analyzeVO,null);
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
- public Boolean saveQcResult(AlgorithmDTO algorithmDTO, AlgorithmVO algorithmVO, AnalyzeVO analyzeVO) {
|
|
|
|
|
|
+ public Boolean saveQcResult(AlgorithmDTO algorithmDTO, AlgorithmVO algorithmVO, AnalyzeVO analyzeVO, String pageData) {
|
|
//更新质控评分结果信息
|
|
//更新质控评分结果信息
|
|
Long useId = Long.valueOf(SysUserUtils.getCurrentPrincipleID());
|
|
Long useId = Long.valueOf(SysUserUtils.getCurrentPrincipleID());
|
|
Date now = DateUtil.now();
|
|
Date now = DateUtil.now();
|
|
@@ -83,20 +83,31 @@ public class QcresultInfoFacade extends QcresultInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", analyzeVO.getHospitalId())
|
|
.eq("hospital_id", analyzeVO.getHospitalId())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode()));
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode()));
|
|
- //逻辑删除记录
|
|
|
|
- this.update(new UpdateWrapper<QcresultInfo>()
|
|
|
|
- .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
- .eq("hospital_id", analyzeVO.getHospitalId())
|
|
|
|
- .eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
|
|
- .set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
- .set("modifier", useId)
|
|
|
|
- .set("gmt_modified", now));
|
|
|
|
- //新增记录
|
|
|
|
- if (null == qcresultInfo){
|
|
|
|
|
|
+ if (null == qcresultInfo) {
|
|
qcresultInfo = new QcresultInfo();
|
|
qcresultInfo = new QcresultInfo();
|
|
|
|
+ } else {
|
|
|
|
+ //逻辑删除记录
|
|
|
|
+ this.update(new UpdateWrapper<QcresultInfo>()
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("hospital_id", analyzeVO.getHospitalId())
|
|
|
|
+ .eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
|
|
+ .set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
+ .set("modifier", useId)
|
|
|
|
+ .set("gmt_modified", now));
|
|
}
|
|
}
|
|
|
|
+ //新增记录
|
|
|
|
+ qcresultInfo.setBehospitalCode(analyzeVO.getBehospitalCode());
|
|
|
|
+ qcresultInfo.setHospitalId(analyzeVO.getHospitalId());
|
|
qcresultInfo.setScoreRes(algorithmDTO.getScore());
|
|
qcresultInfo.setScoreRes(algorithmDTO.getScore());
|
|
qcresultInfo.setLevel(algorithmDTO.getLevel());
|
|
qcresultInfo.setLevel(algorithmDTO.getLevel());
|
|
|
|
+ if (algorithmVO.getType().equals(0)) {
|
|
|
|
+ qcresultInfo.setGradeType(1);
|
|
|
|
+ } else {
|
|
|
|
+ qcresultInfo.setGradeType(2);
|
|
|
|
+ }
|
|
|
|
+ if (StringUtil.isNotBlank(pageData)){
|
|
|
|
+ qcresultInfo.setPageData(pageData);
|
|
|
|
+ }
|
|
qcresultInfo.setGmtCreate(now);
|
|
qcresultInfo.setGmtCreate(now);
|
|
qcresultInfo.setCreator(useId.toString());
|
|
qcresultInfo.setCreator(useId.toString());
|
|
qcresultInfo.setGmtModified(now);
|
|
qcresultInfo.setGmtModified(now);
|