|
@@ -83,7 +83,7 @@ public class QcresultInfoFacade extends QcresultInfoServiceImpl {
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("hospital_id", analyzeVO.getHospitalId())
|
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode()));
|
|
|
- //删除记录
|
|
|
+ //逻辑删除记录
|
|
|
this.update(new UpdateWrapper<QcresultInfo>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("hospital_id", analyzeVO.getHospitalId())
|
|
@@ -92,6 +92,9 @@ public class QcresultInfoFacade extends QcresultInfoServiceImpl {
|
|
|
.set("modifier", useId)
|
|
|
.set("gmt_modified", now));
|
|
|
//新增记录
|
|
|
+ if (null == qcresultInfo){
|
|
|
+ qcresultInfo = new QcresultInfo();
|
|
|
+ }
|
|
|
qcresultInfo.setScoreRes(algorithmDTO.getScore());
|
|
|
qcresultInfo.setLevel(algorithmDTO.getLevel());
|
|
|
qcresultInfo.setGmtCreate(now);
|
|
@@ -100,7 +103,7 @@ public class QcresultInfoFacade extends QcresultInfoServiceImpl {
|
|
|
qcresultInfo.setModifier(useId.toString());
|
|
|
this.save(qcresultInfo);
|
|
|
//更新质控评分明细信息
|
|
|
- //删除记录
|
|
|
+ //逻辑删除记录
|
|
|
qcresultDetailServiceImpl.update(new UpdateWrapper<QcresultDetail>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("hospital_id", analyzeVO.getHospitalId())
|
|
@@ -108,6 +111,7 @@ public class QcresultInfoFacade extends QcresultInfoServiceImpl {
|
|
|
.set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
.set("modifier", useId)
|
|
|
.set("gmt_modified", now));
|
|
|
+ //批量插入新的数据
|
|
|
List<QcresultDetail> qcresultDetailList = new ArrayList<>();
|
|
|
List<QcResultAlgVO> qcResultAlgVORes = algorithmVO.getQcResultAlgVOList();
|
|
|
if (ListUtil.isNotEmpty(qcResultAlgVORes)) {
|