|
@@ -239,23 +239,23 @@ public class AfterwardsAuditServiceImpl extends ServiceImpl<AfterwardsAuditMappe
|
|
@Override
|
|
@Override
|
|
public boolean deptAudit(LoginUser loginUser, DeptAuditRequestBO param) {
|
|
public boolean deptAudit(LoginUser loginUser, DeptAuditRequestBO param) {
|
|
// 根据当前登录,先获取到医生面板
|
|
// 根据当前登录,先获取到医生面板
|
|
- SysDepart sysDepart = baseMapper.loadUserDept(loginUser.getUsername());
|
|
|
|
- if (null == sysDepart) {
|
|
|
|
- log.error("找不到当前医生的科室,请检查");
|
|
|
|
- throw new JeecgBootException("找不到当前医生的科室,请检查!");
|
|
|
|
- }
|
|
|
|
- // 当前登录科室/医生端的科室code
|
|
|
|
- String medicalDeptCode = sysDepart.getMedicalDeptCode();
|
|
|
|
|
|
+// SysDepart sysDepart = baseMapper.loadUserDept(loginUser.getUsername());
|
|
|
|
+// if (null == sysDepart) {
|
|
|
|
+// log.error("找不到当前医生的科室,请检查");
|
|
|
|
+// throw new JeecgBootException("找不到当前医生的科室,请检查!");
|
|
|
|
+// }
|
|
|
|
+// // 当前登录科室/医生端的科室code
|
|
|
|
+// String medicalDeptCode = sysDepart.getMedicalDeptCode();
|
|
// 1.获取当前需要复核的id,是否为当前科室。
|
|
// 1.获取当前需要复核的id,是否为当前科室。
|
|
AfterwardsAudit audit = this.loadAfterwardsAuditById(param.getId());
|
|
AfterwardsAudit audit = this.loadAfterwardsAuditById(param.getId());
|
|
if (null == audit) {
|
|
if (null == audit) {
|
|
log.error("根据参数={},获取审核表时,取不到数据", param.getId());
|
|
log.error("根据参数={},获取审核表时,取不到数据", param.getId());
|
|
throw new JeecgBootException("参数异常,找不到要审核的数据");
|
|
throw new JeecgBootException("参数异常,找不到要审核的数据");
|
|
}
|
|
}
|
|
- if (!ObjectUtils.nullSafeEquals(medicalDeptCode, audit.getMedicalDeptCode())) {
|
|
|
|
- log.error("当前登录用户科室为={}, 需要处理数据的科室为={},不匹配,无法继续操作", medicalDeptCode, audit.getMedicalDeptCode());
|
|
|
|
- throw new JeecgBootException("请求数据与您非同一科室,请检查!");
|
|
|
|
- }
|
|
|
|
|
|
+// if (!ObjectUtils.nullSafeEquals(audit, audit.getMedicalDeptCode())) {
|
|
|
|
+// log.error("当前登录用户科室为={}, 需要处理数据的科室为={},不匹配,无法继续操作", medicalDeptCode, audit.getMedicalDeptCode());
|
|
|
|
+// throw new JeecgBootException("请求数据与您非同一科室,请检查!");
|
|
|
|
+// }
|
|
// 如果审核流转状态不为待处理,则不允许继续
|
|
// 如果审核流转状态不为待处理,则不允许继续
|
|
if (!ObjectUtils.nullSafeEquals(AfterwardsAuditStatusEnum.process.getStatus(), audit.getCheckState())) {
|
|
if (!ObjectUtils.nullSafeEquals(AfterwardsAuditStatusEnum.process.getStatus(), audit.getCheckState())) {
|
|
log.error("当前申诉工单id={}, 审核流转状态为={},非处理中,请检查!", param.getId(), audit.getCheckState());
|
|
log.error("当前申诉工单id={}, 审核流转状态为={},非处理中,请检查!", param.getId(), audit.getCheckState());
|
|
@@ -281,7 +281,7 @@ public class AfterwardsAuditServiceImpl extends ServiceImpl<AfterwardsAuditMappe
|
|
appealRecord.setCreateTime(new Date()); // 处理时间
|
|
appealRecord.setCreateTime(new Date()); // 处理时间
|
|
appealRecord.setCreateBy(loginUser.getId());// 处理人
|
|
appealRecord.setCreateBy(loginUser.getId());// 处理人
|
|
appealRecord.setAppealStatus(param.getCheckState());
|
|
appealRecord.setAppealStatus(param.getCheckState());
|
|
- appealRecord.setMedicalDeptCode(medicalDeptCode);
|
|
|
|
|
|
+ appealRecord.setMedicalDeptCode(audit.getMedicalDeptCode());
|
|
appealRecord.setMedicalDeptName(audit.getMedicalDeptName());
|
|
appealRecord.setMedicalDeptName(audit.getMedicalDeptName());
|
|
appealRecord.setDoctorId(audit.getDoctorId());
|
|
appealRecord.setDoctorId(audit.getDoctorId());
|
|
appealRecord.setDoctorName(audit.getDoctorName());
|
|
appealRecord.setDoctorName(audit.getDoctorName());
|