|
@@ -36,18 +36,17 @@ public class AStrInformedConsentFacade extends StrInformedConsentServiceImpl {
|
|
|
aMedicalRecordContentFacade.executeByView(hisViewVo);
|
|
|
aMedicalRecordFacade.executeByView(hisViewVo,"53");
|
|
|
});
|
|
|
-
|
|
|
StrInformedConsent strInformedConsent = this.getOne(new QueryWrapper<StrInformedConsent>()
|
|
|
.eq("rec_id", s.getRecId())
|
|
|
.eq("hospital_id", s.getHospitalId())
|
|
|
.eq("behospital_code", s.getBehospitalCode()), false);
|
|
|
if (strInformedConsent != null) {
|
|
|
s.setGmtModified(LocalDateTime.now());
|
|
|
+ s.setIsDeleted("N");
|
|
|
QueryWrapper<StrInformedConsent> queryWrapper = Wrappers.query();
|
|
|
queryWrapper.eq("rec_id",s.getRecId())
|
|
|
.eq("hospital_id", s.getHospitalId())
|
|
|
- .eq("behospital_code", s.getBehospitalCode())
|
|
|
- .eq("is_deleted","N");
|
|
|
+ .eq("behospital_code", s.getBehospitalCode());
|
|
|
this.update(s,queryWrapper);
|
|
|
}else {
|
|
|
s.setGmtCreate(LocalDateTime.now());
|