医生排班页面修复,新增组件间交互功能。

This commit is contained in:
2025-12-11 17:14:48 +08:00
parent a58e02f2cb
commit bd6f3ca587
8 changed files with 79 additions and 11 deletions

View File

@@ -5,6 +5,8 @@ import com.openhis.administration.domain.DoctorSchedule;
public interface IDoctorScheduleAppService {
R<?> getDoctorScheduleList();
R<?> addDoctorSchedule(DoctorSchedule doctorSchedule);
R<?> removeDoctorSchedule(Integer doctorScheduleId);

View File

@@ -8,6 +8,7 @@ import com.openhis.web.appointmentmanage.appservice.IDoctorScheduleAppService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class DoctorScheduleAppServiceImpl implements IDoctorScheduleAppService {
@@ -15,6 +16,12 @@ public class DoctorScheduleAppServiceImpl implements IDoctorScheduleAppService {
private IDoctorScheduleService doctorScheduleService;
@Override
public R<?> getDoctorScheduleList() {
List<DoctorSchedule> list = doctorScheduleService.list();
return R.ok(list);
}
@Override
public R<?> addDoctorSchedule(DoctorSchedule doctorSchedule) {
if (ObjectUtil.isEmpty(doctorSchedule)) {

View File

@@ -14,6 +14,15 @@ public class DoctorScheduleController {
@Resource
private IDoctorScheduleAppService doctorScheduleAppService;
/*
* 获取医生排班List
*
* */
@PostMapping("/add")
public R<?> getDoctorScheduleList() {
return R.ok(doctorScheduleAppService.getDoctorScheduleList());
}
/*
* 新增医生排班
*

View File

@@ -40,6 +40,4 @@ public class Dept {
/** 更新时间 */
private LocalDateTime updateTime;
/** 关联的排班列表(一对多关系) */
private List<DoctorSchedule> schedules;
}

View File

@@ -28,6 +28,7 @@ public class SchedulePool {
/** 结束时间 */
private LocalTime endTime;
/**/
private Integer totalQuota;
private Integer bookedNum;
private Integer lockedNum;