|
|
@@ -250,9 +250,16 @@ public class AfterwardsAuditServiceImpl extends ServiceImpl<AfterwardsAuditMappe
|
|
|
appealRecord.setDoctorId(audit.getDoctorId());
|
|
|
appealRecord.setDoctorName(audit.getDoctorName());
|
|
|
appealRecord.setAfterwardsAuditId(audit.getId());
|
|
|
+
|
|
|
+ AfterwardsAuditStatusEnum enums = AfterwardsAuditStatusEnum.findEnums(param.getCheckState());
|
|
|
+ if (null == enums) {
|
|
|
+ log.error("不支持的审核状态={}", param.getCheckState());
|
|
|
+ throw new JeecgBootException("不支持的审核状态,请检查");
|
|
|
+ }
|
|
|
+
|
|
|
// 2.开始校验处理状态
|
|
|
- switch (param.getCheckState()) {
|
|
|
- case "appeal": //申诉
|
|
|
+ switch (enums) {
|
|
|
+ case appeal: //"appeal": //申诉
|
|
|
appealRecord.setDescription(param.getDescription());
|
|
|
appealRecord.setImgPath(param.getImgPaths());
|
|
|
|
|
|
@@ -264,7 +271,7 @@ public class AfterwardsAuditServiceImpl extends ServiceImpl<AfterwardsAuditMappe
|
|
|
audit.setUpdateTime(new Date());
|
|
|
audit.setUpdateBy(loginUser.getId());
|
|
|
break;
|
|
|
- case "agree_audit": // 同意审核结果
|
|
|
+ case agree_audit: // "agree_audit": // 同意审核结果
|
|
|
audit.setCheckBy(audit.getPreCheckBy()); //下一个审核人员为 下发给科室的人员继续审核
|
|
|
audit.setPreCheckBy(loginUser.getId()); // 上一个审核人员为当前审核人员
|
|
|
audit.setPreAuditTime(new Date()); // 上一个审查时间,是当前时间
|
|
|
@@ -316,6 +323,14 @@ public class AfterwardsAuditServiceImpl extends ServiceImpl<AfterwardsAuditMappe
|
|
|
if (null != result.getBirthday()) {
|
|
|
// TODO 计算年龄
|
|
|
}
|
|
|
+ int appealNumber = 0;
|
|
|
+ // 查询一下审核次数
|
|
|
+ MedicalDoctorAppealRecord appealRecord = appealRecordService.loadMaxAppealNumber(id, result.getMedicalDeptCode(), result.getDoctorId());
|
|
|
+ if (null != appealRecord && appealRecord.getAppealNumber() != null) {
|
|
|
+ appealNumber = appealRecord.getAppealNumber();
|
|
|
+ }
|
|
|
+ result.setAuditNumber(appealNumber);
|
|
|
+
|
|
|
//获取违规的detail数据
|
|
|
List<AuditInfoListResponse> auditInfoListResponseList = baseMapper.loadAuditInfoList(id);
|
|
|
if (!CollectionUtils.isEmpty(auditInfoListResponseList)) {
|