|
@@ -9,7 +9,9 @@ import com.lantone.common.exception.Asserts;
|
|
import com.lantone.common.util.DateUtil;
|
|
import com.lantone.common.util.DateUtil;
|
|
import com.lantone.common.util.ListUtil;
|
|
import com.lantone.common.util.ListUtil;
|
|
import com.lantone.common.util.StringUtil;
|
|
import com.lantone.common.util.StringUtil;
|
|
|
|
+import com.lantone.report.dto.GetAppealDeptDTO;
|
|
import com.lantone.report.dto.GetAppealInfoDTO;
|
|
import com.lantone.report.dto.GetAppealInfoDTO;
|
|
|
|
+import com.lantone.report.dto.GetAppealModeDTO;
|
|
import com.lantone.report.dto.GetReviewerDTO;
|
|
import com.lantone.report.dto.GetReviewerDTO;
|
|
import com.lantone.report.entity.AppealExamineInfo;
|
|
import com.lantone.report.entity.AppealExamineInfo;
|
|
import com.lantone.report.entity.AppealInfo;
|
|
import com.lantone.report.entity.AppealInfo;
|
|
@@ -24,7 +26,9 @@ import com.lantone.report.facade.base.SysUserRoleFacade2;
|
|
import com.lantone.report.facade.base.WorkFlowNodeFacade;
|
|
import com.lantone.report.facade.base.WorkFlowNodeFacade;
|
|
import com.lantone.report.vo.AddAppealInfoVO;
|
|
import com.lantone.report.vo.AddAppealInfoVO;
|
|
import com.lantone.report.vo.CancelAppealInfoVO;
|
|
import com.lantone.report.vo.CancelAppealInfoVO;
|
|
|
|
+import com.lantone.report.vo.GetAppealDeptVo;
|
|
import com.lantone.report.vo.GetAppealInfoVO;
|
|
import com.lantone.report.vo.GetAppealInfoVO;
|
|
|
|
+import com.lantone.report.vo.GetAppealModeVo;
|
|
import com.lantone.report.vo.GetAppealOperationTypeVO;
|
|
import com.lantone.report.vo.GetAppealOperationTypeVO;
|
|
import com.lantone.report.vo.GetReviewerVO;
|
|
import com.lantone.report.vo.GetReviewerVO;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -65,12 +69,12 @@ public class MedAppealInfoManagementFacade {
|
|
switch (addAppealInfoVO.getAppealOperationType()) {
|
|
switch (addAppealInfoVO.getAppealOperationType()) {
|
|
//删改
|
|
//删改
|
|
case "0":
|
|
case "0":
|
|
- //通过缺陷id获取该缺陷记录
|
|
|
|
- QcresultDetail qcresultDetail = getQcresultDetailById(addAppealInfoVO.getQcresultDetailId());
|
|
|
|
|
|
+ //通过医院id+病历id+条目ID+未删除 获取该缺陷记录
|
|
|
|
+ QcresultDetail qcresultDetail = getQcresultDetailById(addAppealInfoVO);
|
|
//获取该病历缺陷申诉记录(医院id+病历id+质控缺陷id+未删除)
|
|
//获取该病历缺陷申诉记录(医院id+病历id+质控缺陷id+未删除)
|
|
AppealInfo appealInfo = getAppealInfo(addAppealInfoVO.getHospitalId()
|
|
AppealInfo appealInfo = getAppealInfo(addAppealInfoVO.getHospitalId()
|
|
, addAppealInfoVO.getBehospitalCode()
|
|
, addAppealInfoVO.getBehospitalCode()
|
|
- , addAppealInfoVO.getQcresultDetailId());
|
|
|
|
|
|
+ , addAppealInfoVO.getCasesEntryId());
|
|
//缺陷状态-删除
|
|
//缺陷状态-删除
|
|
if (IsDeleteEnum.Y.getKey().equals(qcresultDetail.getIsDeleted())) {
|
|
if (IsDeleteEnum.Y.getKey().equals(qcresultDetail.getIsDeleted())) {
|
|
Asserts.fail("该缺陷已被删除,请走恢复流程");
|
|
Asserts.fail("该缺陷已被删除,请走恢复流程");
|
|
@@ -87,6 +91,10 @@ public class MedAppealInfoManagementFacade {
|
|
//删除申诉记录
|
|
//删除申诉记录
|
|
appealInfoFacade.update(new UpdateWrapper<AppealInfo>().set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
appealInfoFacade.update(new UpdateWrapper<AppealInfo>().set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
.eq("id", appealInfo.getId()));
|
|
.eq("id", appealInfo.getId()));
|
|
|
|
+ //逻辑删除申诉审批记录
|
|
|
|
+ appealExamineInfoFacade.update(new UpdateWrapper<AppealExamineInfo>()
|
|
|
|
+ .set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
+ .eq("appeal_info_id", appealInfo.getId()));
|
|
}
|
|
}
|
|
//新增申诉记录+审核记录
|
|
//新增申诉记录+审核记录
|
|
return addAppealInfoAndExamineInfo(addAppealInfoVO);
|
|
return addAppealInfoAndExamineInfo(addAppealInfoVO);
|
|
@@ -107,11 +115,15 @@ public class MedAppealInfoManagementFacade {
|
|
AppealInfo oldAppealInfo = getAppealInfo(addAppealInfoVO);
|
|
AppealInfo oldAppealInfo = getAppealInfo(addAppealInfoVO);
|
|
if (oldAppealInfo != null) {
|
|
if (oldAppealInfo != null) {
|
|
//如果最新的一条是已审核
|
|
//如果最新的一条是已审核
|
|
- if(WorkFlowNodeEnum.DEPT_CHECK.getKey().equals(oldAppealInfo.getWorkFlowNodeId() + "")){
|
|
|
|
|
|
+ if (WorkFlowNodeEnum.DEPT_CHECK.getKey().equals(oldAppealInfo.getWorkFlowNodeId() + "")) {
|
|
//删除改新增已有(已审核)申诉记录
|
|
//删除改新增已有(已审核)申诉记录
|
|
appealInfoFacade.update(new UpdateWrapper<AppealInfo>().set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
appealInfoFacade.update(new UpdateWrapper<AppealInfo>().set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
.eq("id", oldAppealInfo.getId()));
|
|
.eq("id", oldAppealInfo.getId()));
|
|
- }else if (WorkFlowNodeEnum.APPEAL.getKey().equals(oldAppealInfo.getWorkFlowNodeId() + "")) {
|
|
|
|
|
|
+ //逻辑删除申诉审批记录
|
|
|
|
+ appealExamineInfoFacade.update(new UpdateWrapper<AppealExamineInfo>()
|
|
|
|
+ .set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
+ .eq("appeal_info_id", oldAppealInfo.getId()));
|
|
|
|
+ } else if (WorkFlowNodeEnum.APPEAL.getKey().equals(oldAppealInfo.getWorkFlowNodeId() + "")) {
|
|
Asserts.fail("该缺陷已被申诉无需再次恢复");
|
|
Asserts.fail("该缺陷已被申诉无需再次恢复");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -128,16 +140,34 @@ public class MedAppealInfoManagementFacade {
|
|
addAppealInfoVO.setModeId(modeId);
|
|
addAppealInfoVO.setModeId(modeId);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //1.判断新增缺失是否存在(医院id+病历id+申诉说明+状态【申诉】)
|
|
|
|
+ AppealInfo notAppealInfo = getAppealInfo(addAppealInfoVO.getHospitalId(), addAppealInfoVO.getBehospitalCode()
|
|
|
|
+ , addAppealInfoVO.getAppealExplain());
|
|
|
|
+ //申诉记录不存在
|
|
|
|
+ if (notAppealInfo != null) {
|
|
|
|
+ if (WorkFlowNodeEnum.APPEAL.getKey().equals(notAppealInfo.getWorkFlowNodeId() + "")) {
|
|
|
|
+ Asserts.fail("该缺陷已被申诉");
|
|
|
|
+ } else {
|
|
|
|
+ //删除申诉记录
|
|
|
|
+ appealInfoFacade.update(new UpdateWrapper<AppealInfo>().set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
+ .eq("id", notAppealInfo.getId()));
|
|
|
|
+ //逻辑删除申诉审批记录
|
|
|
|
+ appealExamineInfoFacade.update(new UpdateWrapper<AppealExamineInfo>()
|
|
|
|
+ .set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
+ .eq("appeal_info_id", notAppealInfo.getId()));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
//新增申诉记录+审核记录
|
|
//新增申诉记录+审核记录
|
|
return addAppealInfoAndExamineInfo(addAppealInfoVO);
|
|
return addAppealInfoAndExamineInfo(addAppealInfoVO);
|
|
//恢复
|
|
//恢复
|
|
case "3":
|
|
case "3":
|
|
//通过缺陷id获取该缺陷记录
|
|
//通过缺陷id获取该缺陷记录
|
|
- QcresultDetail qcresultDetail1 = getQcresultDetailById(addAppealInfoVO.getQcresultDetailId());
|
|
|
|
|
|
+ QcresultDetail qcresultDetail1 = getQcresultDetailById(addAppealInfoVO);
|
|
//获取该病历缺陷申诉记录(医院id+病历id+质控缺陷id+未删除)
|
|
//获取该病历缺陷申诉记录(医院id+病历id+质控缺陷id+未删除)
|
|
AppealInfo appealInfo1 = getAppealInfo(addAppealInfoVO.getHospitalId()
|
|
AppealInfo appealInfo1 = getAppealInfo(addAppealInfoVO.getHospitalId()
|
|
, addAppealInfoVO.getBehospitalCode()
|
|
, addAppealInfoVO.getBehospitalCode()
|
|
- , addAppealInfoVO.getQcresultDetailId());
|
|
|
|
|
|
+ , addAppealInfoVO.getCasesEntryId());
|
|
//缺陷状态-删除
|
|
//缺陷状态-删除
|
|
if (qcresultDetail1.getIsDeleted().equals(IsDeleteEnum.N.getKey())) {
|
|
if (qcresultDetail1.getIsDeleted().equals(IsDeleteEnum.N.getKey())) {
|
|
Asserts.fail("缺陷已被恢复无需再次恢复");
|
|
Asserts.fail("缺陷已被恢复无需再次恢复");
|
|
@@ -154,6 +184,9 @@ public class MedAppealInfoManagementFacade {
|
|
//删除申诉记录
|
|
//删除申诉记录
|
|
appealInfoFacade.update(new UpdateWrapper<AppealInfo>().set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
appealInfoFacade.update(new UpdateWrapper<AppealInfo>().set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
.eq("id", appealInfo1.getId()));
|
|
.eq("id", appealInfo1.getId()));
|
|
|
|
+ appealExamineInfoFacade.update(new UpdateWrapper<AppealExamineInfo>()
|
|
|
|
+ .set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
+ .eq("appeal_info_id", appealInfo1.getId()));
|
|
}
|
|
}
|
|
//新增申诉记录+审核记录
|
|
//新增申诉记录+审核记录
|
|
return addAppealInfoAndExamineInfo(addAppealInfoVO);
|
|
return addAppealInfoAndExamineInfo(addAppealInfoVO);
|
|
@@ -205,19 +238,19 @@ public class MedAppealInfoManagementFacade {
|
|
/**
|
|
/**
|
|
* @param hospitalId
|
|
* @param hospitalId
|
|
* @param behospitalCode
|
|
* @param behospitalCode
|
|
- * @param qcresultDetailId
|
|
|
|
|
|
+ * @param getCasesEntryId
|
|
* @Description获取该病历缺陷申诉记录
|
|
* @Description获取该病历缺陷申诉记录
|
|
* @Return com.lantone.report.entity.AppealInfo
|
|
* @Return com.lantone.report.entity.AppealInfo
|
|
*/
|
|
*/
|
|
- private AppealInfo getAppealInfo(Long hospitalId, String behospitalCode, Long qcresultDetailId) {
|
|
|
|
|
|
+ private AppealInfo getAppealInfo(Long hospitalId, String behospitalCode, Long getCasesEntryId) {
|
|
|
|
|
|
- if (qcresultDetailId == null) {
|
|
|
|
|
|
+ if (getCasesEntryId == null) {
|
|
Asserts.fail("质控缺陷id为空");
|
|
Asserts.fail("质控缺陷id为空");
|
|
}
|
|
}
|
|
List<AppealInfo> appealInfos = appealInfoFacade.list(new QueryWrapper<AppealInfo>()
|
|
List<AppealInfo> appealInfos = appealInfoFacade.list(new QueryWrapper<AppealInfo>()
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", behospitalCode)
|
|
.eq("behospital_code", behospitalCode)
|
|
- .eq("qcresult_detail_id", qcresultDetailId)
|
|
|
|
|
|
+ .eq("cases_entry_id", getCasesEntryId)
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.orderByDesc("gmt_create"));
|
|
.orderByDesc("gmt_create"));
|
|
if (ListUtil.isNotEmpty(appealInfos)) {
|
|
if (ListUtil.isNotEmpty(appealInfos)) {
|
|
@@ -227,19 +260,44 @@ public class MedAppealInfoManagementFacade {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @param qcresultDetailId
|
|
|
|
- * @Description通过id获取质控缺陷条目
|
|
|
|
|
|
+ * @param hospitalId
|
|
|
|
+ * @param behospitalCode
|
|
|
|
+ * @Description获取该病历缺陷申诉记录(新增缺失)
|
|
|
|
+ * @Return com.lantone.report.entity.AppealInfo
|
|
|
|
+ */
|
|
|
|
+ private AppealInfo getAppealInfo(Long hospitalId, String behospitalCode, String appealExplain) {
|
|
|
|
+
|
|
|
|
+ List<AppealInfo> appealInfos = appealInfoFacade.list(new QueryWrapper<AppealInfo>()
|
|
|
|
+ .eq("hospital_id", hospitalId)
|
|
|
|
+ .eq("behospital_code", behospitalCode)
|
|
|
|
+ .eq("appeal_operation_type", AppealOperationTypeEnum.ADD_NO_EXIST.getKey())
|
|
|
|
+ .eq("appeal_explain", appealExplain)
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .orderByDesc("gmt_create"));
|
|
|
|
+ if (ListUtil.isNotEmpty(appealInfos)) {
|
|
|
|
+ return appealInfos.get(0);
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * @param addAppealInfoVO
|
|
|
|
+ * @Description通过医院id+病历id+条目ID+未删除 获取该缺陷记录
|
|
* @Return com.lantone.report.entity.QcresultDetail
|
|
* @Return com.lantone.report.entity.QcresultDetail
|
|
*/
|
|
*/
|
|
- private QcresultDetail getQcresultDetailById(Long qcresultDetailId) {
|
|
|
|
- if (qcresultDetailId == null) {
|
|
|
|
- Asserts.fail("质控缺陷id为空");
|
|
|
|
|
|
+ private QcresultDetail getQcresultDetailById(AddAppealInfoVO addAppealInfoVO) {
|
|
|
|
+ if (addAppealInfoVO.getCasesEntryId() == null) {
|
|
|
|
+ Asserts.fail("条目ID为空");
|
|
}
|
|
}
|
|
- QcresultDetail qcresultDetail = qcresultDetailFacade.getById(qcresultDetailId);
|
|
|
|
- if (qcresultDetail == null) {
|
|
|
|
|
|
+ List<QcresultDetail> qcresultDetails = qcresultDetailFacade.list(new QueryWrapper<QcresultDetail>()
|
|
|
|
+ .eq("hospital_id", addAppealInfoVO.getHospitalId())
|
|
|
|
+ .eq("behospital_code", addAppealInfoVO.getBehospitalCode())
|
|
|
|
+ .eq("cases_entry_id", addAppealInfoVO.getCasesEntryId())
|
|
|
|
+ .orderByDesc("gmt_create"));
|
|
|
|
+ if (ListUtil.isEmpty(qcresultDetails)) {
|
|
Asserts.fail("质控缺陷不存在");
|
|
Asserts.fail("质控缺陷不存在");
|
|
}
|
|
}
|
|
- return qcresultDetail;
|
|
|
|
|
|
+ return qcresultDetails.get(0);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -283,9 +341,22 @@ public class MedAppealInfoManagementFacade {
|
|
Map<String, String> out = Maps.newHashMap();
|
|
Map<String, String> out = Maps.newHashMap();
|
|
//通过缺陷id获取缺陷
|
|
//通过缺陷id获取缺陷
|
|
QcresultDetail qcresultDetail = qcresultDetailFacade.getById(getAppealOperationTypeVO.getQcresultDetailId());
|
|
QcresultDetail qcresultDetail = qcresultDetailFacade.getById(getAppealOperationTypeVO.getQcresultDetailId());
|
|
|
|
+ QcresultDetail nowQcresultDetail = null;
|
|
|
|
+ if (qcresultDetail != null) {
|
|
|
|
+ //获取最新的缺陷
|
|
|
|
+ List<QcresultDetail> qcresultDetails = qcresultDetailFacade.list(new QueryWrapper<QcresultDetail>()
|
|
|
|
+ .eq("hospital_id",qcresultDetail.getHospitalId())
|
|
|
|
+ .eq("behospital_code",qcresultDetail.getBehospitalCode())
|
|
|
|
+ .eq("cases_entry_id",qcresultDetail.getCasesEntryId())
|
|
|
|
+ .orderByDesc("gmt_create"));
|
|
|
|
+ if(ListUtil.isNotEmpty(qcresultDetails)){
|
|
|
|
+ nowQcresultDetail = qcresultDetails.get(0);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
switch (getAppealOperationTypeVO.getAppealOperationType()) {
|
|
switch (getAppealOperationTypeVO.getAppealOperationType()) {
|
|
case "0":
|
|
case "0":
|
|
- if (qcresultDetail == null) {
|
|
|
|
|
|
+ if (nowQcresultDetail == null) {
|
|
Asserts.fail("质控缺陷条目不存在");
|
|
Asserts.fail("质控缺陷条目不存在");
|
|
}
|
|
}
|
|
if (IsDeleteEnum.N.getKey().equals(qcresultDetail.getIsDeleted())) {
|
|
if (IsDeleteEnum.N.getKey().equals(qcresultDetail.getIsDeleted())) {
|
|
@@ -330,38 +401,60 @@ public class MedAppealInfoManagementFacade {
|
|
* @Return java.lang.Boolean
|
|
* @Return java.lang.Boolean
|
|
*/
|
|
*/
|
|
public Boolean cancelAppealInfo(CancelAppealInfoVO cancelAppealInfoVO) {
|
|
public Boolean cancelAppealInfo(CancelAppealInfoVO cancelAppealInfoVO) {
|
|
|
|
+ Boolean out = false;
|
|
//获取申诉记录
|
|
//获取申诉记录
|
|
AppealInfo appealInfo = appealInfoFacade.getById(cancelAppealInfoVO.getId());
|
|
AppealInfo appealInfo = appealInfoFacade.getById(cancelAppealInfoVO.getId());
|
|
if (appealInfo == null) {
|
|
if (appealInfo == null) {
|
|
Asserts.fail("撤回申诉条目不存在");
|
|
Asserts.fail("撤回申诉条目不存在");
|
|
}
|
|
}
|
|
if (WorkFlowNodeEnum.APPEAL.getKey().equals(appealInfo.getWorkFlowNodeId() + "")) {
|
|
if (WorkFlowNodeEnum.APPEAL.getKey().equals(appealInfo.getWorkFlowNodeId() + "")) {
|
|
- //获取该条目申诉历史记录
|
|
|
|
- List<AppealInfo> appealInfoHistory = appealInfoFacade.list(new QueryWrapper<AppealInfo>()
|
|
|
|
- .eq("hospital_id", appealInfo.getHospitalId())
|
|
|
|
- .eq("behospital_code", appealInfo.getBehospitalCode())
|
|
|
|
- .eq(appealInfo.getQcresultDetailId() != null, "qcresult_detail_id", appealInfo.getQcresultDetailId())
|
|
|
|
- .eq(appealInfo.getCasesEntryId() != null, "cases_entry_id", appealInfo.getCasesEntryId())
|
|
|
|
- .eq("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
- .orderByDesc("gmt_create"));
|
|
|
|
|
|
+ List<AppealInfo> appealInfoHistory = null;
|
|
|
|
+ //非新增缺失
|
|
|
|
+ if (!AppealOperationTypeEnum.ADD_NO_EXIST.getKey().equals(appealInfo.getAppealOperationType())) {
|
|
|
|
+ //获取该条目申诉历史记录(非新增缺失)
|
|
|
|
+ appealInfoHistory = appealInfoFacade.list(new QueryWrapper<AppealInfo>()
|
|
|
|
+ .eq("hospital_id", appealInfo.getHospitalId())
|
|
|
|
+ .eq("behospital_code", appealInfo.getBehospitalCode())
|
|
|
|
+ .notIn("work_flow_node_id", WorkFlowNodeEnum.APPEAL_BACK.getKey())
|
|
|
|
+ .eq(appealInfo.getCasesEntryId() != null, "cases_entry_id", appealInfo.getCasesEntryId())
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
+ .orderByDesc("gmt_create"));
|
|
|
|
+ } else {
|
|
|
|
+ appealInfoHistory = appealInfoFacade.list(new QueryWrapper<AppealInfo>()
|
|
|
|
+ .eq("hospital_id", appealInfo.getHospitalId())
|
|
|
|
+ .eq("behospital_code", appealInfo.getBehospitalCode())
|
|
|
|
+ .notIn("work_flow_node_id", WorkFlowNodeEnum.APPEAL_BACK.getKey())
|
|
|
|
+ .eq("appeal_operation_type", AppealOperationTypeEnum.ADD_NO_EXIST.getKey())
|
|
|
|
+ .eq(appealInfo.getAppealExplain() != null, "appeal_explain", appealInfo.getAppealExplain())
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
+ .orderByDesc("gmt_create"));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
//存在历史记录还原最后一条
|
|
//存在历史记录还原最后一条
|
|
if (ListUtil.isNotEmpty(appealInfoHistory)) {
|
|
if (ListUtil.isNotEmpty(appealInfoHistory)) {
|
|
AppealInfo appealInfoOld = appealInfoHistory.get(0);
|
|
AppealInfo appealInfoOld = appealInfoHistory.get(0);
|
|
appealInfoOld.setIsDeleted(IsDeleteEnum.N.getKey());
|
|
appealInfoOld.setIsDeleted(IsDeleteEnum.N.getKey());
|
|
- return appealInfoFacade.saveOrUpdate(appealInfoOld);
|
|
|
|
|
|
+ out = appealInfoFacade.saveOrUpdate(appealInfoOld);
|
|
|
|
+ //还原审批记录
|
|
|
|
+ if (out) {
|
|
|
|
+ out = appealExamineInfoFacade.update(new UpdateWrapper<AppealExamineInfo>()
|
|
|
|
+ .set("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("appeal_info_id", appealInfoOld.getId()));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//逻辑删除该申诉(撤回)
|
|
//逻辑删除该申诉(撤回)
|
|
appealInfo.setIsDeleted(IsDeleteEnum.Y.getKey());
|
|
appealInfo.setIsDeleted(IsDeleteEnum.Y.getKey());
|
|
appealInfo.setWorkFlowNodeId(cancelAppealInfoVO.getWorkFlowNodeId());
|
|
appealInfo.setWorkFlowNodeId(cancelAppealInfoVO.getWorkFlowNodeId());
|
|
appealInfo.setGmtModified(DateUtil.now());
|
|
appealInfo.setGmtModified(DateUtil.now());
|
|
- Boolean out = appealInfoFacade.updateById(appealInfo);
|
|
|
|
- if(out){
|
|
|
|
|
|
+ out = appealInfoFacade.updateById(appealInfo);
|
|
|
|
+ if (out) {
|
|
//逻辑删除申诉申请审批记录
|
|
//逻辑删除申诉申请审批记录
|
|
return appealExamineInfoFacade.update(new UpdateWrapper<AppealExamineInfo>()
|
|
return appealExamineInfoFacade.update(new UpdateWrapper<AppealExamineInfo>()
|
|
- .eq("appeal_info_id",appealInfo.getId())
|
|
|
|
- .set("is_deleted",IsDeleteEnum.Y.getKey()));
|
|
|
|
|
|
+ .set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
|
+ .eq("appeal_info_id", appealInfo.getId()));
|
|
}
|
|
}
|
|
- return out;
|
|
|
|
|
|
+ Asserts.fail("撤回失败");
|
|
} else {
|
|
} else {
|
|
Asserts.fail("撤回申诉条目状态不是申诉状态");
|
|
Asserts.fail("撤回申诉条目状态不是申诉状态");
|
|
}
|
|
}
|
|
@@ -383,4 +476,12 @@ public class MedAppealInfoManagementFacade {
|
|
getAppealInfoDTO.setAppealExamineRecordDTOList(appealInfoFacade.getBaseMapper().getAppealExamineRecords(getAppealInfoVO));
|
|
getAppealInfoDTO.setAppealExamineRecordDTOList(appealInfoFacade.getBaseMapper().getAppealExamineRecords(getAppealInfoVO));
|
|
return getAppealInfoDTO;
|
|
return getAppealInfoDTO;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public List<GetAppealDeptDTO> getAppealDept(GetAppealDeptVo getAppealDeptVo) {
|
|
|
|
+ return appealInfoFacade.getBaseMapper().getAppealDept(getAppealDeptVo);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public List<GetAppealModeDTO> getAppealMode(GetAppealModeVo getAppealModeVo) {
|
|
|
|
+ return appealInfoFacade.getBaseMapper().getAppealMode(getAppealModeVo);
|
|
|
|
+ }
|
|
}
|
|
}
|