|
@@ -2,6 +2,7 @@ package com.diagbot.facade.data;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.dto.data.ABehospitalInfoDTO;
|
|
|
import com.diagbot.entity.*;
|
|
@@ -187,4 +188,23 @@ public class ABehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
}
|
|
|
return qcTypeId;
|
|
|
}
|
|
|
+
|
|
|
+ public RespDTO deleteFlag(ADeleteFlagVO aDeleteFlagVO){
|
|
|
+ //验证数据是否存在
|
|
|
+ if(StringUtil.isNotBlank(aDeleteFlagVO.getBehospitalCode())){
|
|
|
+ return RespDTO.onError("请输入病人住院编码!");
|
|
|
+ }else if(aDeleteFlagVO.getHospitalId()==null){
|
|
|
+ return RespDTO.onError("请输入医院编码!");
|
|
|
+ }else {
|
|
|
+ UpdateWrapper<BehospitalInfo> updateWrapper=new UpdateWrapper<>();
|
|
|
+ updateWrapper.eq("behospital_code", aDeleteFlagVO.getBehospitalCode())
|
|
|
+ .eq("hospital_id", aDeleteFlagVO.getHospitalId())
|
|
|
+ .eq("is_deleted",IsDeleteEnum.N)
|
|
|
+ .set("is_deleted",IsDeleteEnum.Y)
|
|
|
+ .set("gmt_modified", DateUtil.now());
|
|
|
+
|
|
|
+ Boolean flag=update(new BehospitalInfo(),updateWrapper);
|
|
|
+ return RespDTO.onSuc(flag);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|