47 lines
1.4 KiB
Java
47 lines
1.4 KiB
Java
package com.saye.hrs.controller;
|
|
|
|
import com.saye.hrs.commons.webservice.HisInterfaceUtils;
|
|
import org.dom4j.DocumentException;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import java.util.HashMap;
|
|
|
|
/**
|
|
* @author Mr.zs
|
|
* @date 2024/10/31
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/booking")
|
|
public class BookingController {
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(Object.class);
|
|
|
|
@GetMapping("/getDoctorList")
|
|
public HashMap<Object, Object> getDoctorList(String selectDate, String selectKsdm) {
|
|
|
|
HashMap<Object, Object> resMap = null;
|
|
try {
|
|
resMap = HisInterfaceUtils.getDoctors(selectDate, selectKsdm);
|
|
} catch (DocumentException e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
return resMap;
|
|
}
|
|
|
|
@GetMapping("/getDoctorScheduling")
|
|
public HashMap<Object, Object> getDoctorScheduling(String selectDate, String selectKmdm) {
|
|
HashMap<Object, Object> resMap = null;
|
|
try {
|
|
resMap = HisInterfaceUtils.getDoctorScheduling(selectDate, selectKmdm);
|
|
} catch (DocumentException e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
return resMap;
|
|
}
|
|
|
|
}
|