修改审核不通过允许更改

This commit is contained in:
wucongxing8150 2025-07-08 15:25:02 +08:00
parent a98998260a
commit 5dbdb49440
2 changed files with 13 additions and 4 deletions

View File

@ -39,10 +39,20 @@ public class MedicalRecordEntity {
private LocalDateTime admissionTime;
/**
* 病历类型
* 治疗类型
*/
private String caseType;
/**
* 0待审核 1审核通过 2审核不通过
*/
private Integer status;
/**
* 审核不通过原因
*/
private String reason;
/**
* 统计
*/
@ -74,8 +84,6 @@ public class MedicalRecordEntity {
private LocalDateTime createTime;
private Integer status;
/**
* 主要诊断
*/

View File

@ -261,7 +261,7 @@ public class MedicalRecordService {
return ResponseDTO.userErrorParam("操作失败");
}
if (medicalRecord.getStatus() != 0){
if (medicalRecord.getStatus() == 1){
return ResponseDTO.error(NO_PERMISSION_EDIT);
}
@ -289,6 +289,7 @@ public class MedicalRecordService {
medicalRecord.setMainDiagnose(updateForm.getMainDiagnose());
medicalRecord.setDiseaseCause(updateForm.getDiseaseCause());
medicalRecord.setSeductionReason(updateForm.getSeductionReason());
medicalRecord.setReason("");
medicalRecorDao.updateById(medicalRecord);
// 病历-用户