修改审核不通过允许更改
This commit is contained in:
parent
a98998260a
commit
5dbdb49440
@ -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;
|
||||
|
||||
/**
|
||||
* 主要诊断
|
||||
*/
|
||||
|
||||
@ -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);
|
||||
|
||||
// 病历-用户
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user