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 getDoctorList(String selectDate, String selectKsdm) { HashMap resMap = null; try { resMap = HisInterfaceUtils.getDoctors(selectDate, selectKsdm); } catch (DocumentException e) { throw new RuntimeException(e); } return resMap; } @GetMapping("/getDoctorScheduling") public HashMap getDoctorScheduling(String selectDate, String selectKmdm) { HashMap resMap = null; try { resMap = HisInterfaceUtils.getDoctorScheduling(selectDate, selectKmdm); } catch (DocumentException e) { throw new RuntimeException(e); } return resMap; } }