This commit is contained in:
abing
2025-06-13 11:40:16 +08:00
parent 437bf23f09
commit 6f846f5410
1787 changed files with 212112 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
package com.openhis.component;
import com.openhis.vo.BaseParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.openhis.context.HandlerServiceContext;
import com.openhis.pojo.InputData;
import com.openhis.pojo.ResultBody;
import com.openhis.service.HandlerService;
/**
* handler分发
*/
@Component
public class HandlerIntDispatcher {
/** 接口服务容器 */
@Autowired
private HandlerServiceContext handlerServiceContext;
/**
* dispatcher 处理器
* @param intType
* @param inputData
* @return
*/
public ResultBody dispatcher(String intType, InputData inputData, BaseParam baseParam) {
// 根据接口类型获取对应服务
HandlerService handlerService = handlerServiceContext.getHandlerService(intType);
// 调用对应服务接口
return handlerService.handle(inputData,baseParam);
}
}