|
@@ -143,26 +143,16 @@ public class QcresultInfoFacade extends QcresultInfoServiceImpl {
|
|
|
useId = Long.valueOf(SysUserUtils.getCurrentPrincipleID());
|
|
|
}
|
|
|
Date now = DateUtil.now();
|
|
|
- //获取旧记录
|
|
|
- QcresultInfo qcresultInfo
|
|
|
- = this.getOne(
|
|
|
- new QueryWrapper<QcresultInfo>()
|
|
|
- .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
- .eq("hospital_id", analyzeVO.getHospitalId())
|
|
|
- .eq("behospital_code", analyzeVO.getBehospitalCode()), false);
|
|
|
- if (null == 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));
|
|
|
- }
|
|
|
+ //逻辑删除记录
|
|
|
+ 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 qcresultInfo = new QcresultInfo();
|
|
|
qcresultInfo.setBehospitalCode(analyzeVO.getBehospitalCode());
|
|
|
qcresultInfo.setHospitalId(analyzeVO.getHospitalId());
|
|
|
qcresultInfo.setScoreRes(algorithmDTO.getScore());
|