检验护理记录注释
commit
d185e86aaf
@ -0,0 +1,149 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||||
|
<component name="FacetManager">
|
||||||
|
<facet type="web" name="Web">
|
||||||
|
<configuration>
|
||||||
|
<webroots>
|
||||||
|
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
|
||||||
|
</webroots>
|
||||||
|
<sourceRoots>
|
||||||
|
<root url="file://$MODULE_DIR$/src/main/java" />
|
||||||
|
<root url="file://$MODULE_DIR$/src/main/resources" />
|
||||||
|
</sourceRoots>
|
||||||
|
</configuration>
|
||||||
|
</facet>
|
||||||
|
<facet type="Spring" name="Spring">
|
||||||
|
<configuration />
|
||||||
|
</facet>
|
||||||
|
</component>
|
||||||
|
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||||
|
<output url="file://$MODULE_DIR$/target/classes" />
|
||||||
|
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.12.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.12.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.29" level="project" />
|
||||||
|
<orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.25" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.10.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.10.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.10.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.10.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.10.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.18.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.27" level="project" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.27" level="project" />
|
||||||
|
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.27" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.microsoft.sqlserver:sqljdbc4:4.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.oracle.database.jdbc:ojdbc6:11.2.0.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.oracle.database.jdbc:ucp:11.2.0.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.oracle.database.security:oraclepki:11.2.0.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.oracle.database.security:osdt_cert:11.2.0.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.oracle.database.security:osdt_core:11.2.0.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.oracle.database.ha:simplefan:11.2.0.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.oracle.database.ha:ons:11.2.0.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.3.2" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-jpa:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.4.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: jakarta.activation:jakarta.activation-api:1.2.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: jakarta.persistence:jakarta.persistence-api:2.2.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: jakarta.transaction:jakarta.transaction-api:1.3.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.hibernate:hibernate-core:5.4.8.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.javassist:javassist:3.24.0-GA" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.10.2" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: antlr:antlr:2.7.7" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.jboss:jandex:2.0.5.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.dom4j:dom4j:2.1.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.hibernate.common:hibernate-commons-annotations:5.1.0.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.glassfish.jaxb:jaxb-runtime:2.3.2" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.glassfish.jaxb:txw2:2.3.2" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.sun.istack:istack-commons-runtime:3.0.8" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.jvnet.staxex:stax-ex:1.8.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.sun.xml.fastinfoset:FastInfoset:1.2.16" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-jpa:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-orm:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.29" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-aspects:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.10" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-spring-boot-starter-jaxws:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-spring-boot-autoconfigure:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-transports-http:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-core:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.woodstox:woodstox-core:5.0.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.codehaus.woodstox:stax2-api:3.1.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.ws.xmlschema:xmlschema-core:2.2.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-frontend-jaxws:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: xml-resolver:xml-resolver:1.2" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.ow2.asm:asm:5.2" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-bindings-soap:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-wsdl:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: wsdl4j:wsdl4j:1.6.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-databinding-jaxb:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-bindings-xml:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-frontend-simple:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-addr:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-policy:3.2.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.neethi:neethi:3.1.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.3" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.2" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter:5.5.2" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-api:5.5.2" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.apiguardian:apiguardian-api:1.1.0" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.opentest4j:opentest4j:1.2.0" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-commons:1.5.2" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-params:5.5.2" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.5.2" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-engine:1.5.2" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-junit-jupiter:3.1.0" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.13.2" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest:2.1" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:3.1.0" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy-agent:1.10.2" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:2.6" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.springframework:spring-test:5.2.1.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.6.3" level="project" />
|
||||||
|
</component>
|
||||||
|
</module>
|
@ -0,0 +1,123 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
|
<version>2.2.1.RELEASE</version>
|
||||||
|
</parent>
|
||||||
|
<groupId>com.ann</groupId>
|
||||||
|
<artifactId>demo</artifactId>
|
||||||
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
<packaging>war</packaging>
|
||||||
|
<name>demo</name>
|
||||||
|
<description>Demo project for Spring Boot</description>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<java.version>1.8</java.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 连接池 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba</groupId>
|
||||||
|
<artifactId>druid</artifactId>
|
||||||
|
<version>1.0.9</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!--sqlserver驱动 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.microsoft.sqlserver</groupId>
|
||||||
|
<artifactId>sqljdbc4</artifactId>
|
||||||
|
<version>4.0</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.oracle.database.jdbc</groupId>
|
||||||
|
<artifactId>ojdbc6</artifactId>
|
||||||
|
<version>11.2.0.4</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.commons</groupId>
|
||||||
|
<artifactId>commons-lang3</artifactId>
|
||||||
|
<version>3.3.2</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
<!--数据库依赖-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-extension</artifactId>
|
||||||
|
<version>3.4.2</version>
|
||||||
|
</dependency>
|
||||||
|
<!--mybatis-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
|
<version>3.4.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-annotation</artifactId>
|
||||||
|
<version>3.4.2</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- CXF webservice -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.cxf</groupId>
|
||||||
|
<artifactId>cxf-spring-boot-starter-jaxws</artifactId>
|
||||||
|
<version>3.2.5</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.junit.vintage</groupId>
|
||||||
|
<artifactId>junit-vintage-engine</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-core</artifactId>
|
||||||
|
<version>3.4.2</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
<finalName>synchronization</finalName>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.ann.demo;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
@SpringBootApplication
|
||||||
|
public class DemoApplication {
|
||||||
|
public DemoApplication() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(DemoApplication.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.ann.demo;
|
||||||
|
|
||||||
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||||
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||||
|
|
||||||
|
public class ServletInitializer extends SpringBootServletInitializer {
|
||||||
|
|
||||||
|
public ServletInitializer() {
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||||||
|
return application.sources(DemoApplication.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.ann.demo.dao;
|
||||||
|
|
||||||
|
import com.ann.demo.entity.filing.OracleHL;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface OracleHLMapper {
|
||||||
|
|
||||||
|
|
||||||
|
String getConfigureTime();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Integer save(OracleHL oracleHL);
|
||||||
|
|
||||||
|
|
||||||
|
Integer setConfigureTime(String afterDate);
|
||||||
|
|
||||||
|
List<OracleHL> getOracleHByJzh(String jzh,String zyh,String zycs);
|
||||||
|
|
||||||
|
Integer del(String jzh,String zyh,String zycs);
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.ann.demo.dao;
|
||||||
|
|
||||||
|
import com.ann.demo.entity.filing.OraclePACS;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface OraclePacsMappper {
|
||||||
|
|
||||||
|
Integer save(OraclePACS oraclePACS);
|
||||||
|
|
||||||
|
List<OraclePACS> getOracleHByFrecId(String pdfFileNo);
|
||||||
|
|
||||||
|
Integer del(String pdfFileNo);
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.ann.demo.entity.filing;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class OracleHL {
|
||||||
|
@Id
|
||||||
|
private Long id;
|
||||||
|
//文件名称
|
||||||
|
private String showName;
|
||||||
|
//最后更新时间
|
||||||
|
private Date kdsj;
|
||||||
|
//记帐号
|
||||||
|
private String jzh;
|
||||||
|
//住院号
|
||||||
|
private String zyh;
|
||||||
|
//住院次数
|
||||||
|
private String zycs;
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.ann.demo.entity.filing;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class OraclePACS {
|
||||||
|
@Id
|
||||||
|
private Long id;
|
||||||
|
//文件名称
|
||||||
|
private String fentryName;
|
||||||
|
//文件id
|
||||||
|
private String pdfFileNo;
|
||||||
|
//最后更新时间
|
||||||
|
private Date affirmTime;
|
||||||
|
//记帐号
|
||||||
|
private String jzh;
|
||||||
|
//记帐号
|
||||||
|
private String zyh;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
package com.ann.demo;
|
||||||
|
|
||||||
|
|
||||||
|
import com.ann.demo.interfaces.HomepageDictionary;
|
||||||
|
import com.ann.demo.service.OracleHLService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||||
|
import org.springframework.scheduling.annotation.Scheduled;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.text.ParseException;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
@Configuration
|
||||||
|
@EnableScheduling
|
||||||
|
public class integrityTimeCon {
|
||||||
|
@Autowired
|
||||||
|
private HomepageDictionary homepageDictionary;
|
||||||
|
@Autowired
|
||||||
|
private OracleHLService oracleHLService;
|
||||||
|
|
||||||
|
|
||||||
|
@Scheduled(cron = "0 0/20 * * * ? ")
|
||||||
|
public void refreshIndicators(){
|
||||||
|
String configureTime = oracleHLService.getConfigureTime();
|
||||||
|
System.out.println("开始轮询时间"+configureTime);
|
||||||
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||||
|
Date sTime=null;
|
||||||
|
try {
|
||||||
|
sTime = simpleDateFormat.parse(configureTime);
|
||||||
|
} catch (ParseException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
//当时开始轮询时间四十分钟后
|
||||||
|
Date format = new Date(sTime .getTime() + 1200000);
|
||||||
|
String afterDate = simpleDateFormat.format(format);
|
||||||
|
homepageDictionary.Synchronizationhuli(configureTime);
|
||||||
|
homepageDictionary.SynchronizationPacs(configureTime);
|
||||||
|
oracleHLService.setConfigureTime(afterDate);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.ann.demo.interfaces;
|
||||||
|
|
||||||
|
import javax.jws.WebMethod;
|
||||||
|
import javax.jws.WebParam;
|
||||||
|
import javax.jws.WebService;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@WebService
|
||||||
|
public interface HomepageDictionary {
|
||||||
|
|
||||||
|
@WebMethod
|
||||||
|
String Synchronizationhuli(@WebParam(name = "configureTime") String configureTime);
|
||||||
|
|
||||||
|
|
||||||
|
@WebMethod
|
||||||
|
String SynchronizationPacs(@WebParam(name = "configureTime") String configureTime);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,149 @@
|
|||||||
|
//
|
||||||
|
// Source code recreated from a .class file by IntelliJ IDEA
|
||||||
|
// (powered by Fernflower decompiler)
|
||||||
|
//
|
||||||
|
|
||||||
|
package com.ann.demo.interfaces.impl;
|
||||||
|
|
||||||
|
import com.ann.demo.entity.filing.OraclePACS;
|
||||||
|
import com.ann.demo.entity.filing.OracleHL;
|
||||||
|
import com.ann.demo.interfaces.HomepageDictionary;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.jws.WebService;
|
||||||
|
|
||||||
|
import com.ann.demo.service.OraclePacsService;
|
||||||
|
import com.ann.demo.service.OracleHLService;
|
||||||
|
import com.ann.demo.util.OracleConnect;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
|
@WebService(
|
||||||
|
serviceName = "HomepageDictionary",
|
||||||
|
targetNamespace = "http://interfaces.demo.ann.com/",
|
||||||
|
endpointInterface = "com.ann.demo.interfaces.HomepageDictionary"
|
||||||
|
)
|
||||||
|
|
||||||
|
public class HomepageDictionaryImpl implements HomepageDictionary {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
OracleHLService oracleHLService;
|
||||||
|
@Autowired
|
||||||
|
OraclePacsService oraclePacsService;
|
||||||
|
|
||||||
|
//同步护理记录
|
||||||
|
@Override
|
||||||
|
public String Synchronizationhuli(String configureTime) {
|
||||||
|
String sql1 = "SELECT DISTINCT JZH,ZYH,ZYCS FROM V_JSWZH_HL_DATA WHERE (ENABLED_VALUE = 'Y' OR ENABLED_VALUE IS NULL) AND SHOW_NAME != '护嘱单' AND SHOW_NAME != '术前准备与手术交接记录单' AND SHOW_NAME != '新生儿转NICU交接记录单' AND SHOW_NAME != '护理计划' AND SHOW_NAME != '首次护理记录单(二)' AND SHOW_NAME != '健康教育' AND SHOW_NAME != '产程图' AND SHOW_NAME != '普外科术后疼痛护理单' and KDSJ > to_date('" + configureTime + "', 'YYYY/MM/DD HH24:MI:SS')";
|
||||||
|
try {
|
||||||
|
List<Map> selectList1 = OracleConnect.selectListConvertMap(sql1);
|
||||||
|
if (!CollectionUtils.isEmpty(selectList1)) {
|
||||||
|
for (Map map1 : selectList1) {
|
||||||
|
String jzh = (String) map1.get("JZH");
|
||||||
|
String zyh = (String) map1.get("ZYH");
|
||||||
|
String zycs = map1.get("ZYCS").toString();
|
||||||
|
//查询是否有记录
|
||||||
|
List<OracleHL> oracleHByJzh = oracleHLService.getOracleHByJzh(jzh,zyh,zycs);
|
||||||
|
if (oracleHByJzh.size() > 0) {
|
||||||
|
oracleHLService.del(jzh,zyh,zycs);
|
||||||
|
String sqlHl = "SELECT SHOW_NAME,KDSJ,JZH,ZYH,ZYCS FROM V_JSWZH_HL_DATA WHERE (ENABLED_VALUE = 'Y' OR ENABLED_VALUE IS NULL) AND SHOW_NAME != '护嘱单' AND SHOW_NAME != '术前准备与手术交接记录单' AND SHOW_NAME != '新生儿转NICU交接记录单' AND SHOW_NAME != '护理计划' AND SHOW_NAME != '首次护理记录单(二)' AND SHOW_NAME != '健康教育' AND SHOW_NAME != '产程图' AND SHOW_NAME != '普外科术后疼痛护理单' and JZH = '" + jzh + "' and ZYH = '" + zyh + "' and ZYCS = '" + zycs + "'";
|
||||||
|
List<Map> mapHl = OracleConnect.selectListConvertMap(sqlHl);
|
||||||
|
for (Map oracleHl : mapHl) {
|
||||||
|
String jzhHl = (String) oracleHl.get("JZH");
|
||||||
|
//获取文件名
|
||||||
|
String showName = (String) oracleHl.get("SHOW_NAME");
|
||||||
|
Date kdsjDate = null;
|
||||||
|
if (null != oracleHl.get("KDSJ")) {
|
||||||
|
try {
|
||||||
|
kdsjDate = (Date) oracleHl.get("KDSJ");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
String zyhhl = (String) map1.get("ZYH");
|
||||||
|
String zycshl = (String) map1.get("ZYCS").toString();
|
||||||
|
OracleHL oracleHL = new OracleHL();
|
||||||
|
oracleHL.setShowName(showName);
|
||||||
|
oracleHL.setKdsj(kdsjDate);
|
||||||
|
oracleHL.setJzh(jzhHl);
|
||||||
|
oracleHL.setZyh(zyhhl);
|
||||||
|
oracleHL.setZycs(zycshl);
|
||||||
|
oracleHLService.save(oracleHL);
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
//不存在则新增
|
||||||
|
String sqlHl = "SELECT SHOW_NAME,KDSJ,JZH,ZYH,ZYCS FROM V_JSWZH_HL_DATA WHERE (ENABLED_VALUE = 'Y' OR ENABLED_VALUE IS NULL) AND SHOW_NAME != '护嘱单' AND SHOW_NAME != '术前准备与手术交接记录单' AND SHOW_NAME != '新生儿转NICU交接记录单' AND SHOW_NAME != '护理计划' AND SHOW_NAME != '首次护理记录单(二)' AND SHOW_NAME != '健康教育' AND SHOW_NAME != '产程图' AND SHOW_NAME != '普外科术后疼痛护理单' and JZH = '" + jzh + "' and ZYH = '" + zyh + "' and ZYCS = '" + zycs + "'";
|
||||||
|
List<Map> mapHl = OracleConnect.selectListConvertMap(sqlHl);
|
||||||
|
for (Map oracleHl : mapHl) {
|
||||||
|
String jzhHl = (String) oracleHl.get("JZH");
|
||||||
|
//获取文件名
|
||||||
|
String showName = (String) oracleHl.get("SHOW_NAME");
|
||||||
|
Date kdsjDate = null;
|
||||||
|
if (null != oracleHl.get("KDSJ")) {
|
||||||
|
try {
|
||||||
|
kdsjDate = (Date) oracleHl.get("KDSJ");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
String zyhhl = (String) map1.get("ZYH");
|
||||||
|
String zycshl = (String) map1.get("ZYCS").toString();
|
||||||
|
OracleHL oracleHL = new OracleHL();
|
||||||
|
oracleHL.setShowName(showName);
|
||||||
|
oracleHL.setKdsj(kdsjDate);
|
||||||
|
oracleHL.setJzh(jzhHl);
|
||||||
|
oracleHL.setZyh(zyhhl);
|
||||||
|
oracleHL.setZycs(zycshl);
|
||||||
|
oracleHLService.save(oracleHL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
//同步Pacs
|
||||||
|
@Override
|
||||||
|
public String SynchronizationPacs(String configureTime) {
|
||||||
|
String sql1 = "SELECT VISIT_ID,ZYH,REPORT_NAME,PDF_FILE_NO,REGISTER_TIME FROM V_JSWZH_PACS_DATA_NEW WHERE REGISTER_TIME > to_date('" + configureTime + "', 'YYYY/MM/DD HH24:MI:SS') ";
|
||||||
|
try {
|
||||||
|
List<Map> selectList1 = OracleConnect.selectListConvertMap(sql1);
|
||||||
|
if (!CollectionUtils.isEmpty(selectList1)) {
|
||||||
|
for (Map map1 : selectList1) {
|
||||||
|
String pdfFileNo = (String) map1.get("PDF_FILE_NO");
|
||||||
|
//查询是否有记录
|
||||||
|
List<OraclePACS> oracleHByFrecId = oraclePacsService.getOracleHByFrecId(pdfFileNo);
|
||||||
|
//有记录更新
|
||||||
|
if (oracleHByFrecId.size()>0){
|
||||||
|
oraclePacsService.del(pdfFileNo);
|
||||||
|
}
|
||||||
|
String jzh = (String) map1.get("VISIT_ID");
|
||||||
|
String zyh = (String) map1.get("ZYH");
|
||||||
|
//获取文件名
|
||||||
|
String fentryName = (String) map1.get("REPORT_NAME");
|
||||||
|
Date affirmTime = null;
|
||||||
|
if (null != map1.get("REGISTER_TIME")) {
|
||||||
|
try {
|
||||||
|
affirmTime = (Date) map1.get("REGISTER_TIME");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
OraclePACS oraclePACS = new OraclePACS();
|
||||||
|
oraclePACS.setJzh(jzh);
|
||||||
|
oraclePACS.setZyh(zyh);
|
||||||
|
oraclePACS.setAffirmTime(affirmTime);
|
||||||
|
oraclePACS.setFentryName(fentryName);
|
||||||
|
oraclePACS.setPdfFileNo(pdfFileNo);
|
||||||
|
oraclePacsService.save(oraclePACS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.ann.demo.service;
|
||||||
|
|
||||||
|
import com.ann.demo.entity.filing.OracleHL;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface OracleHLService {
|
||||||
|
|
||||||
|
int setConfigureTime(String afterDate);
|
||||||
|
|
||||||
|
String getConfigureTime();
|
||||||
|
|
||||||
|
Integer save(OracleHL oracleHL);
|
||||||
|
|
||||||
|
List<OracleHL> getOracleHByJzh(String jzh,String zyh,String zycs);
|
||||||
|
|
||||||
|
Integer del(String jzh,String zyh,String zycs);
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.ann.demo.service;
|
||||||
|
|
||||||
|
import com.ann.demo.entity.filing.OraclePACS;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface OraclePacsService {
|
||||||
|
|
||||||
|
Integer save(OraclePACS oraclePACS);
|
||||||
|
|
||||||
|
List<OraclePACS> getOracleHByFrecId(String pdfFileNo);
|
||||||
|
|
||||||
|
Integer del(String pdfFileNo);
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
package com.ann.demo.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.ann.demo.entity.filing.OracleHL;
|
||||||
|
import com.ann.demo.dao.OracleHLMapper;
|
||||||
|
import com.ann.demo.service.OracleHLService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class OracleHLServiceImpl implements OracleHLService {
|
||||||
|
@Autowired
|
||||||
|
OracleHLMapper oracleHLMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int setConfigureTime(String afterDate) {
|
||||||
|
return oracleHLMapper.setConfigureTime(afterDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getConfigureTime() {
|
||||||
|
return oracleHLMapper.getConfigureTime();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer save(OracleHL oracleHL) {
|
||||||
|
return oracleHLMapper.save(oracleHL);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<OracleHL> getOracleHByJzh(String jzh,String zyh,String zycs) {
|
||||||
|
return oracleHLMapper.getOracleHByJzh(jzh,zyh,zycs);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer del(String jzh,String zyh,String zycs) {
|
||||||
|
return oracleHLMapper.del(jzh,zyh,zycs);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.ann.demo.service.impl;
|
||||||
|
|
||||||
|
import com.ann.demo.dao.OraclePacsMappper;
|
||||||
|
import com.ann.demo.entity.filing.OraclePACS;
|
||||||
|
import com.ann.demo.service.OraclePacsService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class OraclePacsServiceImpl implements OraclePacsService {
|
||||||
|
@Autowired
|
||||||
|
OraclePacsMappper oraclePacsMappper;
|
||||||
|
@Override
|
||||||
|
public Integer save(OraclePACS oraclePACS) {
|
||||||
|
return oraclePacsMappper.save(oraclePACS);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<OraclePACS> getOracleHByFrecId(String pdfFileNo) {
|
||||||
|
return oraclePacsMappper.getOracleHByFrecId(pdfFileNo);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer del(String pdfFileNo) {
|
||||||
|
return oraclePacsMappper.del(pdfFileNo);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,75 @@
|
|||||||
|
package com.ann.demo.util;
|
||||||
|
|
||||||
|
import java.lang.reflect.Field;
|
||||||
|
import java.lang.reflect.Modifier;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class MapObjUtil {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实体对象转成Map
|
||||||
|
*
|
||||||
|
* @param obj 实体对象
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static Map<String, Object> object2Map(Object obj) {
|
||||||
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
|
if (obj == null) {
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
Class clazz = obj.getClass();
|
||||||
|
Field[] fields = clazz.getDeclaredFields();
|
||||||
|
try {
|
||||||
|
for (Field field : fields) {
|
||||||
|
field.setAccessible(true);
|
||||||
|
map.put(field.getName(), field.get(obj));
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Map转成实体对象
|
||||||
|
*
|
||||||
|
* @param map map实体对象包含属性
|
||||||
|
* @param clazz 实体对象类型
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static <T> T map2Object(Map<Object, Object> map, Class<T> clazz) {
|
||||||
|
if (map == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
T obj = null;
|
||||||
|
try {
|
||||||
|
obj = clazz.newInstance();
|
||||||
|
Field[] fields = obj.getClass().getDeclaredFields();
|
||||||
|
for (Field field : fields) {
|
||||||
|
int mod = field.getModifiers();
|
||||||
|
if (Modifier.isStatic(mod) || Modifier.isFinal(mod)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
field.setAccessible(true);
|
||||||
|
String filedTypeName = field.getType().getName();
|
||||||
|
if (filedTypeName.equalsIgnoreCase("java.util.date")) {
|
||||||
|
String datetimestamp = String.valueOf(map.get(field.getName()));
|
||||||
|
if (datetimestamp.equalsIgnoreCase("null")) {
|
||||||
|
field.set(obj, null);
|
||||||
|
} else {
|
||||||
|
field.set(obj, new Date(Long.parseLong(datetimestamp)));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
field.set(obj, map.get(field.getName()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.ann.demo.util;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
public class PropertiesUtils {
|
||||||
|
private static String fileName = "\\config\\application.properties";
|
||||||
|
private static Properties props;
|
||||||
|
|
||||||
|
synchronized static private void loadProps(){
|
||||||
|
if (props==null) {
|
||||||
|
props = new Properties();
|
||||||
|
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
||||||
|
try {
|
||||||
|
props.load(loader.getResourceAsStream(fileName));
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getProperty(String key){
|
||||||
|
if(null == props) {
|
||||||
|
loadProps();
|
||||||
|
}
|
||||||
|
return props.getProperty(key);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
url: jdbc:sqlserver://db.docus.cn:1433;DatabaseName=emr_record
|
||||||
|
username: sa
|
||||||
|
password: docus@702
|
||||||
|
# url: jdbc:sqlserver://localhost:1433;DatabaseName=gm_record
|
||||||
|
# username: sa
|
||||||
|
# password: admin123
|
||||||
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||||
|
|
||||||
|
jpa:
|
||||||
|
hibernate:
|
||||||
|
dialect: org.hibernate.dialect.SQLServer2008Dialect
|
||||||
|
|
||||||
|
hikari:
|
||||||
|
#是否为只读数据库
|
||||||
|
read-only: false
|
||||||
|
# 等待连接池分配链接的最大时长
|
||||||
|
connection-timeout: 60000
|
||||||
|
# 一个链接idle状态最大时长
|
||||||
|
idle-timeout: 60000
|
||||||
|
validation-timeout: 3000
|
||||||
|
# 一个链接最长的生命时长,超时没有被使用则被释放掉 简易比数据库超时时长少 30s
|
||||||
|
max-lifetime: 70000
|
||||||
|
login-timeout: 5
|
||||||
|
# 连接池允许的最大连接数
|
||||||
|
maximum-pool-size: 60
|
||||||
|
# 连接池维护的最小空闲连接数
|
||||||
|
minimum-idle: 10
|
||||||
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
#server.port=8899
|
||||||
|
#server.address=localhost
|
||||||
|
|
||||||
|
oracleUrl = 200.100.100.1:1521/orc1
|
||||||
|
oracleUserName = Jswzh
|
||||||
|
oraclePassWord = Jswzh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#oracleUrl = 47.111.21.195:1521/ORCL
|
||||||
|
#oracleUserName = docus
|
||||||
|
#oraclePassWord = docus702
|
||||||
|
|
@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="com.ann.demo.dao.OracleHLMapper">
|
||||||
|
<insert id="save" parameterType="com.ann.demo.entity.filing.OracleHL">
|
||||||
|
insert into oracleHL
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||||
|
<if test="showName != null" >
|
||||||
|
showName,
|
||||||
|
</if>
|
||||||
|
<if test="kdsj != null" >
|
||||||
|
kdsj ,
|
||||||
|
</if>
|
||||||
|
<if test="jzh != null" >
|
||||||
|
jzh,
|
||||||
|
</if>
|
||||||
|
<if test="zyh != null" >
|
||||||
|
zyh,
|
||||||
|
</if>
|
||||||
|
<if test="zycs != null" >
|
||||||
|
zycs,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||||
|
<if test="showName != null" >
|
||||||
|
#{showName},
|
||||||
|
</if>
|
||||||
|
<if test="kdsj != null" >
|
||||||
|
#{kdsj},
|
||||||
|
</if>
|
||||||
|
<if test="jzh != null" >
|
||||||
|
#{jzh},
|
||||||
|
</if>
|
||||||
|
<if test="zyh != null" >
|
||||||
|
#{zyh},
|
||||||
|
</if>
|
||||||
|
<if test="zycs != null" >
|
||||||
|
#{zycs},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<update id="setConfigureTime" parameterType="java.lang.String">
|
||||||
|
update oracleTime set integrityTime=#{afterDate}
|
||||||
|
</update>
|
||||||
|
<delete id="del" parameterType="java.lang.String">
|
||||||
|
delete from oracleHL
|
||||||
|
where jzh=#{jzh} and zyh=#{zyh} and zycs=#{zycs}
|
||||||
|
</delete>
|
||||||
|
<select id="getConfigureTime" resultType="java.lang.String">
|
||||||
|
SELECT * FROM oracleTime
|
||||||
|
</select>
|
||||||
|
<select id="getOracleHByJzh" resultType="com.ann.demo.entity.filing.OracleHL">
|
||||||
|
SELECT * FROM oracleHL where jzh=#{jzh} and zyh=#{zyh} and zycs=#{zycs}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,51 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="com.ann.demo.dao.OraclePacsMappper">
|
||||||
|
|
||||||
|
|
||||||
|
<insert id="save" parameterType="com.ann.demo.entity.filing.OraclePACS">
|
||||||
|
insert into oraclePACS
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||||
|
<if test="jzh != null" >
|
||||||
|
jzh,
|
||||||
|
</if>
|
||||||
|
<if test="zyh != null" >
|
||||||
|
zyh ,
|
||||||
|
</if>
|
||||||
|
<if test="fentryName != null" >
|
||||||
|
fentryName,
|
||||||
|
</if>
|
||||||
|
<if test="pdfFileNo != null" >
|
||||||
|
pdfFileNo,
|
||||||
|
</if>
|
||||||
|
<if test="affirmTime != null" >
|
||||||
|
affirmTime,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||||
|
<if test="jzh != null" >
|
||||||
|
#{jzh},
|
||||||
|
</if>
|
||||||
|
<if test="zyh != null" >
|
||||||
|
#{zyh},
|
||||||
|
</if>
|
||||||
|
<if test="fentryName != null" >
|
||||||
|
#{fentryName},
|
||||||
|
</if>
|
||||||
|
<if test="pdfFileNo != null" >
|
||||||
|
#{pdfFileNo},
|
||||||
|
</if>
|
||||||
|
<if test="affirmTime != null" >
|
||||||
|
#{affirmTime},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<delete id="del" parameterType="java.lang.String">
|
||||||
|
delete from oraclePACS
|
||||||
|
where pdfFileNo=#{pdfFileNo}
|
||||||
|
</delete>
|
||||||
|
<select id="getOracleHByFrecId" resultType="com.ann.demo.entity.filing.OraclePACS"
|
||||||
|
parameterType="java.lang.String">
|
||||||
|
SELECT * FROM oraclePACS where pdfFileNo=#{pdfFileNo}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue