init:反编译代码
commit
ddf93d12dc
@ -0,0 +1,35 @@
|
||||
# Compiled class file
|
||||
*.class
|
||||
|
||||
# Log file
|
||||
*.log
|
||||
|
||||
# BlueJ files
|
||||
*.ctxt
|
||||
|
||||
# Mobile Tools for Java (J2ME)
|
||||
.mtj.tmp/
|
||||
|
||||
# Package Files #
|
||||
*.jar
|
||||
*.war
|
||||
*.nar
|
||||
*.ear
|
||||
*.zip
|
||||
*.tar.gz
|
||||
*.rar
|
||||
*.iml
|
||||
# 直接在这里添加即可,注意加上备注,好知道是忽略什么文件 #
|
||||
|
||||
##############################
|
||||
## Folders ##
|
||||
##############################
|
||||
target
|
||||
out
|
||||
log
|
||||
configLog
|
||||
.idea
|
||||
.project
|
||||
**/.mvn
|
||||
**/mvnw
|
||||
**/mvnw.cmd
|
||||
@ -0,0 +1,160 @@
|
||||
<?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.5.6</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>demo</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>docus-mz-empcllect</name>
|
||||
<description>电子病历采集</description>
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-logging</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dom4j</groupId>
|
||||
<artifactId>dom4j</artifactId>
|
||||
<version>2.1.1</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/jaxen/jaxen -->
|
||||
<dependency>
|
||||
<groupId>jaxen</groupId>
|
||||
<artifactId>jaxen</artifactId>
|
||||
<version>1.1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.75</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.15</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.16.14</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.spring4all</groupId>
|
||||
<artifactId>swagger-spring-boot-starter</artifactId>
|
||||
<version>1.9.0.RELEASE</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>3.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
<version>3.3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpcore</artifactId>
|
||||
<version>4.4.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
<version>4.5.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpmime</artifactId>
|
||||
<version>4.4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.axis</groupId>
|
||||
<artifactId>axis</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/org.apache.axis/axis-jaxrpc -->
|
||||
<dependency>
|
||||
<groupId>org.apache.axis</groupId>
|
||||
<artifactId>axis-jaxrpc</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/commons-discovery/commons-discovery -->
|
||||
<dependency>
|
||||
<groupId>commons-discovery</groupId>
|
||||
<artifactId>commons-discovery</artifactId>
|
||||
<version>0.2</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/commons-logging/commons-logging -->
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.1.1</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/wsdl4j/wsdl4j -->
|
||||
<dependency>
|
||||
<groupId>wsdl4j</groupId>
|
||||
<artifactId>wsdl4j</artifactId>
|
||||
<version>1.6.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.axis</groupId>
|
||||
<artifactId>axis</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-discovery</groupId>
|
||||
<artifactId>commons-discovery</artifactId>
|
||||
<version>0.2</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.axis</groupId>
|
||||
<artifactId>axis-jaxrpc</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,19 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
@EnableScheduling
|
||||
@SpringBootApplication
|
||||
public class DemoApplication {
|
||||
public static void main(String[] args) {
|
||||
System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
|
||||
SpringApplication.run(DemoApplication.class, args);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,74 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.config;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties;
|
||||
import com.baomidou.mybatisplus.core.MybatisConfiguration;
|
||||
import com.baomidou.mybatisplus.core.config.GlobalConfig;
|
||||
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
|
||||
import org.apache.ibatis.logging.nologging.NoLoggingImpl;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.beans.ConstructorProperties;
|
||||
import java.util.Objects;
|
||||
|
||||
@Configuration
|
||||
@EnableTransactionManagement
|
||||
@MapperScan({"com.docus.bgts.mapper"})
|
||||
@ConditionalOnClass({PaginationInterceptor.class})
|
||||
public class MybatisPlusConfig {
|
||||
private final MybatisPlusProperties mybatisPlusProperties;
|
||||
|
||||
@Bean
|
||||
public PaginationInterceptor paginationInterceptor() {
|
||||
PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
|
||||
return paginationInterceptor;
|
||||
}
|
||||
|
||||
@PostConstruct
|
||||
public void initMybatisConfig() {
|
||||
this.mybatisPlusProperties.setMapperLocations(new String[]{"classpath*:/mapper/*Mapper.xml"});
|
||||
this.mybatisPlusProperties.setTypeAliasesPackage("com.docus.bgts.entity");
|
||||
MybatisConfiguration configuration = this.mybatisPlusProperties.getConfiguration();
|
||||
if (Objects.isNull(configuration)) {
|
||||
configuration = new MybatisConfiguration();
|
||||
}
|
||||
|
||||
configuration.setMapUnderscoreToCamelCase(true);
|
||||
configuration.setCacheEnabled(true);
|
||||
configuration.setLogImpl(NoLoggingImpl.class);
|
||||
this.mybatisPlusProperties.setConfiguration(configuration);
|
||||
GlobalConfig globalConfig = this.mybatisPlusProperties.getGlobalConfig();
|
||||
if (Objects.isNull(globalConfig)) {
|
||||
globalConfig = new GlobalConfig();
|
||||
}
|
||||
|
||||
GlobalConfig.DbConfig dbConfig = globalConfig.getDbConfig();
|
||||
if (Objects.isNull(dbConfig)) {
|
||||
dbConfig = new GlobalConfig.DbConfig();
|
||||
}
|
||||
|
||||
configuration.setCallSettersOnNulls(true);
|
||||
dbConfig.setIdType(IdType.ASSIGN_ID);
|
||||
dbConfig.setTableUnderline(true);
|
||||
dbConfig.setLogicDeleteValue("1");
|
||||
dbConfig.setLogicNotDeleteValue("0");
|
||||
dbConfig.setLogicDeleteField("def_flag");
|
||||
globalConfig.setDbConfig(dbConfig);
|
||||
globalConfig.setBanner(false);
|
||||
}
|
||||
|
||||
@ConstructorProperties({"mybatisPlusProperties"})
|
||||
public MybatisPlusConfig(final MybatisPlusProperties mybatisPlusProperties) {
|
||||
this.mybatisPlusProperties = mybatisPlusProperties;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.config;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@Configuration
|
||||
public class ThreadPoolConfig {
|
||||
@Bean
|
||||
public ThreadPoolExecutor threadPoolExecutor() {
|
||||
return new ThreadPoolExecutor(Runtime.getRuntime().availableProcessors(), (int)((double)Runtime.getRuntime().availableProcessors() / 0.1), 60L, TimeUnit.SECONDS, new LinkedBlockingQueue(Runtime.getRuntime().availableProcessors()), Executors.defaultThreadFactory(), new ThreadPoolExecutor.CallerRunsPolicy());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.config;
|
||||
|
||||
import com.docus.bgts.handler.ITBasicWebService;
|
||||
import com.docus.bgts.handler.TBasicWebService;
|
||||
import javax.xml.ws.Endpoint;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
public class WebServiceConfig {
|
||||
private final Logger log = LoggerFactory.getLogger(this.getClass());
|
||||
@Value("${system.code}")
|
||||
private String systemCode;
|
||||
@Value("${system.prop}")
|
||||
private String systemProp;
|
||||
|
||||
@Bean
|
||||
public ITBasicWebService tBasicWebService() {
|
||||
return new TBasicWebService();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public Endpoint endpoint() {
|
||||
this.log.info(" web service服务已发布 ");
|
||||
String address = "http://0.0.0.0:" + this.systemProp + "/" + this.systemCode;
|
||||
Endpoint publish = Endpoint.publish(address, this.tBasicWebService());
|
||||
this.log.info(" " + address);
|
||||
return publish;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,170 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class SystemCollectConfig {
|
||||
private String sealCollectClassify;
|
||||
private List<CollectConfig> sealCollectConfigs;
|
||||
|
||||
public String getSealCollectClassify() {
|
||||
return this.sealCollectClassify;
|
||||
}
|
||||
|
||||
public List<CollectConfig> getSealCollectConfigs() {
|
||||
return this.sealCollectConfigs;
|
||||
}
|
||||
|
||||
public void setSealCollectClassify(final String sealCollectClassify) {
|
||||
this.sealCollectClassify = sealCollectClassify;
|
||||
}
|
||||
|
||||
public void setSealCollectConfigs(final List<CollectConfig> sealCollectConfigs) {
|
||||
this.sealCollectConfigs = sealCollectConfigs;
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof SystemCollectConfig)) {
|
||||
return false;
|
||||
} else {
|
||||
SystemCollectConfig other = (SystemCollectConfig)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$sealCollectClassify = this.getSealCollectClassify();
|
||||
Object other$sealCollectClassify = other.getSealCollectClassify();
|
||||
if (this$sealCollectClassify == null) {
|
||||
if (other$sealCollectClassify != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$sealCollectClassify.equals(other$sealCollectClassify)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$sealCollectConfigs = this.getSealCollectConfigs();
|
||||
Object other$sealCollectConfigs = other.getSealCollectConfigs();
|
||||
if (this$sealCollectConfigs == null) {
|
||||
if (other$sealCollectConfigs != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$sealCollectConfigs.equals(other$sealCollectConfigs)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof SystemCollectConfig;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $sealCollectClassify = this.getSealCollectClassify();
|
||||
result = result * 59 + ($sealCollectClassify == null ? 43 : $sealCollectClassify.hashCode());
|
||||
Object $sealCollectConfigs = this.getSealCollectConfigs();
|
||||
result = result * 59 + ($sealCollectConfigs == null ? 43 : $sealCollectConfigs.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "SystemCollectConfig(sealCollectClassify=" + this.getSealCollectClassify() + ", sealCollectConfigs=" + this.getSealCollectConfigs() + ")";
|
||||
}
|
||||
|
||||
public static class CollectConfig {
|
||||
private String desc;
|
||||
private String url;
|
||||
|
||||
public String getDesc() {
|
||||
return this.desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return this.url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof CollectConfig)) {
|
||||
return false;
|
||||
} else {
|
||||
CollectConfig other = (CollectConfig)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$desc = this.getDesc();
|
||||
Object other$desc = other.getDesc();
|
||||
if (this$desc == null) {
|
||||
if (other$desc != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$desc.equals(other$desc)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$url = this.getUrl();
|
||||
Object other$url = other.getUrl();
|
||||
if (this$url == null) {
|
||||
if (other$url != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$url.equals(other$url)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof CollectConfig;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $desc = this.getDesc();
|
||||
result = result * 59 + ($desc == null ? 43 : $desc.hashCode());
|
||||
Object $url = this.getUrl();
|
||||
result = result * 59 + ($url == null ? 43 : $url.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "SystemCollectConfig.CollectConfig(desc=" + this.getDesc() + ", url=" + this.getUrl() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
public static enum Classify {
|
||||
SEAL_COLLECT("SEAL_COLLECT");
|
||||
|
||||
final String classify;
|
||||
|
||||
private Classify(String classify) {
|
||||
this.classify = classify;
|
||||
}
|
||||
|
||||
public String getClassify() {
|
||||
return this.classify;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,175 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@ApiModel("文件库中的省中医病案采集表")
|
||||
public class AfInterfaceCollect implements Serializable {
|
||||
private Long id;
|
||||
@ApiModelProperty("任务流水号")
|
||||
private String serialnum;
|
||||
@ApiModelProperty("记账号")
|
||||
private String jzh;
|
||||
@ApiModelProperty("任务数")
|
||||
private Integer taskCount;
|
||||
@ApiModelProperty("完成数")
|
||||
private Integer completeCount;
|
||||
@ApiModelProperty("创建时间")
|
||||
private Date createTime;
|
||||
|
||||
public Long getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public String getSerialnum() {
|
||||
return this.serialnum;
|
||||
}
|
||||
|
||||
public String getJzh() {
|
||||
return this.jzh;
|
||||
}
|
||||
|
||||
public Integer getTaskCount() {
|
||||
return this.taskCount;
|
||||
}
|
||||
|
||||
public Integer getCompleteCount() {
|
||||
return this.completeCount;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setId(final Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setSerialnum(final String serialnum) {
|
||||
this.serialnum = serialnum;
|
||||
}
|
||||
|
||||
public void setJzh(final String jzh) {
|
||||
this.jzh = jzh;
|
||||
}
|
||||
|
||||
public void setTaskCount(final Integer taskCount) {
|
||||
this.taskCount = taskCount;
|
||||
}
|
||||
|
||||
public void setCompleteCount(final Integer completeCount) {
|
||||
this.completeCount = completeCount;
|
||||
}
|
||||
|
||||
public void setCreateTime(final Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof AfInterfaceCollect)) {
|
||||
return false;
|
||||
} else {
|
||||
AfInterfaceCollect other = (AfInterfaceCollect)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$id = this.getId();
|
||||
Object other$id = other.getId();
|
||||
if (this$id == null) {
|
||||
if (other$id != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$serialnum = this.getSerialnum();
|
||||
Object other$serialnum = other.getSerialnum();
|
||||
if (this$serialnum == null) {
|
||||
if (other$serialnum != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$serialnum.equals(other$serialnum)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$jzh = this.getJzh();
|
||||
Object other$jzh = other.getJzh();
|
||||
if (this$jzh == null) {
|
||||
if (other$jzh != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$jzh.equals(other$jzh)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$taskCount = this.getTaskCount();
|
||||
Object other$taskCount = other.getTaskCount();
|
||||
if (this$taskCount == null) {
|
||||
if (other$taskCount != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$taskCount.equals(other$taskCount)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$completeCount = this.getCompleteCount();
|
||||
Object other$completeCount = other.getCompleteCount();
|
||||
if (this$completeCount == null) {
|
||||
if (other$completeCount != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$completeCount.equals(other$completeCount)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$createTime = this.getCreateTime();
|
||||
Object other$createTime = other.getCreateTime();
|
||||
if (this$createTime == null) {
|
||||
if (other$createTime != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$createTime.equals(other$createTime)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof AfInterfaceCollect;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
Object $serialnum = this.getSerialnum();
|
||||
result = result * 59 + ($serialnum == null ? 43 : $serialnum.hashCode());
|
||||
Object $jzh = this.getJzh();
|
||||
result = result * 59 + ($jzh == null ? 43 : $jzh.hashCode());
|
||||
Object $taskCount = this.getTaskCount();
|
||||
result = result * 59 + ($taskCount == null ? 43 : $taskCount.hashCode());
|
||||
Object $completeCount = this.getCompleteCount();
|
||||
result = result * 59 + ($completeCount == null ? 43 : $completeCount.hashCode());
|
||||
Object $createTime = this.getCreateTime();
|
||||
result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AfInterfaceCollect(id=" + this.getId() + ", serialnum=" + this.getSerialnum() + ", jzh=" + this.getJzh() + ", taskCount=" + this.getTaskCount() + ", completeCount=" + this.getCompleteCount() + ", createTime=" + this.getCreateTime() + ")";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@ApiModel("撤销文件类")
|
||||
public class CanlcelDto {
|
||||
@ApiModelProperty("采集流水号")
|
||||
private String serialnum;
|
||||
|
||||
public String getSerialnum() {
|
||||
return this.serialnum;
|
||||
}
|
||||
|
||||
public void setSerialnum(final String serialnum) {
|
||||
this.serialnum = serialnum;
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof CanlcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
CanlcelDto other = (CanlcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$serialnum = this.getSerialnum();
|
||||
Object other$serialnum = other.getSerialnum();
|
||||
if (this$serialnum == null) {
|
||||
if (other$serialnum != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$serialnum.equals(other$serialnum)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof CanlcelDto;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $serialnum = this.getSerialnum();
|
||||
result = result * 59 + ($serialnum == null ? 43 : $serialnum.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "CanlcelDto(serialnum=" + this.getSerialnum() + ")";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,102 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.entity;
|
||||
|
||||
public class CqcSubmitState {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String patientId;
|
||||
private Integer doctorState;
|
||||
private Integer nurseState;
|
||||
|
||||
public String getPatientId() {
|
||||
return this.patientId;
|
||||
}
|
||||
|
||||
public Integer getDoctorState() {
|
||||
return this.doctorState;
|
||||
}
|
||||
|
||||
public Integer getNurseState() {
|
||||
return this.nurseState;
|
||||
}
|
||||
|
||||
public void setPatientId(final String patientId) {
|
||||
this.patientId = patientId;
|
||||
}
|
||||
|
||||
public void setDoctorState(final Integer doctorState) {
|
||||
this.doctorState = doctorState;
|
||||
}
|
||||
|
||||
public void setNurseState(final Integer nurseState) {
|
||||
this.nurseState = nurseState;
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof CqcSubmitState)) {
|
||||
return false;
|
||||
} else {
|
||||
CqcSubmitState other = (CqcSubmitState)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$patientId = this.getPatientId();
|
||||
Object other$patientId = other.getPatientId();
|
||||
if (this$patientId == null) {
|
||||
if (other$patientId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$patientId.equals(other$patientId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$doctorState = this.getDoctorState();
|
||||
Object other$doctorState = other.getDoctorState();
|
||||
if (this$doctorState == null) {
|
||||
if (other$doctorState != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$doctorState.equals(other$doctorState)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$nurseState = this.getNurseState();
|
||||
Object other$nurseState = other.getNurseState();
|
||||
if (this$nurseState == null) {
|
||||
if (other$nurseState != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$nurseState.equals(other$nurseState)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof CqcSubmitState;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $patientId = this.getPatientId();
|
||||
result = result * 59 + ($patientId == null ? 43 : $patientId.hashCode());
|
||||
Object $doctorState = this.getDoctorState();
|
||||
result = result * 59 + ($doctorState == null ? 43 : $doctorState.hashCode());
|
||||
Object $nurseState = this.getNurseState();
|
||||
result = result * 59 + ($nurseState == null ? 43 : $nurseState.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "CqcSubmitState(patientId=" + this.getPatientId() + ", doctorState=" + this.getDoctorState() + ", nurseState=" + this.getNurseState() + ")";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,130 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
|
||||
@ApiModel("错误日志表")
|
||||
public class MrReportError {
|
||||
private Long id;
|
||||
@ApiModelProperty("上报信息")
|
||||
private String xml;
|
||||
@ApiModelProperty("上报类型")
|
||||
private Integer reportType;
|
||||
@ApiModelProperty("上报时间")
|
||||
private Date createTime;
|
||||
|
||||
public Long getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public String getXml() {
|
||||
return this.xml;
|
||||
}
|
||||
|
||||
public Integer getReportType() {
|
||||
return this.reportType;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setId(final Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setXml(final String xml) {
|
||||
this.xml = xml;
|
||||
}
|
||||
|
||||
public void setReportType(final Integer reportType) {
|
||||
this.reportType = reportType;
|
||||
}
|
||||
|
||||
public void setCreateTime(final Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof MrReportError)) {
|
||||
return false;
|
||||
} else {
|
||||
MrReportError other = (MrReportError)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$id = this.getId();
|
||||
Object other$id = other.getId();
|
||||
if (this$id == null) {
|
||||
if (other$id != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$xml = this.getXml();
|
||||
Object other$xml = other.getXml();
|
||||
if (this$xml == null) {
|
||||
if (other$xml != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$xml.equals(other$xml)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$reportType = this.getReportType();
|
||||
Object other$reportType = other.getReportType();
|
||||
if (this$reportType == null) {
|
||||
if (other$reportType != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$reportType.equals(other$reportType)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$createTime = this.getCreateTime();
|
||||
Object other$createTime = other.getCreateTime();
|
||||
if (this$createTime == null) {
|
||||
if (other$createTime != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$createTime.equals(other$createTime)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof MrReportError;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
Object $xml = this.getXml();
|
||||
result = result * 59 + ($xml == null ? 43 : $xml.hashCode());
|
||||
Object $reportType = this.getReportType();
|
||||
result = result * 59 + ($reportType == null ? 43 : $reportType.hashCode());
|
||||
Object $createTime = this.getCreateTime();
|
||||
result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "MrReportError(id=" + this.getId() + ", xml=" + this.getXml() + ", reportType=" + this.getReportType() + ", createTime=" + this.getCreateTime() + ")";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,150 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
|
||||
public class ReportDownDto {
|
||||
@ApiModelProperty("采集器id")
|
||||
private String collectorid;
|
||||
@ApiModelProperty("采集器ip")
|
||||
private String ip;
|
||||
@ApiModelProperty("文件信息")
|
||||
private List<ReportDownScanFileDto> scanfiles;
|
||||
private ReportDownPatientDto patient;
|
||||
@ApiModelProperty("分类id")
|
||||
private String assortid;
|
||||
|
||||
public String getCollectorid() {
|
||||
return this.collectorid;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return this.ip;
|
||||
}
|
||||
|
||||
public List<ReportDownScanFileDto> getScanfiles() {
|
||||
return this.scanfiles;
|
||||
}
|
||||
|
||||
public ReportDownPatientDto getPatient() {
|
||||
return this.patient;
|
||||
}
|
||||
|
||||
public String getAssortid() {
|
||||
return this.assortid;
|
||||
}
|
||||
|
||||
public void setCollectorid(final String collectorid) {
|
||||
this.collectorid = collectorid;
|
||||
}
|
||||
|
||||
public void setIp(final String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public void setScanfiles(final List<ReportDownScanFileDto> scanfiles) {
|
||||
this.scanfiles = scanfiles;
|
||||
}
|
||||
|
||||
public void setPatient(final ReportDownPatientDto patient) {
|
||||
this.patient = patient;
|
||||
}
|
||||
|
||||
public void setAssortid(final String assortid) {
|
||||
this.assortid = assortid;
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof ReportDownDto)) {
|
||||
return false;
|
||||
} else {
|
||||
ReportDownDto other = (ReportDownDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$collectorid = this.getCollectorid();
|
||||
Object other$collectorid = other.getCollectorid();
|
||||
if (this$collectorid == null) {
|
||||
if (other$collectorid != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$collectorid.equals(other$collectorid)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$ip = this.getIp();
|
||||
Object other$ip = other.getIp();
|
||||
if (this$ip == null) {
|
||||
if (other$ip != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$ip.equals(other$ip)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$scanfiles = this.getScanfiles();
|
||||
Object other$scanfiles = other.getScanfiles();
|
||||
if (this$scanfiles == null) {
|
||||
if (other$scanfiles != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$scanfiles.equals(other$scanfiles)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$patient = this.getPatient();
|
||||
Object other$patient = other.getPatient();
|
||||
if (this$patient == null) {
|
||||
if (other$patient != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$patient.equals(other$patient)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$assortid = this.getAssortid();
|
||||
Object other$assortid = other.getAssortid();
|
||||
if (this$assortid == null) {
|
||||
if (other$assortid != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$assortid.equals(other$assortid)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof ReportDownDto;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $collectorid = this.getCollectorid();
|
||||
result = result * 59 + ($collectorid == null ? 43 : $collectorid.hashCode());
|
||||
Object $ip = this.getIp();
|
||||
result = result * 59 + ($ip == null ? 43 : $ip.hashCode());
|
||||
Object $scanfiles = this.getScanfiles();
|
||||
result = result * 59 + ($scanfiles == null ? 43 : $scanfiles.hashCode());
|
||||
Object $patient = this.getPatient();
|
||||
result = result * 59 + ($patient == null ? 43 : $patient.hashCode());
|
||||
Object $assortid = this.getAssortid();
|
||||
result = result * 59 + ($assortid == null ? 43 : $assortid.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ReportDownDto(collectorid=" + this.getCollectorid() + ", ip=" + this.getIp() + ", scanfiles=" + this.getScanfiles() + ", patient=" + this.getPatient() + ", assortid=" + this.getAssortid() + ")";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,106 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
public class ReportDownPatientDto {
|
||||
@ApiModelProperty("记帐号")
|
||||
private String jzh;
|
||||
@ApiModelProperty("封存id")
|
||||
private String sealId;
|
||||
@ApiModelProperty("主键")
|
||||
private String patientid;
|
||||
|
||||
public String getJzh() {
|
||||
return this.jzh;
|
||||
}
|
||||
|
||||
public String getSealId() {
|
||||
return this.sealId;
|
||||
}
|
||||
|
||||
public String getPatientid() {
|
||||
return this.patientid;
|
||||
}
|
||||
|
||||
public void setJzh(final String jzh) {
|
||||
this.jzh = jzh;
|
||||
}
|
||||
|
||||
public void setSealId(final String sealId) {
|
||||
this.sealId = sealId;
|
||||
}
|
||||
|
||||
public void setPatientid(final String patientid) {
|
||||
this.patientid = patientid;
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof ReportDownPatientDto)) {
|
||||
return false;
|
||||
} else {
|
||||
ReportDownPatientDto other = (ReportDownPatientDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$jzh = this.getJzh();
|
||||
Object other$jzh = other.getJzh();
|
||||
if (this$jzh == null) {
|
||||
if (other$jzh != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$jzh.equals(other$jzh)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$sealId = this.getSealId();
|
||||
Object other$sealId = other.getSealId();
|
||||
if (this$sealId == null) {
|
||||
if (other$sealId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$sealId.equals(other$sealId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$patientid = this.getPatientid();
|
||||
Object other$patientid = other.getPatientid();
|
||||
if (this$patientid == null) {
|
||||
if (other$patientid != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$patientid.equals(other$patientid)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof ReportDownPatientDto;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $jzh = this.getJzh();
|
||||
result = result * 59 + ($jzh == null ? 43 : $jzh.hashCode());
|
||||
Object $sealId = this.getSealId();
|
||||
result = result * 59 + ($sealId == null ? 43 : $sealId.hashCode());
|
||||
Object $patientid = this.getPatientid();
|
||||
result = result * 59 + ($patientid == null ? 43 : $patientid.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ReportDownPatientDto(jzh=" + this.getJzh() + ", sealId=" + this.getSealId() + ", patientid=" + this.getPatientid() + ")";
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,250 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
|
||||
@ApiModel(
|
||||
value = "TBasicExtend对象",
|
||||
description = "病案基本信息扩展表"
|
||||
)
|
||||
public class TBasicExtend {
|
||||
@ApiModelProperty("病案主键")
|
||||
@TableId(
|
||||
value = "patient_id",
|
||||
type = IdType.ASSIGN_ID
|
||||
)
|
||||
private String patientId;
|
||||
@ApiModelProperty("报销政策代码")
|
||||
private String claimPolicyCode;
|
||||
@ApiModelProperty("报销政策名称")
|
||||
private String claimPolicyName;
|
||||
@ApiModelProperty("医保结算类型代码")
|
||||
private String mioSettleTypeCode;
|
||||
@ApiModelProperty("医保结算类型名称")
|
||||
private String mioSettleTypeName;
|
||||
@ApiModelProperty("医生提交时间")
|
||||
private Date doctorSubmitTime;
|
||||
@ApiModelProperty("护理提交时间")
|
||||
private Date nurseSubmitTime;
|
||||
@ApiModelProperty("责任护士")
|
||||
private String dutyNurse;
|
||||
@ApiModelProperty("预住院流水号")
|
||||
private String preJzh;
|
||||
|
||||
public String getPatientId() {
|
||||
return this.patientId;
|
||||
}
|
||||
|
||||
public String getClaimPolicyCode() {
|
||||
return this.claimPolicyCode;
|
||||
}
|
||||
|
||||
public String getClaimPolicyName() {
|
||||
return this.claimPolicyName;
|
||||
}
|
||||
|
||||
public String getMioSettleTypeCode() {
|
||||
return this.mioSettleTypeCode;
|
||||
}
|
||||
|
||||
public String getMioSettleTypeName() {
|
||||
return this.mioSettleTypeName;
|
||||
}
|
||||
|
||||
public Date getDoctorSubmitTime() {
|
||||
return this.doctorSubmitTime;
|
||||
}
|
||||
|
||||
public Date getNurseSubmitTime() {
|
||||
return this.nurseSubmitTime;
|
||||
}
|
||||
|
||||
public String getDutyNurse() {
|
||||
return this.dutyNurse;
|
||||
}
|
||||
|
||||
public String getPreJzh() {
|
||||
return this.preJzh;
|
||||
}
|
||||
|
||||
public void setPatientId(final String patientId) {
|
||||
this.patientId = patientId;
|
||||
}
|
||||
|
||||
public void setClaimPolicyCode(final String claimPolicyCode) {
|
||||
this.claimPolicyCode = claimPolicyCode;
|
||||
}
|
||||
|
||||
public void setClaimPolicyName(final String claimPolicyName) {
|
||||
this.claimPolicyName = claimPolicyName;
|
||||
}
|
||||
|
||||
public void setMioSettleTypeCode(final String mioSettleTypeCode) {
|
||||
this.mioSettleTypeCode = mioSettleTypeCode;
|
||||
}
|
||||
|
||||
public void setMioSettleTypeName(final String mioSettleTypeName) {
|
||||
this.mioSettleTypeName = mioSettleTypeName;
|
||||
}
|
||||
|
||||
public void setDoctorSubmitTime(final Date doctorSubmitTime) {
|
||||
this.doctorSubmitTime = doctorSubmitTime;
|
||||
}
|
||||
|
||||
public void setNurseSubmitTime(final Date nurseSubmitTime) {
|
||||
this.nurseSubmitTime = nurseSubmitTime;
|
||||
}
|
||||
|
||||
public void setDutyNurse(final String dutyNurse) {
|
||||
this.dutyNurse = dutyNurse;
|
||||
}
|
||||
|
||||
public void setPreJzh(final String preJzh) {
|
||||
this.preJzh = preJzh;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "TBasicExtend(patientId=" + this.getPatientId() + ", claimPolicyCode=" + this.getClaimPolicyCode() + ", claimPolicyName=" + this.getClaimPolicyName() + ", mioSettleTypeCode=" + this.getMioSettleTypeCode() + ", mioSettleTypeName=" + this.getMioSettleTypeName() + ", doctorSubmitTime=" + this.getDoctorSubmitTime() + ", nurseSubmitTime=" + this.getNurseSubmitTime() + ", dutyNurse=" + this.getDutyNurse() + ", preJzh=" + this.getPreJzh() + ")";
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof TBasicExtend)) {
|
||||
return false;
|
||||
} else {
|
||||
TBasicExtend other = (TBasicExtend)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$patientId = this.getPatientId();
|
||||
Object other$patientId = other.getPatientId();
|
||||
if (this$patientId == null) {
|
||||
if (other$patientId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$patientId.equals(other$patientId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$claimPolicyCode = this.getClaimPolicyCode();
|
||||
Object other$claimPolicyCode = other.getClaimPolicyCode();
|
||||
if (this$claimPolicyCode == null) {
|
||||
if (other$claimPolicyCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$claimPolicyCode.equals(other$claimPolicyCode)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$claimPolicyName = this.getClaimPolicyName();
|
||||
Object other$claimPolicyName = other.getClaimPolicyName();
|
||||
if (this$claimPolicyName == null) {
|
||||
if (other$claimPolicyName != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$claimPolicyName.equals(other$claimPolicyName)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$mioSettleTypeCode = this.getMioSettleTypeCode();
|
||||
Object other$mioSettleTypeCode = other.getMioSettleTypeCode();
|
||||
if (this$mioSettleTypeCode == null) {
|
||||
if (other$mioSettleTypeCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$mioSettleTypeCode.equals(other$mioSettleTypeCode)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$mioSettleTypeName = this.getMioSettleTypeName();
|
||||
Object other$mioSettleTypeName = other.getMioSettleTypeName();
|
||||
if (this$mioSettleTypeName == null) {
|
||||
if (other$mioSettleTypeName != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$mioSettleTypeName.equals(other$mioSettleTypeName)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$doctorSubmitTime = this.getDoctorSubmitTime();
|
||||
Object other$doctorSubmitTime = other.getDoctorSubmitTime();
|
||||
if (this$doctorSubmitTime == null) {
|
||||
if (other$doctorSubmitTime != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$doctorSubmitTime.equals(other$doctorSubmitTime)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$nurseSubmitTime = this.getNurseSubmitTime();
|
||||
Object other$nurseSubmitTime = other.getNurseSubmitTime();
|
||||
if (this$nurseSubmitTime == null) {
|
||||
if (other$nurseSubmitTime != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$nurseSubmitTime.equals(other$nurseSubmitTime)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$dutyNurse = this.getDutyNurse();
|
||||
Object other$dutyNurse = other.getDutyNurse();
|
||||
if (this$dutyNurse == null) {
|
||||
if (other$dutyNurse != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$dutyNurse.equals(other$dutyNurse)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$preJzh = this.getPreJzh();
|
||||
Object other$preJzh = other.getPreJzh();
|
||||
if (this$preJzh == null) {
|
||||
if (other$preJzh != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$preJzh.equals(other$preJzh)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof TBasicExtend;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $patientId = this.getPatientId();
|
||||
result = result * 59 + ($patientId == null ? 43 : $patientId.hashCode());
|
||||
Object $claimPolicyCode = this.getClaimPolicyCode();
|
||||
result = result * 59 + ($claimPolicyCode == null ? 43 : $claimPolicyCode.hashCode());
|
||||
Object $claimPolicyName = this.getClaimPolicyName();
|
||||
result = result * 59 + ($claimPolicyName == null ? 43 : $claimPolicyName.hashCode());
|
||||
Object $mioSettleTypeCode = this.getMioSettleTypeCode();
|
||||
result = result * 59 + ($mioSettleTypeCode == null ? 43 : $mioSettleTypeCode.hashCode());
|
||||
Object $mioSettleTypeName = this.getMioSettleTypeName();
|
||||
result = result * 59 + ($mioSettleTypeName == null ? 43 : $mioSettleTypeName.hashCode());
|
||||
Object $doctorSubmitTime = this.getDoctorSubmitTime();
|
||||
result = result * 59 + ($doctorSubmitTime == null ? 43 : $doctorSubmitTime.hashCode());
|
||||
Object $nurseSubmitTime = this.getNurseSubmitTime();
|
||||
result = result * 59 + ($nurseSubmitTime == null ? 43 : $nurseSubmitTime.hashCode());
|
||||
Object $dutyNurse = this.getDutyNurse();
|
||||
result = result * 59 + ($dutyNurse == null ? 43 : $dutyNurse.hashCode());
|
||||
Object $preJzh = this.getPreJzh();
|
||||
result = result * 59 + ($preJzh == null ? 43 : $preJzh.hashCode());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.enums;
|
||||
|
||||
public enum Codes {
|
||||
JSON_ADDRESS("999", "\\dataConfig\\homeQualitySet.json"),
|
||||
MSG("201", "Msg"),
|
||||
DIRECTORY("1000", "directory"),
|
||||
UPLOAD("0", "uploadConnector"),
|
||||
SEALUPLOAD("0", "sealUpload"),
|
||||
REPOAL("0", "repoalConnector"),
|
||||
assortid("assortid", "assortidKey"),
|
||||
collectorid("collectorid", "collectoridKey"),
|
||||
EMP_ID("0", "indexFlag");
|
||||
|
||||
private String code;
|
||||
private String message;
|
||||
|
||||
private Codes(String code, String messgae) {
|
||||
this.code = code;
|
||||
this.message = messgae;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.facade;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.docus.bgts.entity.AfCollectTask;
|
||||
import com.docus.bgts.entity.CanlcelDto;
|
||||
import com.docus.bgts.entity.ReportDownDto;
|
||||
import com.docus.bgts.entity.TBasic;
|
||||
import com.docus.bgts.entity.ZdAssort;
|
||||
import java.util.List;
|
||||
|
||||
public interface IAfCollectTaskService extends IService<AfCollectTask> {
|
||||
String getpatientIdByEmpId(String empId);
|
||||
|
||||
String getpatientIdBysealId(String sealId);
|
||||
|
||||
String getNameByPatientId(String patientId);
|
||||
|
||||
String getOutpatientIdByJzhel(String jzh);
|
||||
|
||||
void insert(ReportDownDto reportDownDto);
|
||||
|
||||
void insertSeal(ReportDownDto reportDownDto);
|
||||
|
||||
void insertOut(ReportDownDto reportDownDto);
|
||||
|
||||
void updateInterfaceCollect(String collectSubId, int state);
|
||||
|
||||
List<String> listJZHByDate(String date1, String date2);
|
||||
|
||||
void invokeRepoalFile(CanlcelDto canlcelDto) throws Exception;
|
||||
|
||||
String selectJzh(String inPatientNo, String examApplyDate);
|
||||
|
||||
String getAssortIdByAssortId(String assortId);
|
||||
|
||||
String getAssortIdByAssortName(String assortId);
|
||||
|
||||
void insertZdAssort(ZdAssort zdAssort);
|
||||
|
||||
int deleteByPatientIdAndCollectorId(String patientId, String collectorId);
|
||||
|
||||
int deleteByPatientIdAndAssortId(String patientId, String assortId);
|
||||
|
||||
int deleteByPatientIdAndSysFlag(String patientId, String sysFlag);
|
||||
|
||||
int updateNurseSubmitTime(ReportDownDto reportDownDto, String nurseSubmitTime, String nurseSubmitName);
|
||||
|
||||
int updateDoctorSubmitTime(ReportDownDto reportDownDto, String doctorSubmitTime, String doctorSubmitName);
|
||||
|
||||
void insertNurseState(ReportDownDto reportDownDto, String nurseSubmitTime);
|
||||
|
||||
void insertDoctorState(ReportDownDto reportDownDto, String doctorSubmitTime);
|
||||
|
||||
TBasic selectDisDateIsNull(String inPatientNo);
|
||||
|
||||
String selectDisDateIsNullJzh(String inPatientNo, String examApplyDate);
|
||||
|
||||
List<String> getIdNos(String patientId, String collectorid);
|
||||
|
||||
int cacelScanAssort(String patientId, String collectorid);
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.facade;
|
||||
|
||||
public interface IMrReportErrorService {
|
||||
void insert(String xml);
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.handler;
|
||||
|
||||
import javax.jws.WebMethod;
|
||||
import javax.jws.WebService;
|
||||
|
||||
@WebService
|
||||
public interface ITBasicWebService {
|
||||
@WebMethod
|
||||
String pushSurveyReport(String xml);
|
||||
|
||||
@WebMethod
|
||||
String outPatient(String xml);
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.docus.bgts.entity.AfCollectTask;
|
||||
import com.docus.bgts.entity.CqcSubmitState;
|
||||
import com.docus.bgts.entity.TBasic;
|
||||
import com.docus.bgts.entity.ZdAssort;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AfCollectTaskMapper extends BaseMapper<AfCollectTask> {
|
||||
List<String> listJZHByDate(@Param("date1") String date1, @Param("date2") String date2);
|
||||
|
||||
String getpatientIdByEmpId(@Param("jzh") String empId);
|
||||
|
||||
String getPatientIdBysealId(@Param("sealId") String sealId);
|
||||
|
||||
String selectJzh(@Param("inPatientNo") String inPatientNo, @Param("examApplyDate") String examApplyDate);
|
||||
|
||||
TBasic selectDisDateIsNull(@Param("inPatientNo") String inPatientNo);
|
||||
|
||||
String selectDisDateIsNullJzh(@Param("inPatientNo") String inPatientNo, @Param("examApplyDate") String examApplyDate);
|
||||
|
||||
String getAssortIdByAssortId(@Param("assortId") String assortId);
|
||||
|
||||
String getAssortIdByAssortName(@Param("assortName") String assortName);
|
||||
|
||||
void insertZdAssort(@Param("zdAssort") ZdAssort zdAssort);
|
||||
|
||||
int deleteByPatientIdAndCollectorId(@Param("patientId") String patientId, @Param("collectorId") String collectorId);
|
||||
|
||||
int deleteByPatientIdAndAssortId(@Param("patientId") String patientId, @Param("assortId") String assortId);
|
||||
|
||||
int deleteByPatientIdAndSysFlag(@Param("patientId") String patientId, @Param("sysFlag") String sysFlag);
|
||||
|
||||
List<String> getIdNos(@Param("patientId") String patientId,@Param("collectorId") String collectorid);
|
||||
|
||||
int cacelScanAssort(@Param("patientId") String patientId,@Param("collectorId") String collectorid);
|
||||
|
||||
int insertDoctorState(CqcSubmitState cqcSubmitState);
|
||||
|
||||
int updateDoctorState(CqcSubmitState cqcSubmitState);
|
||||
|
||||
CqcSubmitState selectByPatientId(String patientId);
|
||||
|
||||
String selectPatientByjzh(String jzh);
|
||||
|
||||
String selectNameByPatientId(String patientId);
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.docus.bgts.entity.AfInterfaceCollect;
|
||||
|
||||
public interface AfInterfaceCollectMapper extends BaseMapper<AfInterfaceCollect> {
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.docus.bgts.entity.AfInterfaceCollectSub;
|
||||
|
||||
public interface AfInterfaceCollectSubMapper extends BaseMapper<AfInterfaceCollectSub> {
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.mapper;
|
||||
|
||||
import com.docus.bgts.entity.MrReportError;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface MrReportErrorMapper {
|
||||
void save(@Param("mrReportError") MrReportError mrReportError);
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.docus.bgts.entity.TBasicExtend;
|
||||
|
||||
public interface TBasicExtendMapper extends BaseMapper<TBasicExtend> {
|
||||
TBasicExtend selectByPatientId(String patientId);
|
||||
|
||||
int updatenurseSubmitTime(TBasicExtend tBasicExtend);
|
||||
|
||||
int updateDoctorSubmitTime(TBasicExtend tBasicExtend);
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.docus.bgts.entity.TBasic;
|
||||
|
||||
public interface TBasicMapper extends BaseMapper<TBasic> {
|
||||
TBasic selectByjzh(String jzh);
|
||||
|
||||
TBasic selectByPatientId(String patientId);
|
||||
|
||||
int update(TBasic tbasic);
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.docus.bgts.entity.TBasic;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TScanAssortMapper extends BaseMapper<TBasic> {
|
||||
int updateByPatientId(@Param("patientId") String PatientId, @Param("PrePatientId") String PrePatientId);
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.service;
|
||||
|
||||
import com.docus.bgts.entity.MrReportError;
|
||||
import com.docus.bgts.facade.IMrReportErrorService;
|
||||
import com.docus.bgts.mapper.MrReportErrorMapper;
|
||||
import com.docus.bgts.utils.FileUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Service
|
||||
public class MrReportErrorServiceImpl implements IMrReportErrorService {
|
||||
private static final Logger log = LoggerFactory.getLogger(MrReportErrorServiceImpl.class);
|
||||
@Autowired
|
||||
MrReportErrorMapper mrReportErrorMapper;
|
||||
|
||||
@Override
|
||||
public void insert(String xml) {
|
||||
log.info("------发送错误:并记录日志------");
|
||||
MrReportError mrReportError = new MrReportError();
|
||||
mrReportError.setXml(xml);
|
||||
mrReportError.setCreateTime(new Date());
|
||||
Integer collectorid = Integer.valueOf(String.valueOf(FileUtils.getJsonByName("collectorid")));
|
||||
mrReportError.setReportType(collectorid);
|
||||
this.mrReportErrorMapper.save(mrReportError);
|
||||
log.info("--------日志记录完成------");
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.utils;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.docus.bgts.enums.Codes;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
public class FileUtils {
|
||||
public static String currentPath() {
|
||||
File dir = new File(".");
|
||||
String currentpath = "";
|
||||
|
||||
try {
|
||||
currentpath = dir.getCanonicalPath();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return currentpath;
|
||||
}
|
||||
|
||||
public static Object getJsonByName(String name) {
|
||||
String path = currentPath();
|
||||
String json = JsonUtils.readJsonFile(path + Codes.JSON_ADDRESS.getMessage());
|
||||
Map jsonMap = (Map)JSON.parseObject(json, Map.class);
|
||||
return jsonMap.get(name);
|
||||
}
|
||||
|
||||
public static String readJsonFromCurrentProject(String fileName) {
|
||||
String path = currentPath();
|
||||
String filePath = path + File.separator + fileName;
|
||||
return JsonUtils.readJsonFile(filePath);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,191 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.utils;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.apache.http.NameValuePair;
|
||||
import org.apache.http.client.ClientProtocolException;
|
||||
import org.apache.http.client.entity.UrlEncodedFormEntity;
|
||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.client.methods.HttpRequestBase;
|
||||
import org.apache.http.client.methods.RequestBuilder;
|
||||
import org.apache.http.client.utils.URIBuilder;
|
||||
import org.apache.http.entity.ContentType;
|
||||
import org.apache.http.entity.StringEntity;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
|
||||
import org.apache.http.message.BasicNameValuePair;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class HttpUtils {
|
||||
private static final Logger log = LoggerFactory.getLogger(HttpUtils.class);
|
||||
private static PoolingHttpClientConnectionManager cm;
|
||||
private static String EMPTY_STR = "";
|
||||
private static String UTF_8 = "UTF-8";
|
||||
|
||||
private static void init() {
|
||||
if (cm == null) {
|
||||
cm = new PoolingHttpClientConnectionManager();
|
||||
cm.setMaxTotal(50);
|
||||
cm.setDefaultMaxPerRoute(5);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static CloseableHttpClient getHttpClient() {
|
||||
init();
|
||||
return HttpClients.custom().setConnectionManager(cm).build();
|
||||
}
|
||||
|
||||
public static String get(String url) {
|
||||
HttpGet httpGet = new HttpGet(url);
|
||||
return getResult((HttpRequestBase)httpGet);
|
||||
}
|
||||
|
||||
public static String get(String url, Map<String, String> params) throws URISyntaxException {
|
||||
URIBuilder ub = new URIBuilder();
|
||||
ub.setPath(url);
|
||||
ArrayList<NameValuePair> pairs = covertParams2NVPS(params);
|
||||
ub.setParameters(pairs);
|
||||
HttpGet httpGet = new HttpGet(ub.build());
|
||||
return getResult((HttpRequestBase)httpGet);
|
||||
}
|
||||
|
||||
public static String get(String url, Map<String, Object> headers, Map<String, String> params) throws URISyntaxException {
|
||||
URIBuilder ub = new URIBuilder();
|
||||
ub.setPath(url);
|
||||
if (params != null) {
|
||||
ArrayList<NameValuePair> pairs = covertParams2NVPS(params);
|
||||
ub.setParameters(pairs);
|
||||
}
|
||||
|
||||
HttpGet httpGet = new HttpGet(ub.build());
|
||||
|
||||
for(Map.Entry<String, Object> param : headers.entrySet()) {
|
||||
httpGet.addHeader((String)param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
|
||||
return getResult((HttpRequestBase)httpGet);
|
||||
}
|
||||
|
||||
public static String post(String url) {
|
||||
HttpPost httpPost = new HttpPost(url);
|
||||
return getResult((HttpRequestBase)httpPost);
|
||||
}
|
||||
|
||||
public static String post(String url, Map<String, String> params) throws UnsupportedEncodingException {
|
||||
HttpPost httpPost = new HttpPost(url);
|
||||
httpPost.setEntity(new UrlEncodedFormEntity(covertParams2NVPS(params), "utf-8"));
|
||||
return getResult((HttpRequestBase)httpPost);
|
||||
}
|
||||
|
||||
public static String post(String url, Object params, Map<String, Object> head) throws UnsupportedEncodingException {
|
||||
HttpPost httpPost = new HttpPost(url);
|
||||
System.out.println(params);
|
||||
httpPost.setEntity(new StringEntity(params.toString()));
|
||||
if (params != null) {
|
||||
for(Map.Entry<String, Object> param : head.entrySet()) {
|
||||
httpPost.addHeader((String)param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
}
|
||||
|
||||
return getResult((HttpRequestBase)httpPost);
|
||||
}
|
||||
|
||||
private static ArrayList<NameValuePair> covertParams2NVPS(Map<String, String> params) {
|
||||
ArrayList<NameValuePair> pairs = new ArrayList();
|
||||
|
||||
for(Map.Entry<String, String> param : params.entrySet()) {
|
||||
if (param.getValue() != null) {
|
||||
pairs.add(new BasicNameValuePair((String)param.getKey(), (String)param.getValue()));
|
||||
}
|
||||
}
|
||||
|
||||
return pairs;
|
||||
}
|
||||
|
||||
public static String post(String url, Map<String, Object> headers, Map<String, Object> params) throws UnsupportedEncodingException {
|
||||
HttpPost httpPost = new HttpPost(url);
|
||||
System.out.println(params);
|
||||
if (params != null) {
|
||||
for(Map.Entry<String, Object> param : headers.entrySet()) {
|
||||
httpPost.addHeader((String)param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
}
|
||||
|
||||
log.info("调用下载参数----" + JSON.toJSONString(params));
|
||||
httpPost.setEntity(new StringEntity(JSON.toJSONString(params), ContentType.APPLICATION_JSON));
|
||||
return getResult((HttpRequestBase)httpPost);
|
||||
}
|
||||
|
||||
public static String postSubmit(String url, Map<String, Object> headers, Map<String, List<String>> params) throws UnsupportedEncodingException {
|
||||
HttpPost httpPost = new HttpPost(url);
|
||||
if (params != null) {
|
||||
for(Map.Entry<String, Object> param : headers.entrySet()) {
|
||||
httpPost.addHeader((String)param.getKey(), String.valueOf(param.getValue()));
|
||||
}
|
||||
}
|
||||
|
||||
httpPost.setEntity(new StringEntity(JSON.toJSONString(params), ContentType.APPLICATION_JSON));
|
||||
return getResult((HttpRequestBase)httpPost);
|
||||
}
|
||||
|
||||
private static String getResult(HttpRequestBase request) {
|
||||
CloseableHttpClient httpClient = getHttpClient();
|
||||
|
||||
try {
|
||||
CloseableHttpResponse response = httpClient.execute(request);
|
||||
HttpEntity entity = response.getEntity();
|
||||
if (entity != null) {
|
||||
String result = EntityUtils.toString(entity, UTF_8);
|
||||
response.close();
|
||||
return result;
|
||||
}
|
||||
} catch (ClientProtocolException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
;
|
||||
}
|
||||
|
||||
return EMPTY_STR;
|
||||
}
|
||||
|
||||
private static String getResult(RequestBuilder requestBuilder) {
|
||||
CloseableHttpClient httpClient = getHttpClient();
|
||||
|
||||
try {
|
||||
CloseableHttpResponse response = httpClient.execute(requestBuilder.build());
|
||||
HttpEntity entity = response.getEntity();
|
||||
if (entity != null) {
|
||||
String result = EntityUtils.toString(entity, UTF_8);
|
||||
response.close();
|
||||
return result;
|
||||
}
|
||||
} catch (ClientProtocolException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
;
|
||||
}
|
||||
|
||||
return EMPTY_STR;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.utils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.Reader;
|
||||
|
||||
public class JsonUtils {
|
||||
public static String readJsonFile(String fileName) {
|
||||
String jsonStr = "";
|
||||
Reader reader = null;
|
||||
FileReader fileReader = null;
|
||||
|
||||
try {
|
||||
File jsonFile = new File(fileName);
|
||||
fileReader = new FileReader(jsonFile);
|
||||
reader = new InputStreamReader(new FileInputStream(jsonFile), "utf-8");
|
||||
int ch = 0;
|
||||
StringBuffer sb = new StringBuffer();
|
||||
|
||||
while((ch = reader.read()) != -1) {
|
||||
sb.append((char)ch);
|
||||
}
|
||||
|
||||
fileReader.close();
|
||||
reader.close();
|
||||
jsonStr = sb.toString();
|
||||
String var7 = jsonStr;
|
||||
return var7;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
} finally {
|
||||
try {
|
||||
reader.close();
|
||||
fileReader.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.utils;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.dom4j.Document;
|
||||
import org.dom4j.DocumentHelper;
|
||||
import org.dom4j.Element;
|
||||
|
||||
public class ResultUtils {
|
||||
private static ResultUtils resultUtils = new ResultUtils();
|
||||
private static String successCode = String.valueOf(FileUtils.getJsonByName("successCode"));
|
||||
private static String errorCode = String.valueOf(FileUtils.getJsonByName("errorCode"));
|
||||
|
||||
private ResultUtils() {
|
||||
}
|
||||
|
||||
public static Element getElement(Document response) {
|
||||
Element element = response.getRootElement();
|
||||
return element;
|
||||
}
|
||||
|
||||
private Document set(String code, String msg) {
|
||||
Document document = DocumentHelper.createDocument();
|
||||
String resHead = String.valueOf(FileUtils.getJsonByName("ResHead"));
|
||||
if (StringUtils.isBlank(resHead)) {
|
||||
throw new RuntimeException("响应外层xml未设置");
|
||||
} else {
|
||||
Element response = null;
|
||||
String[] split = resHead.split(",");
|
||||
|
||||
for(int i = 0; i < split.length; ++i) {
|
||||
if (i == 0) {
|
||||
response = document.addElement(split[i]);
|
||||
} else {
|
||||
response = response.addElement(split[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Element resCode = response.addElement(String.valueOf(FileUtils.getJsonByName("ResCode")));
|
||||
Element retCon = response.addElement(String.valueOf(FileUtils.getJsonByName("ResMsg")));
|
||||
resCode.setText(code);
|
||||
retCon.setText(msg);
|
||||
return document;
|
||||
}
|
||||
}
|
||||
|
||||
public static Document success() {
|
||||
Document document = resultUtils.set(successCode, "成功");
|
||||
return document;
|
||||
}
|
||||
|
||||
public static String fail() {
|
||||
Document set = resultUtils.set(errorCode, "失败");
|
||||
return set.asXML();
|
||||
}
|
||||
|
||||
public static String fail(String message) {
|
||||
Document set = resultUtils.set(String.valueOf(errorCode), StringUtils.isNotBlank(message) ? message : "失败");
|
||||
return set.asXML();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package com.docus.bgts.utils;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.docus.bgts.enums.Codes;
|
||||
import org.dom4j.Document;
|
||||
import org.dom4j.DocumentException;
|
||||
import org.dom4j.Element;
|
||||
import org.dom4j.io.SAXReader;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class XmlUtils {
|
||||
private SAXReader saxReader = new SAXReader();
|
||||
private Document document;
|
||||
|
||||
public Document getDocument() {
|
||||
return this.document;
|
||||
}
|
||||
|
||||
public XmlUtils(String path) {
|
||||
try {
|
||||
this.document = this.saxReader.read(path);
|
||||
} catch (DocumentException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public XmlUtils(InputStream path) {
|
||||
try {
|
||||
this.document = this.saxReader.read(path);
|
||||
} catch (DocumentException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public String getElement(String name) {
|
||||
Element root = this.document.getRootElement();
|
||||
Object directory = FileUtils.getJsonByName(Codes.DIRECTORY.getMessage());
|
||||
Element current = root;
|
||||
if (directory == null) {
|
||||
throw new RuntimeException("没有定义目录结构");
|
||||
} else {
|
||||
|
||||
List<String> list = JSON.parseArray(JSON.toJSONString(directory), String.class);
|
||||
for(String dire : list) {
|
||||
current = current.element(dire);
|
||||
}
|
||||
|
||||
return current.element(name) == null ? "" : current.element(name).getText();
|
||||
}
|
||||
}
|
||||
|
||||
public Element getElement(List<String> directory) {
|
||||
Element root = this.document.getRootElement();
|
||||
Element current = root;
|
||||
|
||||
for(String dire : directory) {
|
||||
current = current.element(dire);
|
||||
}
|
||||
|
||||
if (current == null) {
|
||||
throw new RuntimeException("未找到对应节点");
|
||||
} else {
|
||||
return current;
|
||||
}
|
||||
}
|
||||
|
||||
public List<Element> getJsonByName(Element root) {
|
||||
String path = FileUtils.currentPath();
|
||||
String json = JsonUtils.readJsonFile(path + Codes.JSON_ADDRESS.getMessage());
|
||||
Map jsonMap = (Map)JSON.parseObject(json, Map.class);
|
||||
List<String> basicArr = (List)jsonMap.get("doubleBasic");
|
||||
List<Element> elements = null;
|
||||
|
||||
for(String basic : basicArr) {
|
||||
elements = root.elements(basic);
|
||||
if (elements != null && elements.size() > 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (elements == null || elements.size() == 0) {
|
||||
elements = new ArrayList();
|
||||
elements.add(root);
|
||||
}
|
||||
|
||||
return elements;
|
||||
}
|
||||
|
||||
public Element getMsgElement() {
|
||||
String path = FileUtils.currentPath();
|
||||
String json = JsonUtils.readJsonFile(path + Codes.JSON_ADDRESS.getMessage());
|
||||
Map jsonMap = (Map)JSON.parseObject(json, Map.class);
|
||||
List<String> directory = (List)jsonMap.get("directory");
|
||||
Element root = this.getElement(directory);
|
||||
return root;
|
||||
}
|
||||
|
||||
public String getElementText(String name) {
|
||||
Element root = this.document.getRootElement();
|
||||
Element msg = root.element(Codes.MSG.getMessage());
|
||||
if (msg == null) {
|
||||
throw new RuntimeException("没有" + Codes.MSG.getMessage() + "节点");
|
||||
} else {
|
||||
Element element = msg.element(name);
|
||||
return element == null ? null : element.getText();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
|
||||
@ -0,0 +1,28 @@
|
||||
server:
|
||||
port: 9205
|
||||
# http
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
call-setters-on-nulls: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
field-strategy: NOT_EMPTY
|
||||
db-type: MYSQL
|
||||
beat:
|
||||
url: http://localhost:9399/beat
|
||||
|
||||
system:
|
||||
code: "empcllect"
|
||||
prop: 9405
|
||||
# web service
|
||||
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: docus
|
||||
password: docus702
|
||||
url: jdbc:mysql://localhost:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true&allowMultiQueries=true
|
||||
@ -0,0 +1,28 @@
|
||||
server:
|
||||
port: 9402
|
||||
# http
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
call-setters-on-nulls: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
field-strategy: NOT_EMPTY
|
||||
db-type: MYSQL
|
||||
beat:
|
||||
url: http://localhost:9399/beat
|
||||
|
||||
system:
|
||||
code: "201_P_WS_JYBGTS"
|
||||
prop: 9202
|
||||
# web service
|
||||
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: docus
|
||||
password: docus702
|
||||
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
|
||||
@ -0,0 +1,28 @@
|
||||
server:
|
||||
port: 9403
|
||||
# http
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
call-setters-on-nulls: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
field-strategy: NOT_EMPTY
|
||||
db-type: MYSQL
|
||||
beat:
|
||||
url: http://localhost:9399/beat
|
||||
|
||||
system:
|
||||
code: "204_P_WS_BLBGTS"
|
||||
prop: 9203
|
||||
# web service
|
||||
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: docus
|
||||
password: docus702
|
||||
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
|
||||
@ -0,0 +1,28 @@
|
||||
server:
|
||||
port: 9205
|
||||
# http
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
call-setters-on-nulls: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
field-strategy: NOT_EMPTY
|
||||
db-type: MYSQL
|
||||
beat:
|
||||
url: http://localhost:9399/beat
|
||||
|
||||
system:
|
||||
code: "EmrDocAr"
|
||||
prop: 9805
|
||||
# web service
|
||||
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: docus
|
||||
password: docus702
|
||||
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
|
||||
@ -0,0 +1,28 @@
|
||||
server:
|
||||
port: 9404
|
||||
# http
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
call-setters-on-nulls: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
field-strategy: NOT_EMPTY
|
||||
db-type: MYSQL
|
||||
beat:
|
||||
url: http://localhost:9399/beat
|
||||
|
||||
system:
|
||||
code: "Nursing_documents"
|
||||
prop: 9204
|
||||
# web service
|
||||
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: docus
|
||||
password: docus702
|
||||
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
|
||||
@ -0,0 +1,28 @@
|
||||
server:
|
||||
port: 9701
|
||||
# http
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
call-setters-on-nulls: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
field-strategy: NOT_EMPTY
|
||||
db-type: MYSQL
|
||||
beat:
|
||||
url: http://localhost:9399/beat
|
||||
|
||||
system:
|
||||
code: "EmrDocAr"
|
||||
prop: 9801
|
||||
# web service
|
||||
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: docus
|
||||
password: docus702
|
||||
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
|
||||
@ -0,0 +1,28 @@
|
||||
server:
|
||||
port: 9205
|
||||
# http
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
call-setters-on-nulls: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
field-strategy: NOT_EMPTY
|
||||
db-type: MYSQL
|
||||
beat:
|
||||
url: http://localhost:9399/beat
|
||||
|
||||
system:
|
||||
code: "empcllect"
|
||||
prop: 9405
|
||||
# web service
|
||||
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: docus
|
||||
password: docus702
|
||||
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
|
||||
@ -0,0 +1,127 @@
|
||||
<?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.docus.bgts.mapper.AfCollectTaskMapper">
|
||||
|
||||
|
||||
<select id="listJZHByDate" resultType="string">
|
||||
select jzh
|
||||
from docus_medicalrecord.t_basic a
|
||||
where
|
||||
a.create_time >=#{date1}
|
||||
and a.create_time <=#{date2}
|
||||
and a.jzh is not null
|
||||
and a.is_archive=0
|
||||
and a.dis_dept in ('1211','1252')
|
||||
and jzh not in
|
||||
(select C3 from af_collect_task where sysflag=22 and state=3)
|
||||
order by create_time asc
|
||||
</select>
|
||||
<select id="selectDisDateIsNull" resultType="com.docus.bgts.entity.TBasic">
|
||||
select *
|
||||
from docus_medicalrecord.t_basic
|
||||
where inpatient_no=#{inPatientNo}
|
||||
and dis_date is null
|
||||
</select>
|
||||
<select id="selectDisDateIsNullJzh" resultType="string">
|
||||
select t.jzh
|
||||
from(
|
||||
select admiss_date,dis_date,jzh
|
||||
from docus_medicalrecord.t_basic
|
||||
where inpatient_no=#{inPatientNo} and dis_date is null and ph is null
|
||||
) t
|
||||
where date_sub(t.admiss_date, interval 6 hour) <= #{examApplyDate}
|
||||
</select>
|
||||
<select id="selectJzh" resultType="string">
|
||||
select t.jzh
|
||||
from(
|
||||
select admiss_date,dis_date,jzh,ph
|
||||
from docus_medicalrecord.t_basic
|
||||
where inpatient_no=#{inPatientNo}
|
||||
) t
|
||||
where date_sub(t.admiss_date, interval 6 hour) <= #{examApplyDate}
|
||||
and date_add(t.dis_date, interval 6 hour) >= #{examApplyDate}
|
||||
and t.ph is null
|
||||
</select>
|
||||
<select id="getpatientIdByEmpId" resultType="string">
|
||||
select patient_id
|
||||
from docus_medicalrecord.t_basic
|
||||
where jzh=#{jzh}
|
||||
</select>
|
||||
|
||||
<select id="getAssortIdByAssortId" resultType="string">
|
||||
select assort_id from zd_assort where assort_id=#{assortId}
|
||||
</select>
|
||||
|
||||
<select id="getAssortIdByAssortName" resultType="string">
|
||||
select assort_id from zd_assort where assort_name=#{assortName}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertZdAssort">
|
||||
insert into zd_assort(assort_id,assort_name,effective) values(#{zdAssort.assortId},#{zdAssort.assortName},#{zdAssort.effective})
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByPatientIdAndCollectorId">
|
||||
delete from af_downfile where
|
||||
patient_id=#{patientId} and collectorid=#{collectorId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByPatientIdAndAssortId">
|
||||
delete from t_scan_assort where
|
||||
patient_id=#{patientId} and assort_id=#{assortId}
|
||||
</delete>
|
||||
<delete id="deleteByPatientIdAndSysFlag">
|
||||
delete from af_collect_task where
|
||||
patient_id=#{patientId} and sysflag=#{sysFlag}
|
||||
</delete>
|
||||
|
||||
<insert id="insertDoctorState">
|
||||
insert into docus_medicalrecord.cqc_submit_state(patient_id,doctor_state,nurse_state) values(#{patientId},#{doctorState},#{nurseState})
|
||||
</insert>
|
||||
|
||||
<update id="updateDoctorState">
|
||||
update docus_medicalrecord.cqc_submit_state
|
||||
<set>
|
||||
<if test="doctorState!=null">
|
||||
doctor_state=#{doctorState},
|
||||
</if>
|
||||
|
||||
<if test="nurseState!=null">
|
||||
nurse_state=#{nurseState},
|
||||
</if>
|
||||
</set>
|
||||
where patient_id=#{patientId}
|
||||
</update>
|
||||
<update id="cacelScanAssort">
|
||||
update t_scan_assort
|
||||
set is_del = 1
|
||||
where patient_id=#{patientId} and source=#{collectorId}
|
||||
</update>
|
||||
|
||||
<select id="selectByPatientId" resultType="com.docus.bgts.entity.CqcSubmitState">
|
||||
select * from docus_medicalrecord.cqc_submit_state
|
||||
where patient_id=#{patientId}
|
||||
</select>
|
||||
<select id="selectPatientByjzh" resultType="java.lang.String">
|
||||
select patient_id
|
||||
from docus_medicalrecord.t_basic_out
|
||||
where jzh=#{jzh}
|
||||
</select>
|
||||
<select id="selectNameByPatientId" resultType="java.lang.String">
|
||||
select creater_name from docus_medicalrecord.cqc_back_info_log where patient_id=#{patientId} and create_time in
|
||||
(select max(create_time) from docus_medicalrecord.cqc_back_info_log where patient_id=#{patientId})
|
||||
</select>
|
||||
<select id="getPatientIdBysealId" resultType="java.lang.String">
|
||||
select patient_id from docus_medicalrecord.t_seal where seal_id=#{sealId}
|
||||
</select>
|
||||
<select id="getIdNos" resultType="java.lang.String">
|
||||
select file_column_1
|
||||
from t_scan_assort
|
||||
where
|
||||
patient_id=#{patientId} and source=#{collectorId} and file_column_1 is not null
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,12 @@
|
||||
<?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.docus.bgts.mapper.MrReportErrorMapper">
|
||||
|
||||
<insert id="save" parameterType="com.docus.bgts.entity.MrReportError">
|
||||
insert into docus_medicalrecord.mr_report_error(xml,report_type,create_time)
|
||||
values(#{mrReportError.xml},#{mrReportError.reportType},#{mrReportError.createTime})
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,27 @@
|
||||
<?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.docus.bgts.mapper.TBasicExtendMapper">
|
||||
<update id="updatenurseSubmitTime">
|
||||
update docus_medicalrecord.t_basic_extend
|
||||
set nurse_submit_time=#{nurseSubmitTime}
|
||||
where patient_id=#{patientId}
|
||||
</update>
|
||||
<update id="updateDoctorSubmitTime">
|
||||
update docus_medicalrecord.t_basic_extend
|
||||
set doctor_submit_time=#{doctorSubmitTime}
|
||||
where patient_id=#{patientId}
|
||||
</update>
|
||||
<select id="selectByPatientId" resultType="com.docus.bgts.entity.TBasicExtend">
|
||||
select *
|
||||
from
|
||||
docus_medicalrecord.t_basic_extend
|
||||
where patient_id=#{patientId}
|
||||
|
||||
</select>
|
||||
<insert id="insert" parameterType="com.docus.bgts.entity.TBasicExtend">
|
||||
insert into docus_medicalrecord.t_basic_extend (patient_id,claim_policy_code,claim_policy_name,mio_settle_type_code,mio_settle_type_name,doctor_submit_time,nurse_submit_time,duty_nurse)
|
||||
values (#{patientId},#{claimPolicyCode},#{claimPolicyName},#{mioSettleTypeCode},#{mioSettleTypeName},#{doctorSubmitTime},#{nurseSubmitTime},#{dutyNurse})
|
||||
</insert>
|
||||
</mapper>
|
||||
@ -0,0 +1,76 @@
|
||||
<?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.docus.bgts.mapper.TBasicMapper">
|
||||
<update id="updateDisDate">
|
||||
update docus_medicalrecord.t_basic
|
||||
<set>
|
||||
<if test="tBasic.admiss_times != null">
|
||||
IPAddress=#{pcmachine.ipaddress},
|
||||
</if>
|
||||
<if test="pcmachine.lastonline != null">
|
||||
LastOnline=#{pcmachine.lastonline},
|
||||
</if>
|
||||
<if test="pcmachine.pcstatus != null">
|
||||
PCStatus=#{pcmachine.pcstatus}
|
||||
</if>
|
||||
<if test="pcmachine.ipaddress != null">
|
||||
IPAddress=#{pcmachine.ipaddress},
|
||||
</if>
|
||||
<if test="pcmachine.lastonline != null">
|
||||
LastOnline=#{pcmachine.lastonline},
|
||||
</if>
|
||||
<if test="pcmachine.pcstatus != null">
|
||||
PCStatus=#{pcmachine.pcstatus}
|
||||
</if>
|
||||
<if test="pcmachine.ipaddress != null">
|
||||
IPAddress=#{pcmachine.ipaddress},
|
||||
</if>
|
||||
<if test="pcmachine.lastonline != null">
|
||||
LastOnline=#{pcmachine.lastonline},
|
||||
</if>
|
||||
<if test="pcmachine.pcstatus != null">
|
||||
PCStatus=#{pcmachine.pcstatus}
|
||||
</if>
|
||||
<if test="pcmachine.ipaddress != null">
|
||||
IPAddress=#{pcmachine.ipaddress},
|
||||
</if>
|
||||
<if test="pcmachine.lastonline != null">
|
||||
LastOnline=#{pcmachine.lastonline},
|
||||
</if>
|
||||
<if test="pcmachine.pcstatus != null">
|
||||
PCStatus=#{pcmachine.pcstatus}
|
||||
</if>
|
||||
<if test="pcmachine.ipaddress != null">
|
||||
IPAddress=#{pcmachine.ipaddress},
|
||||
</if>
|
||||
<if test="pcmachine.lastonline != null">
|
||||
LastOnline=#{pcmachine.lastonline},
|
||||
</if>
|
||||
<if test="pcmachine.pcstatus != null">
|
||||
PCStatus=#{pcmachine.pcstatus}
|
||||
</if>
|
||||
</set>
|
||||
where id=#{pcmachine.id}
|
||||
</update>
|
||||
|
||||
<update id="update" parameterType="com.docus.bgts.entity.TBasic">
|
||||
UPDATE docus_medicalrecord.t_basic
|
||||
<set>
|
||||
<if test="null != doctorState and '' != doctorState">doctor_state = #{doctorState},</if>
|
||||
<if test="null != nurseState and '' != nurseState">nurse_state = #{nurseState},</if>
|
||||
</set>
|
||||
WHERE patient_id = #{patientId}
|
||||
</update>
|
||||
<select id="selectByjzh" resultType="com.docus.bgts.entity.TBasic">
|
||||
SELECT *
|
||||
FROM docus_medicalrecord.t_basic
|
||||
WHERE jzh = #{jzh}
|
||||
</select>
|
||||
<select id="selectByPatientId" resultType="com.docus.bgts.entity.TBasic">
|
||||
SELECT *
|
||||
FROM docus_medicalrecord.t_basic
|
||||
WHERE patient_id = #{patientId}
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,10 @@
|
||||
<?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.docus.bgts.mapper.TScanAssortMapper">
|
||||
<update id="updateByPatientId">
|
||||
update docus_archivefile.t_scan_assort set patient_id=#{patientId},assort_id='Wiw213woq412awqe42' where patient_id=#{PrePatientId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue