|
|
@ -181,9 +181,9 @@ public class DoctorService implements IDoctorService { |
|
|
|
if (position.getHasAudit()!=null && Constant.Ht.Position.HAS_AUDIT == position.getHasAudit()) { |
|
|
|
roles.add(Constant.Ht.Doctor.AUDIT); |
|
|
|
} |
|
|
|
if (position.getHasManage()!=null && Constant.Ht.Position.HAS_MANAGE == position.getHasManage()) { |
|
|
|
roles.add(Constant.Ht.Doctor.MANAGE); |
|
|
|
} |
|
|
|
// if (position.getHasManage()!=null && Constant.Ht.Position.HAS_MANAGE == position.getHasManage()) {
|
|
|
|
// roles.add(Constant.Ht.Doctor.MANAGE);
|
|
|
|
// }
|
|
|
|
|
|
|
|
JsonResponse result; |
|
|
|
if (Constant.Ht.Doctor.CHECK_SUCCESS == audit.getAuditState()) { |
|
|
@ -235,6 +235,7 @@ public class DoctorService implements IDoctorService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
log.info("添加审核通知:{}", maps); |
|
|
|
// 删除旧的审核通知
|
|
|
|
HtDoctorAuditExample auditExample = new HtDoctorAuditExample(); |
|
|
|
auditExample.createCriteria().andDoctorIdEqualTo(htDoctor.getId()); |
|
|
@ -244,6 +245,7 @@ public class DoctorService implements IDoctorService { |
|
|
|
//添加新的通知
|
|
|
|
List<HtDoctorAudit> audits = new ArrayList<>(); |
|
|
|
maps.forEach(map -> { |
|
|
|
log.info("职位ID:{}", map); |
|
|
|
HtDoctorExample example1 = new HtDoctorExample(); |
|
|
|
example1.createCriteria().andPositionIdEqualTo(map.getLong("id")).andAuditStateEqualTo(Constant.Ht.Doctor.CHECK_SUCCESS); |
|
|
|
//查找上级职务对应的医生
|
|
|
@ -256,6 +258,7 @@ public class DoctorService implements IDoctorService { |
|
|
|
audit.setId(snowflake.nextId()); |
|
|
|
audit.setDoctorId(htDoctor.getId()); |
|
|
|
audit.setAuditorId(superior.getId()); |
|
|
|
log.info("审核医生ID:{}", audit); |
|
|
|
audits.add(audit); |
|
|
|
}); |
|
|
|
}); |
|
|
|