init version for new gitea
This commit is contained in:
46
src/main/java/com/saye/hrs/controller/BookingController.java
Normal file
46
src/main/java/com/saye/hrs/controller/BookingController.java
Normal file
@@ -0,0 +1,46 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user