路泰机电科技体检——数据平台后端
zhaowenxuan
2025-02-15 c00a5c22a3eacb6319a82d3ddabbde226f81a572
src/main/java/com/example/factory/ServiceFactory.java
@@ -4,6 +4,7 @@
import com.example.service.HisService;
import com.example.service.LisService;
import com.example.service.PacsService;
import org.apache.ibatis.annotations.Case;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
@@ -42,6 +43,8 @@
        switch (hospName) {
            case "shanxiqinxamjyy":
                return "ShanXiQinXiAnMeiJi"; // 对应的业务 Bean 名称
            case "shanxiqinpbkwyy":
                return "ShanXiQinPbkwyy";
            default:
                throw new RuntimeException("找不到对应的医院服务配置:" + hospName);
        }