updateWrapper = new UpdateWrapper<>();
+ updateWrapper.eq("jyrq",jyrq);
+ updateWrapper.eq("yq",yq);
+ updateWrapper.eq("ybh",ybh);
+ updateWrapper.eq("xmdh",xmdh);
+ labResultWarningMapper.update(labResultWarning, updateWrapper);
+ }
+}
diff --git a/liscommon/src/main/java/com/czlisinterface/system/webservices/DemoWebServiceImpl.java b/liscommon/src/main/java/com/czlisinterface/system/webservices/DemoWebServiceImpl.java
new file mode 100644
index 0000000..518fc33
--- /dev/null
+++ b/liscommon/src/main/java/com/czlisinterface/system/webservices/DemoWebServiceImpl.java
@@ -0,0 +1,65 @@
+package com.czlisinterface.system.webservices;
+
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
+import org.springframework.context.annotation.Configuration;
+
+import javax.jws.WebService;
+
+/**
+ * WebService涉及到的有这些 "四解三类 ", 即四个注解,三个类
+ *
+ * @author shanhy
+ * @WebMethod
+ * @WebService
+ * @WebResult
+ * @WebParam SpringBus
+ * Endpoint
+ * EndpointImpl
+ *
+ * 一般我们都会写一个接口,然后再写一个实现接口的实现类,但是这不是强制性的
+ * @WebService 注解表明是一个webservice服务。
+ * name:对外发布的服务名, 对应于
+ * targetNamespace:命名空间,一般是接口的包名倒序, 实现类与接口类的这个配置一定要一致这种错误
+ * Exception in thread "main" org.apache.cxf.common.i18n.UncheckedException: No operation was found with the name xxxx
+ * 对应于targetNamespace="http://server.webservice.example.com"
+ * endpointInterface:服务接口全路径(如果是没有接口,直接写实现类的,该属性不用配置), 指定做SEI(Service EndPoint Interface)服务端点接口
+ * serviceName:对应于
+ * portName:对应于
+ * @WebMethod 表示暴露的服务方法, 这里有接口ServerServiceDemo存在,在接口方法已加上@WebMethod, 所以在实现类中不用再加上,否则就要加上
+ * operationName: 接口的方法名
+ * action: 没发现又什么用处
+ * exclude: 默认是false, 用于阻止将某一继承方法公开为web服务
+ * @WebResult 表示方法的返回值
+ * name:返回值的名称
+ * partName:
+ * targetNamespace:
+ * header: 默认是false, 是否将参数放到头信息中,用于保护参数,默认在body中
+ * @WebParam name:接口的参数
+ * partName:
+ * targetNamespace:
+ * header: 默认是false, 是否将参数放到头信息中,用于保护参数,默认在body中
+ * model:WebParam.Mode.IN/OUT/INOUT
+ * @date 2020/11/19 20:29
+ */
+@Slf4j
+@Configuration
+@ConditionalOnProperty(name="lisinterface.webservice.type",havingValue = "Demo",matchIfMissing = true)
+@WebService(name = LisWebService.WEBSERVICE_NAME, targetNamespace = LisWebService.TARGET_NAMESPACE,
+ endpointInterface = LisWebService.WEBSERVICE_INTERFACE_NAME)
+public class DemoWebServiceImpl implements LisWebService {
+
+ @Override
+ public String hello(String userName) {
+// if (StringUtils.isBlank(userName)) {
+// return "传入的name为空";
+// }
+ return "Hello: ".concat(userName);
+ }
+
+// @Override
+// public String test(HashMap headerMap, HashMap parameterMap, String bodyJson) {
+// return "mapParameters";
+// }
+}
\ No newline at end of file
diff --git a/liscommon/src/main/java/com/czlisinterface/system/webservices/LisWebService.java b/liscommon/src/main/java/com/czlisinterface/system/webservices/LisWebService.java
new file mode 100644
index 0000000..43c317f
--- /dev/null
+++ b/liscommon/src/main/java/com/czlisinterface/system/webservices/LisWebService.java
@@ -0,0 +1,19 @@
+package com.czlisinterface.system.webservices;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+
+@WebService(name = LisWebService.WEBSERVICE_NAME, targetNamespace = LisWebService.TARGET_NAMESPACE)
+public interface LisWebService {
+ String WEBSERVICE_NAME = "LisWebService";
+ String TARGET_NAMESPACE = "http://demo.webservice.shanhy.com";
+ String WEBSERVICE_INTERFACE_NAME = "com.czlis.AllInterface.webservices.LisWebService";
+
+ @WebMethod
+ String hello(@WebParam(name = "userName3") String name);
+
+// @WebMethod
+// String test(@WebParam(name="headerMap") HashMap headerMap, @WebParam HashMap parameterMap, @WebParam String bodyJson);
+
+}
diff --git a/liscommon/src/main/java/com/czlisinterface/system/webservices/WebServiceConfiguration.java b/liscommon/src/main/java/com/czlisinterface/system/webservices/WebServiceConfiguration.java
new file mode 100644
index 0000000..9c1cf47
--- /dev/null
+++ b/liscommon/src/main/java/com/czlisinterface/system/webservices/WebServiceConfiguration.java
@@ -0,0 +1,96 @@
+package com.czlisinterface.system.webservices;
+
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.bus.spring.SpringBus;
+import org.apache.cxf.jaxws.EndpointImpl;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import javax.annotation.Resource;
+import javax.xml.ws.Endpoint;
+
+/**
+ * 注意:
+ * org.apache.cxf.Bus
+ * org.apache.cxf.bus.spring.SpringBus
+ * org.apache.cxf.jaxws.EndpointImpl
+ * javax.xml.ws.Endpoint
+ *
+ * @author shanhy
+ * @date 2020/11/19 20:38
+ */
+@Configuration
+public class WebServiceConfiguration {
+
+
+ @Resource
+ private LisWebService lisWebService;
+
+ @Value("${lisinterface.action.type:}")
+ private String lisClass;
+
+ @Value("${lisinterface.webservice.open:}")
+ private String open;
+
+ /**
+ * Apache CXF 核心架构是以BUS为核心,整合其他组件。
+ * Bus是CXF的主干, 为共享资源提供一个可配置的场所,作用类似于Spring的ApplicationContext,这些共享资源包括
+ * WSDl管理器、绑定工厂等。通过对BUS进行扩展,可以方便地容纳自己的资源,或者替换现有的资源。默认Bus实现基于Spring架构,
+ * 通过依赖注入,在运行时将组件串联起来。BusFactory负责Bus的创建。默认的BusFactory是SpringBusFactory,对应于默认
+ * 的Bus实现。在构造过程中,SpringBusFactory会搜索META-INF/cxf(包含在 CXF 的jar中)下的所有bean配置文件。
+ * 根据这些配置文件构建一个ApplicationContext。开发者也可以提供自己的配置文件来定制Bus。
+ */
+ @Bean(name = Bus.DEFAULT_BUS_ID)
+ public SpringBus springBus() {
+ return new SpringBus();
+ }
+
+ /**
+ * 此方法作用是改变项目中服务名的前缀名,此处127.0.0.1或者localhost不能访问时,请使用ipconfig查看本机ip来访问
+ * 此方法被注释后, 即不改变前缀名(默认是services), wsdl访问地址为 http://127.0.0.1:8080/services/ws/api?wsdl
+ * 去掉注释后wsdl访问地址为:http://127.0.0.1:8080/soap/ws/api?wsdl
+ * http://127.0.0.1:8080/soap/列出服务列表 或 http://127.0.0.1:8080/soap/ws/api?wsdl 查看实际的服务
+ * 新建Servlet记得需要在启动类添加注解:@ServletComponentScan
+ *
+ * 如果启动时出现错误:not loaded because DispatcherServlet Registration found non dispatcher servlet dispatcherServlet
+ * 可能是springboot与cfx版本不兼容。
+ * 同时在spring boot2.0.6之后的版本与xcf集成,不需要在定义以下方法,直接在application.properties配置文件中添加:
+ * cxf.path=/service(默认是services)
+ */
+// @Bean
+// public ServletRegistrationBean dispatcherServlet() {
+// if(lisClass.equals("nzzyy")){
+// return new ServletRegistrationBean(new CXFServlet(), "/critical/*");
+// }
+// return new ServletRegistrationBean(new CXFServlet(), "/services/*");
+// }
+
+
+
+ /**
+ * 地址改为了:http://127.0.0.1:9566/services
+ * webservices访问地址:http://127.0.0.1:9566/services/ws/lisWsApi?wsdl
+ * @return
+ */
+ @Bean
+ public Endpoint endpoint() {
+ //没有位子启用这个。暂时注释掉
+ if(open.equals("1")){
+ Endpoint endpoint = new EndpointImpl(springBus(), lisWebService);
+ switch (lisClass){
+// case "nzzyy":
+// endpoint.publish("/ws/receiverCritical");
+// break;
+// default:
+// endpoint.publish("/ws/lisWsApi");
+// break;
+ }
+
+ return endpoint;
+ }
+
+ return null;
+ }
+}
\ No newline at end of file
diff --git a/liscommon/src/main/resources/mapper/CommonMapper.xml b/liscommon/src/main/resources/mapper/CommonMapper.xml
new file mode 100644
index 0000000..78c65c4
--- /dev/null
+++ b/liscommon/src/main/resources/mapper/CommonMapper.xml
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lisinterface_jldermyy/pom.xml b/lisinterface_jldermyy/pom.xml
new file mode 100644
index 0000000..f7e93a4
--- /dev/null
+++ b/lisinterface_jldermyy/pom.xml
@@ -0,0 +1,26 @@
+
+ 4.0.0
+
+ org.example
+ lisinterface8.0
+ 1.0
+
+
+ lisinterface_jldermyy
+ jar
+
+ lisinterface_jldermyy
+
+
+ UTF-8
+
+
+
+
+ org.example
+ liscommon
+ 1.0
+
+
+
diff --git a/lisinterface_jldermyy/src/main/java/com/czlisinterface/jldermyy/mapper/HisMapper_jldermyy.java b/lisinterface_jldermyy/src/main/java/com/czlisinterface/jldermyy/mapper/HisMapper_jldermyy.java
new file mode 100644
index 0000000..796bfc5
--- /dev/null
+++ b/lisinterface_jldermyy/src/main/java/com/czlisinterface/jldermyy/mapper/HisMapper_jldermyy.java
@@ -0,0 +1,9 @@
+package com.czlisinterface.jldermyy.mapper;
+
+import com.czlisinterface.system.pojo.LabReqmain;
+
+import java.util.List;
+
+public interface HisMapper_jldermyy {
+ List getLabreqmain();
+}
diff --git a/lisinterface_jldermyy/src/main/java/com/czlisinterface/jldermyy/service/impl/Lisinterface_jldermyy.java b/lisinterface_jldermyy/src/main/java/com/czlisinterface/jldermyy/service/impl/Lisinterface_jldermyy.java
new file mode 100644
index 0000000..1bbe2ac
--- /dev/null
+++ b/lisinterface_jldermyy/src/main/java/com/czlisinterface/jldermyy/service/impl/Lisinterface_jldermyy.java
@@ -0,0 +1,43 @@
+package com.czlisinterface.jldermyy.service.impl;
+
+import cn.hutool.json.JSONObject;
+import cn.hutool.json.JSONUtil;
+import com.czlisinterface.jldermyy.mapper.HisMapper_jldermyy;
+import com.czlisinterface.system.mapper.CommonMapper;
+import com.czlisinterface.system.pojo.ComUsr;
+import com.czlisinterface.system.pojo.LabReqmain;
+import com.czlisinterface.system.pojo.Result;
+import com.czlisinterface.system.service.impl.CommonImpl;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
+import org.springframework.context.annotation.Configuration;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+
+/**
+ * 监利第二人民医院
+ * 三佳his接口
+ */
+@Slf4j
+@Configuration
+@ConditionalOnProperty(name="lisinterface.action.type",havingValue = "jldermyy_new1")
+public class Lisinterface_jldermyy extends CommonImpl {
+
+ @Resource
+ CommonMapper commonMapper;
+ @Resource
+ HisMapper_jldermyy hisMapperJldermyy;
+
+
+ public Result test11(String param){
+// log.error("测试一条error日志");
+// log.debug("debug日志是否也能被记录呢?");
+// ComUsr userHISId = commonMapper.getUserHISId("00453");
+// return new Result("0",userHISId.toString());
+ List labreqmain = hisMapperJldermyy.getLabreqmain();
+ return new Result("0",labreqmain.toString());
+ }
+
+}
diff --git a/lisinterface_jldermyy/src/main/resources/mapper/HisMapper_jldermyy.xml b/lisinterface_jldermyy/src/main/resources/mapper/HisMapper_jldermyy.xml
new file mode 100644
index 0000000..5413853
--- /dev/null
+++ b/lisinterface_jldermyy/src/main/resources/mapper/HisMapper_jldermyy.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lisinterface_start/pom.xml b/lisinterface_start/pom.xml
new file mode 100644
index 0000000..e6dc227
--- /dev/null
+++ b/lisinterface_start/pom.xml
@@ -0,0 +1,130 @@
+
+ 4.0.0
+
+ org.example
+ lisinterface8.0
+ 1.0
+
+
+ lisinterface_start
+ jar
+
+ lisinterface_start
+ http://maven.apache.org
+
+
+ UTF-8
+
+
+
+
+ org.example
+ liscommon
+ 1.0
+
+
+ org.example
+ lisinterface_jldermyy
+ 1.0
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.5.15
+
+ ZIP
+
+
+ non-exists
+ non-exists
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 3.4.1
+
+
+
+ *.yml
+ *.xml
+ *.properties
+ static/**
+
+
+
+ true
+
+ lib/
+
+ false
+
+ com.czlisinterface.start.InterfaceApplication
+
+
+
+ ./config/
+
+
+ ${project.build.directory}
+
+
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ 2.8
+
+
+ copy-dependencies
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}/lib/
+
+
+
+
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ copy-resources
+ package
+
+ copy-resources
+
+
+
+
+ src/main/resources
+
+ *.yml
+ *.xml
+ *.properties
+ static/**
+
+
+
+ ${project.build.directory}/config
+
+
+
+
+
+ ${project.artifactId}
+
+
diff --git a/lisinterface_start/src/main/java/com/czlisinterface/start/InterfaceApplication.java b/lisinterface_start/src/main/java/com/czlisinterface/start/InterfaceApplication.java
new file mode 100644
index 0000000..2a047dc
--- /dev/null
+++ b/lisinterface_start/src/main/java/com/czlisinterface/start/InterfaceApplication.java
@@ -0,0 +1,19 @@
+package com.czlisinterface.start;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.web.servlet.ServletComponentScan;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+@SpringBootApplication
+@MapperScan("com.czlisinterface.**.mapper")
+@ComponentScan(basePackages = {"com.czlisinterface"})
+@EnableTransactionManagement
+@ServletComponentScan
+public class InterfaceApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(InterfaceApplication.class,args);
+ }
+}
diff --git a/lisinterface_start/src/main/resources/application-bj.yml b/lisinterface_start/src/main/resources/application-bj.yml
new file mode 100644
index 0000000..2730c62
--- /dev/null
+++ b/lisinterface_start/src/main/resources/application-bj.yml
@@ -0,0 +1,50 @@
+
+spring:
+ datasource:
+ dynamic:
+ primary: master
+ strict: false
+ datasource:
+ # 配置数据源信息
+ #lis数据库配置
+ master:
+ driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
+ url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=lisnet_ss
+ username: sa
+ password: jiangsheng
+ #院感数据库
+ sqlyg:
+ driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
+ url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=lisnet_ss
+ username: sa
+ password: jiangsheng
+
+ #HIS数据库
+ sqlhis:
+ driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
+ url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=lisnet_ss
+ username: sa
+ password: jiangsheng
+
+ #体检数据库
+ sqltj:
+ driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
+ url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=lisnet_ss
+ username: sa
+ password: jiangsheng
+
+logging:
+ file:
+ # 日志目录
+ #name: D:/log/springboot.log
+ path: D:/log_lisinterface
+
+#项目配置信息
+lisinterface:
+ action:
+ type: jldermyy_new1 #接口对象名
+ task:
+ type: 0 #开启定时任务 0为不开启,其他值为开启
+ cron: 0/10 * * * * ?
+ job: jldermyy_new1 #开启任务的后台定时业务类
+
diff --git a/lisinterface_start/src/main/resources/application.yml b/lisinterface_start/src/main/resources/application.yml
new file mode 100644
index 0000000..6b6ec85
--- /dev/null
+++ b/lisinterface_start/src/main/resources/application.yml
@@ -0,0 +1,26 @@
+server:
+ port: 9566
+ tomcat:
+ accept-count: 1000
+ threads:
+ # tomcat最大线程数,默认为200
+ max: 800
+ # Tomcat启动初始化的线程数,默认值10
+ min-spare: 100
+
+spring:
+ mvc:
+ pathmatch:
+ matching-strategy: ant_path_matcher
+ profiles:
+ active: bj
+
+mybatis-plus:
+ configuration:
+ #日志输入
+ #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+ # 这个配置会将执行的sql打印出来,这个可以存放在文件中 StdOutImpl的是只能打印到控制台
+ log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
+ # mybatis-plus默认开启了下滑线转换驼峰 需要关闭(设置为false)
+ map-underscore-to-camel-case: false
+
diff --git a/lisinterface_start/src/main/resources/logback-spring.xml b/lisinterface_start/src/main/resources/logback-spring.xml
new file mode 100644
index 0000000..73de213
--- /dev/null
+++ b/lisinterface_start/src/main/resources/logback-spring.xml
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{50} >>> %msg%n
+
+
+
+
+
+ ${LOG_PATH}/common.log
+
+ true
+
+
+ ${pattern}
+
+
+
+ INFO
+ ACCEPT
+ DENY
+
+
+
+ ${LOG_PATH}/common.log.%d{yyyy-MM-dd}
+
+ 30
+
+
+
+
+
+
+
+
+
+ ${LOG_PATH}/exception.log
+ true
+
+
+ ERROR
+ ACCEPT
+ DENY
+
+
+ ${pattern}
+
+
+ ${LOG_PATH}/exception.log.%d{yyyy-MM-dd}
+ 30
+
+
+
+
+
+
+ ${LOG_PATH}/mysql_log.log
+
+
+ ${LOG_PATH}/mysql_log.log.%d{yyyy-MM-dd}
+
+ 30
+
+
+ ${pattern}
+
+
+
+ DEBUG
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..2854060
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,65 @@
+
+ 4.0.0
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.6.3
+
+
+
+ org.example
+ lisinterface8.0
+ 1.0
+ pom
+
+ lisinterface8.0
+
+ liscommon
+ lisinterface_jldermyy
+ lisinterface_start
+
+
+
+ UTF-8
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+ org.projectlombok
+ lombok
+ true
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+ ${java.version}
+ ${java.version}
+ ${project.build.sourceEncoding}
+
+
+
+
+