You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
3.4 KiB
96 lines
3.4 KiB
package com.ynxbd.common.action;
|
|
|
|
import com.ynxbd.common.action.base.BaseAction;
|
|
import com.ynxbd.common.result.Result;
|
|
import com.ynxbd.wx.config.MeTechnologyReConfig;
|
|
import org.apache.struts2.convention.annotation.Action;
|
|
import org.apache.struts2.convention.annotation.Namespace;
|
|
|
|
/**
|
|
* @author 李进才
|
|
* @ClassName MeTechnologyReAction
|
|
* @Description TODO
|
|
* @date 2024/06/18 14:53:00
|
|
*/
|
|
|
|
@Namespace("/meTechnologyRe")
|
|
public class MeTechnologyReAction extends BaseAction {
|
|
|
|
/**
|
|
* 获取可预约的订单
|
|
*
|
|
* @param patientId 患者ID
|
|
* @param startDate 开始日期
|
|
* @param endDate 结束日期
|
|
* @return 结果
|
|
*/
|
|
@Action("getCanBookOrders")
|
|
public Result getCanBookOrders(String patientId, String startDate, String endDate) {
|
|
patientId = getDecodeString(patientId);
|
|
return Result.success(MeTechnologyReConfig.getCanBookOrders(patientId, startDate, endDate));
|
|
}
|
|
|
|
/**
|
|
* 获取号源统计信息
|
|
*
|
|
* @param patientId 患者ID
|
|
* @param startDate 开始日期
|
|
* @param endDate 结束日期
|
|
* @param docDetailedNo 详细单号
|
|
* @param intervalTimeType 时间间隔类型
|
|
* @return 结果
|
|
*/
|
|
@Action("getNumberSourceStatistics")
|
|
public Result getNumberSourceStatistics(String patientId, String startDate, String endDate, String docDetailedNo, String intervalTimeType) {
|
|
patientId = getDecodeString(patientId);
|
|
return Result.success(MeTechnologyReConfig.getNumberSourceStatistics(patientId, startDate, endDate, docDetailedNo, intervalTimeType));
|
|
}
|
|
|
|
/**
|
|
* 获取号源详细信息
|
|
*
|
|
* @param examRoomOrQueue 检查队列
|
|
* @param startDate 开始日期
|
|
* @param endDate 结束日期
|
|
* @param appFromID 申请表ID
|
|
* @return 结果
|
|
*/
|
|
@Action("getNumberSourceDetails")
|
|
public Result getNumberSourceDetails(String examRoomOrQueue, String startDate, String endDate, String appFromID) {
|
|
return Result.success(MeTechnologyReConfig.getNumberSourceDetails(examRoomOrQueue, startDate, endDate, appFromID));
|
|
}
|
|
|
|
/**
|
|
* 锁定预约号
|
|
*
|
|
* @param appFormID 申请表ID
|
|
* @param examRoomOrQueue 检查队列
|
|
* @param beginDateTime 开始时间
|
|
* @param endDateTime 结束时间
|
|
* @param lockStatus 锁定状态
|
|
* @return 结果
|
|
*/
|
|
@Action("lockedBookNo")
|
|
public Result lockedBookNo(String appFormID, String examRoomOrQueue, String beginDateTime, String endDateTime, Boolean lockStatus) {
|
|
Boolean result = MeTechnologyReConfig.lockedBookNo(appFormID, examRoomOrQueue, beginDateTime, endDateTime, lockStatus);
|
|
return result?Result.success():Result.error();
|
|
}
|
|
|
|
/**
|
|
* 获取预约信息
|
|
*
|
|
* @param appFormID 申请表ID
|
|
* @param examRoomOrQueue 检查队列
|
|
* @param beginDateTime 开始时间
|
|
* @param endDateTime 结束时间
|
|
* @param patientId 患者ID
|
|
* @param patientName 患者姓名
|
|
* @return 结果
|
|
*/
|
|
@Action("getBookedDateTime")
|
|
public Result getBookedDateTime(String appFormID, String examRoomOrQueue, String beginDateTime, String endDateTime, String patientId, String patientName) {
|
|
patientId = getDecodeString(patientId);
|
|
return Result.success(MeTechnologyReConfig.getBookedDateTime(appFormID, examRoomOrQueue, beginDateTime, endDateTime, patientId, patientName));
|
|
}
|
|
|
|
}
|
|
|