|
|
@@ -214,6 +214,28 @@ public class AfterwardsAuditServiceImpl extends ServiceImpl<AfterwardsAuditMappe
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public IPage<DeptAuditItemResponse> violationDoctor(Page<DeptAuditItemResponse> page,String deptCode,String createTimeBegin,String createTimeEnd) {
|
|
|
+
|
|
|
+ // 获取违规医生列表
|
|
|
+ List<DeptAuditItemResponse> deptDoctorViolationList = baseMapper.loadDeptDoctorViolationList(deptCode);
|
|
|
+ // 获取该科室的医生面板
|
|
|
+// List<DeptAuditItemResponse> deptDoctorList = baseMapper.loadDeptDoctorList(sysDepart.getId());
|
|
|
+// List<DeptAuditItemResponse> allDeptDoctorList = new ArrayList<>();
|
|
|
+// // 下半部分要扣除掉违规的医生列表
|
|
|
+// if (!CollectionUtils.isEmpty(deptDoctorList) && !CollectionUtils.isEmpty(deptDoctorViolationList)) {
|
|
|
+// allDeptDoctorList = deptDoctorList.stream().filter(allDoctor -> deptDoctorViolationList.stream().map(DeptAuditItemResponse::getDoctorId)
|
|
|
+// .noneMatch(id -> Objects.equals(allDoctor.getDoctorId(), id))).collect(Collectors.toList());
|
|
|
+// } else {
|
|
|
+// allDeptDoctorList = deptDoctorList;
|
|
|
+// }
|
|
|
+//
|
|
|
+// DeptAuditResponse result = new DeptAuditResponse();
|
|
|
+// result.setDeptDoctorViolationList(deptDoctorViolationList);
|
|
|
+// result.setAllDeptDoctorList(allDeptDoctorList);
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
@Transactional(readOnly = false)
|
|
|
@Override
|
|
|
public boolean deptAudit(LoginUser loginUser, DeptAuditRequestBO param) {
|