init:反编译代码

master
wyb 3 months ago
commit ddf93d12dc

35
.gitignore vendored

@ -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,78 @@
{
//-----------------------
//,
"ResHead":"Response,RetInfo",
//
"ResCode":"RetCode",
//
"ResMsg":"RetCon",
//
"successCode":"0",
//
"errorCode":"1",
//,
"directory":["Msg"],
//
"indexFlag":"INHOSP_NO",
//
"serialnum":"IDNO",
//
"filetitle":"FILENAME",
//
"sortingTime":"MIN_TIME",
//
"doctorSubmitTime": "SUBMIT_TIME",
//
"submitName":"REC_SUB_NAME",
//,&
"downurl":"PDF_PATH",
//id
"assortid":"Wiw213woq412awqe41",
//id
"collectorid":"22",
//id
"assortidParamKey":"DOCUMENT_TOPIC",
//( 1:2)
"filesource":1,
//(1:2ftp3)
"filestoragetype":1,
//
"uploadConnector":"http://192.9.100.171:9291/api/downplatform/report",
//doubleBasic
"basicDirectory":[""],
//
"sealUpload":"http://192.9.100.171:9291/api/downplatform/sealReport",
//
"doubleBasic":["ITEM"],
//id
"sealId":"SEAL_ID",
//--------------/---------------
/// 01
"isJudge":"0",
//
"judgeDirectory":[""],
//,0-1-2-
"judgeIndex":"",
//--------------------
//,
"repealDirectory":[""],
//
"repealSerialnum":"UNIQUE_ID",
//
"repoalConnector":"http://192.9.100.171:9291/api/down/cancel",
//--------------------
"zyUrl":"http://192.9.100.32:9022/ktin/api/webservice/ChasWebService?wsdl",
// "zyUrl":"http://localhost:9000/services/api?wsdl",
"zyMethod":"ChasMessageServer",
// "zyMethod":"getPdfId",
"zyNamespance":"http://webservice.http.plugins.api.his.karrytech.com/",
// "zyNamespance":"http://server.webservice.example.com",
"zyDirectory":["PDF_DETAIL_INFO"],
"pdfUrl":"http://192.9.100.32:9022/ktin/api/flow/flow-mra-getpdffile?PDF_ID=",
"zysj":"2022-01-28"
}

@ -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,362 @@
//
// 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.io.Serializable;
import java.util.Date;
@ApiModel(
value = "AfCollectTask对象",
description = "病案采集任务"
)
public class AfCollectTask implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty("id 雪花算法")
@TableId(
value = "id",
type = IdType.ASSIGN_ID
)
private Long id;
@ApiModelProperty("病案主键")
private String patientId;
@ApiModelProperty("af_archive_detail表id")
private Long afArchiveDetailId;
@ApiModelProperty("来源 1护理文书2 电子病历3 Pacs检查4心电图5手麻系统6 Lis检验7病案首页8长临医嘱")
private String sysflag;
@ApiModelProperty("开始时间")
private Date startTime;
@ApiModelProperty("结束时间")
private Date endTime;
@ApiModelProperty("任务状态 0未开始1:完成2重新采集")
private String state;
@ApiModelProperty("同步时间")
private Date syncTime;
@ApiModelProperty("最新重新采集时间")
private Date recollectTime;
@ApiModelProperty("最新重新采集人")
private String recollectName;
@ApiModelProperty("备注")
private String remark;
@ApiModelProperty("报告唯一单号")
private String c1;
@ApiModelProperty("文件标题")
private String c2;
@ApiModelProperty("记账号")
private String c3;
public Long getId() {
return this.id;
}
public String getPatientId() {
return this.patientId;
}
public Long getAfArchiveDetailId() {
return this.afArchiveDetailId;
}
public String getSysflag() {
return this.sysflag;
}
public Date getStartTime() {
return this.startTime;
}
public Date getEndTime() {
return this.endTime;
}
public String getState() {
return this.state;
}
public Date getSyncTime() {
return this.syncTime;
}
public Date getRecollectTime() {
return this.recollectTime;
}
public String getRecollectName() {
return this.recollectName;
}
public String getRemark() {
return this.remark;
}
public String getC1() {
return this.c1;
}
public String getC2() {
return this.c2;
}
public String getC3() {
return this.c3;
}
public void setId(final Long id) {
this.id = id;
}
public void setPatientId(final String patientId) {
this.patientId = patientId;
}
public void setAfArchiveDetailId(final Long afArchiveDetailId) {
this.afArchiveDetailId = afArchiveDetailId;
}
public void setSysflag(final String sysflag) {
this.sysflag = sysflag;
}
public void setStartTime(final Date startTime) {
this.startTime = startTime;
}
public void setEndTime(final Date endTime) {
this.endTime = endTime;
}
public void setState(final String state) {
this.state = state;
}
public void setSyncTime(final Date syncTime) {
this.syncTime = syncTime;
}
public void setRecollectTime(final Date recollectTime) {
this.recollectTime = recollectTime;
}
public void setRecollectName(final String recollectName) {
this.recollectName = recollectName;
}
public void setRemark(final String remark) {
this.remark = remark;
}
public void setC1(final String c1) {
this.c1 = c1;
}
public void setC2(final String c2) {
this.c2 = c2;
}
public void setC3(final String c3) {
this.c3 = c3;
}
public String toString() {
return "AfCollectTask(id=" + this.getId() + ", patientId=" + this.getPatientId() + ", afArchiveDetailId=" + this.getAfArchiveDetailId() + ", sysflag=" + this.getSysflag() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", state=" + this.getState() + ", syncTime=" + this.getSyncTime() + ", recollectTime=" + this.getRecollectTime() + ", recollectName=" + this.getRecollectName() + ", remark=" + this.getRemark() + ", c1=" + this.getC1() + ", c2=" + this.getC2() + ", c3=" + this.getC3() + ")";
}
public boolean equals(final Object o) {
if (o == this) {
return true;
} else if (!(o instanceof AfCollectTask)) {
return false;
} else {
AfCollectTask other = (AfCollectTask)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$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$afArchiveDetailId = this.getAfArchiveDetailId();
Object other$afArchiveDetailId = other.getAfArchiveDetailId();
if (this$afArchiveDetailId == null) {
if (other$afArchiveDetailId != null) {
return false;
}
} else if (!this$afArchiveDetailId.equals(other$afArchiveDetailId)) {
return false;
}
Object this$sysflag = this.getSysflag();
Object other$sysflag = other.getSysflag();
if (this$sysflag == null) {
if (other$sysflag != null) {
return false;
}
} else if (!this$sysflag.equals(other$sysflag)) {
return false;
}
Object this$startTime = this.getStartTime();
Object other$startTime = other.getStartTime();
if (this$startTime == null) {
if (other$startTime != null) {
return false;
}
} else if (!this$startTime.equals(other$startTime)) {
return false;
}
Object this$endTime = this.getEndTime();
Object other$endTime = other.getEndTime();
if (this$endTime == null) {
if (other$endTime != null) {
return false;
}
} else if (!this$endTime.equals(other$endTime)) {
return false;
}
Object this$state = this.getState();
Object other$state = other.getState();
if (this$state == null) {
if (other$state != null) {
return false;
}
} else if (!this$state.equals(other$state)) {
return false;
}
Object this$syncTime = this.getSyncTime();
Object other$syncTime = other.getSyncTime();
if (this$syncTime == null) {
if (other$syncTime != null) {
return false;
}
} else if (!this$syncTime.equals(other$syncTime)) {
return false;
}
Object this$recollectTime = this.getRecollectTime();
Object other$recollectTime = other.getRecollectTime();
if (this$recollectTime == null) {
if (other$recollectTime != null) {
return false;
}
} else if (!this$recollectTime.equals(other$recollectTime)) {
return false;
}
Object this$recollectName = this.getRecollectName();
Object other$recollectName = other.getRecollectName();
if (this$recollectName == null) {
if (other$recollectName != null) {
return false;
}
} else if (!this$recollectName.equals(other$recollectName)) {
return false;
}
Object this$remark = this.getRemark();
Object other$remark = other.getRemark();
if (this$remark == null) {
if (other$remark != null) {
return false;
}
} else if (!this$remark.equals(other$remark)) {
return false;
}
Object this$c1 = this.getC1();
Object other$c1 = other.getC1();
if (this$c1 == null) {
if (other$c1 != null) {
return false;
}
} else if (!this$c1.equals(other$c1)) {
return false;
}
Object this$c2 = this.getC2();
Object other$c2 = other.getC2();
if (this$c2 == null) {
if (other$c2 != null) {
return false;
}
} else if (!this$c2.equals(other$c2)) {
return false;
}
Object this$c3 = this.getC3();
Object other$c3 = other.getC3();
if (this$c3 == null) {
if (other$c3 != null) {
return false;
}
} else if (!this$c3.equals(other$c3)) {
return false;
}
return true;
}
}
}
protected boolean canEqual(final Object other) {
return other instanceof AfCollectTask;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
Object $id = this.getId();
result = result * 59 + ($id == null ? 43 : $id.hashCode());
Object $patientId = this.getPatientId();
result = result * 59 + ($patientId == null ? 43 : $patientId.hashCode());
Object $afArchiveDetailId = this.getAfArchiveDetailId();
result = result * 59 + ($afArchiveDetailId == null ? 43 : $afArchiveDetailId.hashCode());
Object $sysflag = this.getSysflag();
result = result * 59 + ($sysflag == null ? 43 : $sysflag.hashCode());
Object $startTime = this.getStartTime();
result = result * 59 + ($startTime == null ? 43 : $startTime.hashCode());
Object $endTime = this.getEndTime();
result = result * 59 + ($endTime == null ? 43 : $endTime.hashCode());
Object $state = this.getState();
result = result * 59 + ($state == null ? 43 : $state.hashCode());
Object $syncTime = this.getSyncTime();
result = result * 59 + ($syncTime == null ? 43 : $syncTime.hashCode());
Object $recollectTime = this.getRecollectTime();
result = result * 59 + ($recollectTime == null ? 43 : $recollectTime.hashCode());
Object $recollectName = this.getRecollectName();
result = result * 59 + ($recollectName == null ? 43 : $recollectName.hashCode());
Object $remark = this.getRemark();
result = result * 59 + ($remark == null ? 43 : $remark.hashCode());
Object $c1 = this.getC1();
result = result * 59 + ($c1 == null ? 43 : $c1.hashCode());
Object $c2 = this.getC2();
result = result * 59 + ($c2 == null ? 43 : $c2.hashCode());
Object $c3 = this.getC3();
result = result * 59 + ($c3 == null ? 43 : $c3.hashCode());
return result;
}
}

@ -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,218 @@
//
// 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;
@ApiModel("文件库中的省中医病案采集-子任务表")
public class AfInterfaceCollectSub implements Serializable {
private Long id;
@ApiModelProperty("af_interface_collect表id")
private Long afInterfaceCollectId;
@ApiModelProperty("采集器id")
private String collectsysCode;
@ApiModelProperty("子任务流水号 同一份文件子任务需一致")
private String serialnumSub;
@ApiModelProperty("记账号")
private String jzh;
@ApiModelProperty("分类名称")
private String assortName;
@ApiModelProperty("状态 0:未发起1成功2失败")
private Integer state;
@ApiModelProperty("请求信息")
private String requestMessage;
public Long getId() {
return this.id;
}
public Long getAfInterfaceCollectId() {
return this.afInterfaceCollectId;
}
public String getCollectsysCode() {
return this.collectsysCode;
}
public String getSerialnumSub() {
return this.serialnumSub;
}
public String getJzh() {
return this.jzh;
}
public String getAssortName() {
return this.assortName;
}
public Integer getState() {
return this.state;
}
public String getRequestMessage() {
return this.requestMessage;
}
public void setId(final Long id) {
this.id = id;
}
public void setAfInterfaceCollectId(final Long afInterfaceCollectId) {
this.afInterfaceCollectId = afInterfaceCollectId;
}
public void setCollectsysCode(final String collectsysCode) {
this.collectsysCode = collectsysCode;
}
public void setSerialnumSub(final String serialnumSub) {
this.serialnumSub = serialnumSub;
}
public void setJzh(final String jzh) {
this.jzh = jzh;
}
public void setAssortName(final String assortName) {
this.assortName = assortName;
}
public void setState(final Integer state) {
this.state = state;
}
public void setRequestMessage(final String requestMessage) {
this.requestMessage = requestMessage;
}
public boolean equals(final Object o) {
if (o == this) {
return true;
} else if (!(o instanceof AfInterfaceCollectSub)) {
return false;
} else {
AfInterfaceCollectSub other = (AfInterfaceCollectSub)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$afInterfaceCollectId = this.getAfInterfaceCollectId();
Object other$afInterfaceCollectId = other.getAfInterfaceCollectId();
if (this$afInterfaceCollectId == null) {
if (other$afInterfaceCollectId != null) {
return false;
}
} else if (!this$afInterfaceCollectId.equals(other$afInterfaceCollectId)) {
return false;
}
Object this$collectsysCode = this.getCollectsysCode();
Object other$collectsysCode = other.getCollectsysCode();
if (this$collectsysCode == null) {
if (other$collectsysCode != null) {
return false;
}
} else if (!this$collectsysCode.equals(other$collectsysCode)) {
return false;
}
Object this$serialnumSub = this.getSerialnumSub();
Object other$serialnumSub = other.getSerialnumSub();
if (this$serialnumSub == null) {
if (other$serialnumSub != null) {
return false;
}
} else if (!this$serialnumSub.equals(other$serialnumSub)) {
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$assortName = this.getAssortName();
Object other$assortName = other.getAssortName();
if (this$assortName == null) {
if (other$assortName != null) {
return false;
}
} else if (!this$assortName.equals(other$assortName)) {
return false;
}
Object this$state = this.getState();
Object other$state = other.getState();
if (this$state == null) {
if (other$state != null) {
return false;
}
} else if (!this$state.equals(other$state)) {
return false;
}
Object this$requestMessage = this.getRequestMessage();
Object other$requestMessage = other.getRequestMessage();
if (this$requestMessage == null) {
if (other$requestMessage != null) {
return false;
}
} else if (!this$requestMessage.equals(other$requestMessage)) {
return false;
}
return true;
}
}
}
protected boolean canEqual(final Object other) {
return other instanceof AfInterfaceCollectSub;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
Object $id = this.getId();
result = result * 59 + ($id == null ? 43 : $id.hashCode());
Object $afInterfaceCollectId = this.getAfInterfaceCollectId();
result = result * 59 + ($afInterfaceCollectId == null ? 43 : $afInterfaceCollectId.hashCode());
Object $collectsysCode = this.getCollectsysCode();
result = result * 59 + ($collectsysCode == null ? 43 : $collectsysCode.hashCode());
Object $serialnumSub = this.getSerialnumSub();
result = result * 59 + ($serialnumSub == null ? 43 : $serialnumSub.hashCode());
Object $jzh = this.getJzh();
result = result * 59 + ($jzh == null ? 43 : $jzh.hashCode());
Object $assortName = this.getAssortName();
result = result * 59 + ($assortName == null ? 43 : $assortName.hashCode());
Object $state = this.getState();
result = result * 59 + ($state == null ? 43 : $state.hashCode());
Object $requestMessage = this.getRequestMessage();
result = result * 59 + ($requestMessage == null ? 43 : $requestMessage.hashCode());
return result;
}
public String toString() {
return "AfInterfaceCollectSub(id=" + this.getId() + ", afInterfaceCollectId=" + this.getAfInterfaceCollectId() + ", collectsysCode=" + this.getCollectsysCode() + ", serialnumSub=" + this.getSerialnumSub() + ", jzh=" + this.getJzh() + ", assortName=" + this.getAssortName() + ", state=" + this.getState() + ", requestMessage=" + this.getRequestMessage() + ")";
}
}

@ -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() + ")";
}
}

@ -0,0 +1,222 @@
//
// 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 ReportDownScanFileDto {
@ApiModelProperty("文件标题")
private String filetitle;
@ApiModelProperty("采集类型(文件来源 1:采集器2扫描生产软件)")
private int filesource;
@ApiModelProperty("下载类型(1:服务器本地2ftp服务器3共享文件夹)")
private int filestoragetype;
@ApiModelProperty("下载地址")
private String downurl;
@ApiModelProperty("档案信息")
private String recordid;
@ApiModelProperty("采集流水号")
private String serialnum;
@ApiModelProperty("排序时间")
private String sortdate;
@ApiModelProperty("任务id")
private Long taskid;
@ApiModelProperty("文件类型(1:url,2:base64)")
private Integer filetype = 1;
public String getFiletitle() {
return this.filetitle;
}
public int getFilesource() {
return this.filesource;
}
public int getFilestoragetype() {
return this.filestoragetype;
}
public String getDownurl() {
return this.downurl;
}
public String getRecordid() {
return this.recordid;
}
public String getSerialnum() {
return this.serialnum;
}
public String getSortdate() {
return this.sortdate;
}
public Long getTaskid() {
return this.taskid;
}
public Integer getFiletype() {
return this.filetype;
}
public void setFiletitle(final String filetitle) {
this.filetitle = filetitle;
}
public void setFilesource(final int filesource) {
this.filesource = filesource;
}
public void setFilestoragetype(final int filestoragetype) {
this.filestoragetype = filestoragetype;
}
public void setDownurl(final String downurl) {
this.downurl = downurl;
}
public void setRecordid(final String recordid) {
this.recordid = recordid;
}
public void setSerialnum(final String serialnum) {
this.serialnum = serialnum;
}
public void setSortdate(final String sortdate) {
this.sortdate = sortdate;
}
public void setTaskid(final Long taskid) {
this.taskid = taskid;
}
public void setFiletype(final Integer filetype) {
this.filetype = filetype;
}
public boolean equals(final Object o) {
if (o == this) {
return true;
} else if (!(o instanceof ReportDownScanFileDto)) {
return false;
} else {
ReportDownScanFileDto other = (ReportDownScanFileDto)o;
if (!other.canEqual(this)) {
return false;
} else {
Object this$filetitle = this.getFiletitle();
Object other$filetitle = other.getFiletitle();
if (this$filetitle == null) {
if (other$filetitle != null) {
return false;
}
} else if (!this$filetitle.equals(other$filetitle)) {
return false;
}
if (this.getFilesource() != other.getFilesource()) {
return false;
} else if (this.getFilestoragetype() != other.getFilestoragetype()) {
return false;
} else {
Object this$downurl = this.getDownurl();
Object other$downurl = other.getDownurl();
if (this$downurl == null) {
if (other$downurl != null) {
return false;
}
} else if (!this$downurl.equals(other$downurl)) {
return false;
}
Object this$recordid = this.getRecordid();
Object other$recordid = other.getRecordid();
if (this$recordid == null) {
if (other$recordid != null) {
return false;
}
} else if (!this$recordid.equals(other$recordid)) {
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$sortdate = this.getSortdate();
Object other$sortdate = other.getSortdate();
if (this$sortdate == null) {
if (other$sortdate != null) {
return false;
}
} else if (!this$sortdate.equals(other$sortdate)) {
return false;
}
Object this$taskid = this.getTaskid();
Object other$taskid = other.getTaskid();
if (this$taskid == null) {
if (other$taskid != null) {
return false;
}
} else if (!this$taskid.equals(other$taskid)) {
return false;
}
Object this$filetype = this.getFiletype();
Object other$filetype = other.getFiletype();
if (this$filetype == null) {
if (other$filetype != null) {
return false;
}
} else if (!this$filetype.equals(other$filetype)) {
return false;
}
return true;
}
}
}
}
protected boolean canEqual(final Object other) {
return other instanceof ReportDownScanFileDto;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
Object $filetitle = this.getFiletitle();
result = result * 59 + ($filetitle == null ? 43 : $filetitle.hashCode());
result = result * 59 + this.getFilesource();
result = result * 59 + this.getFilestoragetype();
Object $downurl = this.getDownurl();
result = result * 59 + ($downurl == null ? 43 : $downurl.hashCode());
Object $recordid = this.getRecordid();
result = result * 59 + ($recordid == null ? 43 : $recordid.hashCode());
Object $serialnum = this.getSerialnum();
result = result * 59 + ($serialnum == null ? 43 : $serialnum.hashCode());
Object $sortdate = this.getSortdate();
result = result * 59 + ($sortdate == null ? 43 : $sortdate.hashCode());
Object $taskid = this.getTaskid();
result = result * 59 + ($taskid == null ? 43 : $taskid.hashCode());
Object $filetype = this.getFiletype();
result = result * 59 + ($filetype == null ? 43 : $filetype.hashCode());
return result;
}
public String toString() {
return "ReportDownScanFileDto(filetitle=" + this.getFiletitle() + ", filesource=" + this.getFilesource() + ", filestoragetype=" + this.getFilestoragetype() + ", downurl=" + this.getDownurl() + ", recordid=" + this.getRecordid() + ", serialnum=" + this.getSerialnum() + ", sortdate=" + this.getSortdate() + ", taskid=" + this.getTaskid() + ", filetype=" + this.getFiletype() + ")";
}
}

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,201 @@
//
// 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;
@ApiModel(
value = "ZdAssort对象",
description = "病案分类"
)
public class ZdAssort implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty("分类id")
private String assortId;
@ApiModelProperty("分类名称")
private String assortName;
@ApiModelProperty("分类排序")
private Integer assortSort;
@ApiModelProperty("是否启用 1是0否")
private Integer effective;
@ApiModelProperty("是否校验 1是0否")
private Integer isCheck;
@ApiModelProperty("代码分类")
private String assortCode;
@ApiModelProperty("等级")
private Integer level;
public String getAssortId() {
return this.assortId;
}
public String getAssortName() {
return this.assortName;
}
public Integer getAssortSort() {
return this.assortSort;
}
public Integer getEffective() {
return this.effective;
}
public Integer getIsCheck() {
return this.isCheck;
}
public String getAssortCode() {
return this.assortCode;
}
public Integer getLevel() {
return this.level;
}
public void setAssortId(final String assortId) {
this.assortId = assortId;
}
public void setAssortName(final String assortName) {
this.assortName = assortName;
}
public void setAssortSort(final Integer assortSort) {
this.assortSort = assortSort;
}
public void setEffective(final Integer effective) {
this.effective = effective;
}
public void setIsCheck(final Integer isCheck) {
this.isCheck = isCheck;
}
public void setAssortCode(final String assortCode) {
this.assortCode = assortCode;
}
public void setLevel(final Integer level) {
this.level = level;
}
public String toString() {
return "ZdAssort(assortId=" + this.getAssortId() + ", assortName=" + this.getAssortName() + ", assortSort=" + this.getAssortSort() + ", effective=" + this.getEffective() + ", isCheck=" + this.getIsCheck() + ", assortCode=" + this.getAssortCode() + ", level=" + this.getLevel() + ")";
}
public boolean equals(final Object o) {
if (o == this) {
return true;
} else if (!(o instanceof ZdAssort)) {
return false;
} else {
ZdAssort other = (ZdAssort)o;
if (!other.canEqual(this)) {
return false;
} else {
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;
}
Object this$assortName = this.getAssortName();
Object other$assortName = other.getAssortName();
if (this$assortName == null) {
if (other$assortName != null) {
return false;
}
} else if (!this$assortName.equals(other$assortName)) {
return false;
}
Object this$assortSort = this.getAssortSort();
Object other$assortSort = other.getAssortSort();
if (this$assortSort == null) {
if (other$assortSort != null) {
return false;
}
} else if (!this$assortSort.equals(other$assortSort)) {
return false;
}
Object this$effective = this.getEffective();
Object other$effective = other.getEffective();
if (this$effective == null) {
if (other$effective != null) {
return false;
}
} else if (!this$effective.equals(other$effective)) {
return false;
}
Object this$isCheck = this.getIsCheck();
Object other$isCheck = other.getIsCheck();
if (this$isCheck == null) {
if (other$isCheck != null) {
return false;
}
} else if (!this$isCheck.equals(other$isCheck)) {
return false;
}
Object this$assortCode = this.getAssortCode();
Object other$assortCode = other.getAssortCode();
if (this$assortCode == null) {
if (other$assortCode != null) {
return false;
}
} else if (!this$assortCode.equals(other$assortCode)) {
return false;
}
Object this$level = this.getLevel();
Object other$level = other.getLevel();
if (this$level == null) {
if (other$level != null) {
return false;
}
} else if (!this$level.equals(other$level)) {
return false;
}
return true;
}
}
}
protected boolean canEqual(final Object other) {
return other instanceof ZdAssort;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
Object $assortId = this.getAssortId();
result = result * 59 + ($assortId == null ? 43 : $assortId.hashCode());
Object $assortName = this.getAssortName();
result = result * 59 + ($assortName == null ? 43 : $assortName.hashCode());
Object $assortSort = this.getAssortSort();
result = result * 59 + ($assortSort == null ? 43 : $assortSort.hashCode());
Object $effective = this.getEffective();
result = result * 59 + ($effective == null ? 43 : $effective.hashCode());
Object $isCheck = this.getIsCheck();
result = result * 59 + ($isCheck == null ? 43 : $isCheck.hashCode());
Object $assortCode = this.getAssortCode();
result = result * 59 + ($assortCode == null ? 43 : $assortCode.hashCode());
Object $level = this.getLevel();
result = result * 59 + ($level == null ? 43 : $level.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,697 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package com.docus.bgts.handler;
import com.alibaba.fastjson.JSON;
import com.docus.bgts.dto.SystemCollectConfig;
import com.docus.bgts.dto.SystemCollectConfig.Classify;
import com.docus.bgts.entity.CanlcelDto;
import com.docus.bgts.entity.ReportDownDto;
import com.docus.bgts.entity.ReportDownPatientDto;
import com.docus.bgts.entity.ReportDownScanFileDto;
import com.docus.bgts.entity.TBasic;
import com.docus.bgts.entity.TBasicExtend;
import com.docus.bgts.entity.ZdAssort;
import com.docus.bgts.enums.Codes;
import com.docus.bgts.facade.IAfCollectTaskService;
import com.docus.bgts.facade.IMrReportErrorService;
import com.docus.bgts.mapper.TBasicExtendMapper;
import com.docus.bgts.mapper.TBasicMapper;
import com.docus.bgts.mapper.TScanAssortMapper;
import com.docus.bgts.utils.FileUtils;
import com.docus.bgts.utils.HttpUtils;
import com.docus.bgts.utils.ResultUtils;
import com.docus.bgts.utils.XmlUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import sun.misc.BASE64Decoder;
import javax.annotation.Resource;
import javax.jws.WebService;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.StringReader;
import java.io.UnsupportedEncodingException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@WebService
public class TBasicWebService implements ITBasicWebService {
@Autowired
IAfCollectTaskService afCollectTaskService;
@Autowired
IMrReportErrorService mrReportErrorService;
@Autowired
TBasicMapper tBasicMapper;
@Autowired
TBasicExtendMapper tBasicExtendMapper;
@Autowired
TScanAssortMapper tScanAssortMapper;
@Resource
private ThreadPoolExecutor threadPoolExecutor;
private final Logger logger = LoggerFactory.getLogger(this.getClass());
private Element getElementFromString(String s) {
SAXReader builder = new SAXReader();
Document doc = null;
Element element = null;
try {
doc = builder.read(new StringReader(s));
} catch (DocumentException e) {
e.printStackTrace();
}
if (doc != null) {
element = doc.getRootElement();
}
return element;
}
@Override
public String pushSurveyReport(String xml) {
long l6 = System.currentTimeMillis();
try {
this.logger.info("报告推送入参:" + xml);
xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" + xml;
XmlUtils xmlUtils = new XmlUtils(new ByteArrayInputStream(xml.getBytes("UTF-8")));
Element elementRoot = xmlUtils.getMsgElement();
String serialnmnKey = String.valueOf(FileUtils.getJsonByName("serialnum"));
String filetitleKey = String.valueOf(FileUtils.getJsonByName("filetitle"));
String downurlKey = String.valueOf(FileUtils.getJsonByName("downurl"));
String nurseSubmitTime = String.valueOf(FileUtils.getJsonByName("nurseSubmitTime"));
String doctorSubmitTime = String.valueOf(FileUtils.getJsonByName("doctorSubmitTime"));
String examApplyDate = String.valueOf(FileUtils.getJsonByName("examApplyDate"));
String inPatientNo = String.valueOf(FileUtils.getJsonByName("inPatientNo"));
String sortingTimeKey = String.valueOf(FileUtils.getJsonByName("sortingTime"));
String empId = String.valueOf(FileUtils.getJsonByName(Codes.EMP_ID.getMessage()));
String seal = String.valueOf(FileUtils.getJsonByName("sealId"));
String submitName = String.valueOf(FileUtils.getJsonByName("submitName"));
String isJudge = String.valueOf(FileUtils.getJsonByName("isJudge"));
if (!StringUtils.isBlank(isJudge) && !isJudge.equals("0")) {
List<String> judgeDirectory = (List)FileUtils.getJsonByName("judgeDirectory");
Element current = xmlUtils.getElement(judgeDirectory);
String judgeIndex = String.valueOf(FileUtils.getJsonByName("judgeIndex"));
Element judgeIndexElement = current.element(judgeIndex);
if (judgeIndexElement != null && !StringUtils.isBlank(judgeIndexElement.getText()) && judgeIndexElement.getText().equals("1")) {
if (judgeIndexElement.getText().equals("1")) {
this.logger.info("---------撤回--------");
CanlcelDto canlcelDto = new CanlcelDto();
String serialnum = String.valueOf(FileUtils.getJsonByName("serialnum"));
String serialnumElement = this.getElementText(elementRoot, serialnum.split(","));
canlcelDto.setSerialnum(serialnumElement);
this.afCollectTaskService.invokeRepoalFile(canlcelDto);
this.logger.info("----------当前操作完成--------------");
return ResultUtils.success().asXML();
}
} else {
this.logger.info("------新增/修改------");
}
}
Map<String, Object> headMap = new HashMap();
headMap.put("Content-Type", "application/json");
String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid"));
String assortid;
if (collectorid.equals("1")) {
assortid = String.valueOf(FileUtils.getJsonByName("assortid"));
} else {
assortid = this.getAssortid(elementRoot);
}
ReportDownDto reportDownDto = new ReportDownDto();
reportDownDto.setCollectorid(collectorid);
reportDownDto.setAssortid(assortid);
List<ReportDownScanFileDto> reportDownDtoArr = new ArrayList();
ReportDownPatientDto reportDownPatientDto = new ReportDownPatientDto();
String empIdText = this.getElementText(elementRoot, empId.split(","));
String submit = this.getElementTextCanBeEmpty(elementRoot, submitName.split(","));
String sealId = this.getElementTextCanBeEmpty(elementRoot, seal.split(","));
if (null != sealId && !"".equals(sealId)) {
reportDownPatientDto.setJzh(empIdText);
reportDownPatientDto.setSealId(sealId);
this.logger.info("封存患者jzh " + empIdText);
reportDownDto.setPatient(reportDownPatientDto);
List<Element> elementList = xmlUtils.getJsonByName(elementRoot);
doctorSubmitTime = this.getElementText(elementRoot, doctorSubmitTime.split(","));
for(Element element : elementList) {
String filetitle = this.getElementText(element, filetitleKey.split(","));
String downurl = this.getElementText(element, downurlKey.split(","));
if (collectorid.equals("1")) {
nurseSubmitTime = this.getElementText(element, nurseSubmitTime.split(","));
this.afCollectTaskService.updateNurseSubmitTime(reportDownDto, nurseSubmitTime, submit);
this.afCollectTaskService.insertNurseState(reportDownDto, nurseSubmitTime);
}
String sortingTime = this.getElementTextCanBeEmpty(element, sortingTimeKey.split(","));
String serialnum = this.getElementText(element, serialnmnKey.split(","));
ReportDownScanFileDto reportDownScanFileDto = new ReportDownScanFileDto();
reportDownScanFileDto.setDownurl(downurl);
reportDownScanFileDto.setFiletitle(filetitle);
reportDownScanFileDto.setSerialnum(serialnum);
reportDownScanFileDto.setSortdate(sortingTime);
reportDownScanFileDto.setFilesource(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filesource"))));
reportDownScanFileDto.setFilestoragetype(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filestoragetype"))));
if (reportDownScanFileDto.getDownurl().length() > 200) {
reportDownScanFileDto.setFiletype(2);
}
reportDownDtoArr.add(reportDownScanFileDto);
}
if (reportDownDtoArr.size() <= 0) {
throw new RuntimeException("不存在必要的基本信息");
} else {
reportDownDto.setScanfiles(reportDownDtoArr);
this.afCollectTaskService.updateDoctorSubmitTime(reportDownDto, doctorSubmitTime, submit);
this.afCollectTaskService.insertDoctorState(reportDownDto, doctorSubmitTime);
this.afCollectTaskService.insertSeal(reportDownDto);
String post = "";
this.logger.info("--------执行上传功能----------");
Map params = (Map)JSON.parseObject(JSON.toJSONString(reportDownDto), Map.class);
if (((ReportDownScanFileDto)reportDownDto.getScanfiles().get(0)).getFiletype() == 1) {
this.logger.info("封存id--" + reportDownDto.getPatient().getSealId() + ": 上传参数:" + params);
}
long l = System.currentTimeMillis();
post = HttpUtils.post(String.valueOf(FileUtils.getJsonByName(Codes.SEALUPLOAD.getMessage())), headMap, params);
long l1 = System.currentTimeMillis();
this.logger.info("封存id--" + reportDownDto.getPatient().getSealId() + "请求下载耗时----------" + (l1 - l));
if (StringUtils.isBlank(post)) {
this.logger.info("封存id--" + reportDownDto.getPatient().getSealId() + "--------上传时出现错误,可能是文件服务没有启动----------");
throw new RuntimeException("封存id--" + reportDownDto.getPatient().getSealId() + "上传时出现错误,可能是文件服务没有启动");
} else {
Map resMap = (Map)JSON.parseObject(post, Map.class);
long l7 = System.currentTimeMillis();
this.logger.info("接口总耗时--------" + (l7 - l6));
if (String.valueOf(resMap.get("code")).equals("500")) {
this.logger.info("封存id--" + reportDownDto.getPatient().getSealId() + "--------上传失败!" + resMap.get("msg"));
throw new RuntimeException("封存id--" + reportDownDto.getPatient().getSealId() + "上传失败:" + resMap.get("msg"));
} else {
this.logger.info("----------执行成功-----------");
return ResultUtils.success().asXML();
}
}
}
} else {
doctorSubmitTime = this.getElementTextCanBeEmpty(elementRoot, doctorSubmitTime.split(","));
long l2 = System.currentTimeMillis();
String patientId = this.afCollectTaskService.getpatientIdByEmpId(empIdText);
long l3 = System.currentTimeMillis();
this.logger.info("查询patient_id耗时" + (l3 - l2));
long l4 = System.currentTimeMillis();
int i = this.afCollectTaskService.deleteByPatientIdAndCollectorId(patientId, collectorid);
long l5 = System.currentTimeMillis();
this.logger.info("删除" + empIdText + "af_downfile表" + i + "条数据耗时-----" + (l5 - l4));
long l9 = System.currentTimeMillis();
int i2 = this.afCollectTaskService.deleteByPatientIdAndSysFlag(patientId, collectorid);
long l10 = System.currentTimeMillis();
this.logger.info("删除" + empIdText + "af_collect_task表" + i2 + "条数据耗时-----" + (l10 - l9));
reportDownPatientDto.setJzh(empIdText);
this.logger.info("患者主索引号:" + empIdText);
reportDownDto.setPatient(reportDownPatientDto);
for(Element element : xmlUtils.getJsonByName(elementRoot)) {
String filetitle = this.getElementText(element, filetitleKey.split(","));
String downurl = this.getElementText(element, downurlKey.split(","));
if (collectorid.equals("1")) {
nurseSubmitTime = this.getElementText(element, nurseSubmitTime.split(","));
this.afCollectTaskService.updateNurseSubmitTime(reportDownDto, nurseSubmitTime, submit);
this.afCollectTaskService.insertNurseState(reportDownDto, nurseSubmitTime);
}
String sortingTime = this.getElementTextCanBeEmpty(element, sortingTimeKey.split(","));
String serialnum = this.getElementText(element, serialnmnKey.split(","));
ReportDownScanFileDto reportDownScanFileDto = new ReportDownScanFileDto();
reportDownScanFileDto.setDownurl(downurl);
reportDownScanFileDto.setFiletitle(filetitle);
reportDownScanFileDto.setSerialnum(serialnum);
reportDownScanFileDto.setSortdate(sortingTime);
reportDownScanFileDto.setFilesource(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filesource"))));
reportDownScanFileDto.setFilestoragetype(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filestoragetype"))));
if (reportDownScanFileDto.getDownurl().length() > 200) {
reportDownScanFileDto.setFiletype(2);
}
reportDownDtoArr.add(reportDownScanFileDto);
}
if (reportDownDtoArr.size() <= 0) {
throw new RuntimeException("不存在必要的基本信息");
} else {
reportDownDto.setScanfiles(reportDownDtoArr);
updatescanAssort(reportDownDtoArr,patientId,collectorid,empIdText);
if (collectorid.equals("22")) {
TBasic tBasic = this.tBasicMapper.selectByjzh(empIdText);
if (null != tBasic) {
TBasicExtend tBasicExtend = this.tBasicExtendMapper.selectByPatientId(tBasic.getPatientId());
if (null != tBasicExtend) {
TBasic tBasicPre = this.tBasicMapper.selectByjzh(tBasicExtend.getPreJzh());
if (null != tBasicPre) {
int pre = this.tScanAssortMapper.updateByPatientId(tBasic.getPatientId(), tBasicPre.getPatientId());
if (pre <= 0) {
this.logger.info("当前预住院没有文件!");
} else {
this.logger.info("本次预住院合并" + pre + "份报告");
}
} else {
this.logger.info("未查询到预住院患者信息!");
}
}
}
}
this.afCollectTaskService.updateDoctorSubmitTime(reportDownDto, doctorSubmitTime, submit);
this.afCollectTaskService.insertDoctorState(reportDownDto, doctorSubmitTime);
this.afCollectTaskService.insert(reportDownDto);
String post = "";
this.logger.info("--------执行上传功能----------");
Map params = (Map)JSON.parseObject(JSON.toJSONString(reportDownDto), Map.class);
if (((ReportDownScanFileDto)reportDownDto.getScanfiles().get(0)).getFiletype() == 1) {
this.logger.info(reportDownDto.getPatient().getJzh() + ": 上传参数:" + params);
}
long l = System.currentTimeMillis();
post = HttpUtils.post(String.valueOf(FileUtils.getJsonByName(Codes.UPLOAD.getMessage())), headMap, params);
long l1 = System.currentTimeMillis();
this.logger.info("请求下载耗时----------" + (l1 - l));
if (StringUtils.isBlank(post)) {
this.logger.info("--------上传时出现错误,可能是文件服务没有启动----------");
throw new RuntimeException("上传时出现错误,可能是文件服务没有启动");
} else {
Map resMap = (Map)JSON.parseObject(post, Map.class);
long l7 = System.currentTimeMillis();
this.logger.info("接口总耗时--------" + (l7 - l6));
if (String.valueOf(resMap.get("code")).equals("500")) {
this.logger.info(reportDownDto.getPatient().getJzh() + "--------上传失败!" + resMap.get("msg"));
throw new RuntimeException(reportDownDto.getPatient().getJzh() + "上传失败:" + resMap.get("msg"));
} else {
this.logger.info("----------执行成功-----------");
return ResultUtils.success().asXML();
}
}
}
}
} catch (RuntimeException e) {
e.printStackTrace();
this.logger.error(e.getMessage());
String stackTrace = ExceptionUtils.getStackTrace(e);
this.logger.info("错误信息----------" + stackTrace);
return ResultUtils.fail(e.getMessage());
} catch (Exception e) {
this.logger.error(e.getMessage());
String stackTrace = ExceptionUtils.getStackTrace(e);
this.logger.info("错误信息----------" + stackTrace);
e.printStackTrace();
return ResultUtils.fail(e.getMessage());
}
}
private void updatescanAssort( List<ReportDownScanFileDto> reportDownDtoArr,String patientId, String collectorid,String jzh) {
// 存在每次推送都可能有不一样的报告id判断是否全部作废。当前推送的报告id与之前有相同则不进行作废处理
List<String> existsIdNos= this.afCollectTaskService.getIdNos(patientId,collectorid);
boolean cancel=true;
if(!existsIdNos.isEmpty()){
for (ReportDownScanFileDto scanFileDto : reportDownDtoArr) {
String serialnum = scanFileDto.getSerialnum();
// 匹配到了相同的报告流水号,不作废
if(existsIdNos.contains(serialnum)){
cancel = false;
break;
}
}
}
if(cancel){
int cancelCount = this.afCollectTaskService.cacelScanAssort(patientId, collectorid);
logger.info("患者病案主键:{},jzh:{} 作废来源:{} 文件 {} 个。",patientId,jzh,collectorid,cancelCount);
}
}
private void sealCollect(String sealId) {
String systemCollectConfigFileName = "dataConfig" + File.separator + "SystemCollectConfig";
List<SystemCollectConfig.CollectConfig> sealCollectConfigs;
try {
String configJson = FileUtils.readJsonFromCurrentProject(systemCollectConfigFileName);
SystemCollectConfig systemCollectConfig = (SystemCollectConfig)JSON.parseObject(configJson, SystemCollectConfig.class);
String sealCollectClassify = systemCollectConfig.getSealCollectClassify();
if (!Classify.SEAL_COLLECT.getClassify().equals(sealCollectClassify)) {
throw new RuntimeException("封存病案采集配置未配置!");
}
sealCollectConfigs = systemCollectConfig.getSealCollectConfigs();
for(SystemCollectConfig.CollectConfig config : sealCollectConfigs) {
if (StringUtils.isBlank(config.getDesc()) || StringUtils.isBlank(config.getUrl())) {
throw new RuntimeException("封存病案采集配置中描述和地址不能为空!");
}
}
} catch (RuntimeException runtimeException) {
this.logger.error(runtimeException.getMessage(), runtimeException);
return;
} catch (Exception ex) {
this.logger.error("封存病案获取采集配置出现未知错误!", ex);
return;
}
List<CompletableFuture<Void>> completableFutureList = new CopyOnWriteArrayList();
for(SystemCollectConfig.CollectConfig config : sealCollectConfigs) {
CompletableFuture<Void> completableFuture = CompletableFuture.runAsync(() -> this.sealCollect(sealId, config), this.threadPoolExecutor);
completableFutureList.add(completableFuture);
}
if (!completableFutureList.isEmpty()) {
CompletableFuture<Void> allFutures = CompletableFuture.allOf((CompletableFuture[])completableFutureList.toArray(new CompletableFuture[0]));
try {
allFutures.get();
} catch (Exception ex) {
this.logger.error(ex.getMessage(), ex);
}
}
}
private void sealCollect(String sealId, SystemCollectConfig.CollectConfig config) {
String url = config.getUrl() + "?sealId=" + sealId;
String desc = config.getDesc();
try {
this.logger.info("{},采集地址:{}", desc, url);
String result = HttpUtils.get(url);
this.logger.info("{},采集地址:{},采集结果:{}", new Object[]{desc, url, result});
} catch (Exception ex) {
this.logger.error(desc + ",采集地址:" + url + ",采集失败!", ex);
}
}
@Override
public String outPatient(String xml) {
long l6 = System.currentTimeMillis();
try {
this.logger.info("报告推送入参:" + xml);
xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" + xml;
XmlUtils xmlUtils = new XmlUtils(new ByteArrayInputStream(xml.getBytes("UTF-8")));
Element elementRoot = xmlUtils.getMsgElement();
String serialnmnKey = String.valueOf(FileUtils.getJsonByName("serialnum"));
String filetitleKey = String.valueOf(FileUtils.getJsonByName("filetitle"));
String downurlKey = String.valueOf(FileUtils.getJsonByName("downurl"));
String empId = String.valueOf(FileUtils.getJsonByName(Codes.EMP_ID.getMessage()));
Map<String, Object> headMap = new HashMap();
headMap.put("Content-Type", "application/json");
int filetype = Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filetype")));
String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid"));
String assortid = this.getAssortid(elementRoot);
ReportDownDto reportDownDto = new ReportDownDto();
reportDownDto.setCollectorid(collectorid);
reportDownDto.setAssortid(assortid);
List<ReportDownScanFileDto> reportDownDtoArr = new ArrayList();
ReportDownPatientDto reportDownPatientDto = new ReportDownPatientDto();
String empIdText = this.getElementText(elementRoot, empId.split(","));
reportDownPatientDto.setJzh(empIdText);
this.logger.info("患者主索引号:" + empIdText);
reportDownDto.setPatient(reportDownPatientDto);
for(Element element : xmlUtils.getJsonByName(elementRoot)) {
String filetitle = this.getElementText(element, filetitleKey.split(","));
String downurl = this.getElementText(element, downurlKey.split(","));
String serialnum = this.getElementText(element, serialnmnKey.split(","));
ReportDownScanFileDto reportDownScanFileDto = new ReportDownScanFileDto();
reportDownScanFileDto.setDownurl(downurl.substring(1, downurl.length() - 1));
reportDownScanFileDto.setFiletitle(filetitle);
reportDownScanFileDto.setSerialnum(serialnum);
reportDownScanFileDto.setFiletype(filetype);
reportDownScanFileDto.setFilesource(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filesource"))));
reportDownScanFileDto.setFilestoragetype(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filestoragetype"))));
if (reportDownScanFileDto.getDownurl().length() > 200) {
reportDownScanFileDto.setFiletype(2);
}
reportDownDtoArr.add(reportDownScanFileDto);
}
if (reportDownDtoArr.size() <= 0) {
throw new RuntimeException("不存在必要的基本信息");
} else {
reportDownDto.setScanfiles(reportDownDtoArr);
this.afCollectTaskService.insertOut(reportDownDto);
String post = "";
this.logger.info("--------执行上传功能----------");
Map params = (Map)JSON.parseObject(JSON.toJSONString(reportDownDto), Map.class);
this.logger.info("上传参数:" + params);
long l = System.currentTimeMillis();
synchronized(this) {
post = HttpUtils.post(String.valueOf(FileUtils.getJsonByName(Codes.UPLOAD.getMessage())), headMap, params);
}
long l1 = System.currentTimeMillis();
this.logger.info("请求下载耗时----------" + (l1 - l));
if (StringUtils.isBlank(post)) {
this.logger.info("--------上传时出现错误,可能是文件服务没有启动----------");
throw new RuntimeException("上传时出现错误,可能是文件服务没有启动");
} else {
Map resMap = (Map)JSON.parseObject(post, Map.class);
long l7 = System.currentTimeMillis();
this.logger.info("接口总耗时--------" + (l7 - l6));
if (String.valueOf(resMap.get("code")).equals("500")) {
throw new RuntimeException(String.valueOf(resMap.get("msg")));
} else {
this.logger.info("----------执行成功-----------");
return ResultUtils.success().asXML();
}
}
}
} catch (RuntimeException e) {
e.printStackTrace();
this.logger.error(e.getMessage());
return ResultUtils.fail(e.getMessage());
} catch (Exception e) {
this.logger.error(e.getMessage());
e.printStackTrace();
return ResultUtils.fail(e.getMessage());
}
}
private String handleDownUrl(String downurl) {
String url = "";
try {
XmlUtils xmlUtils = new XmlUtils(new ByteArrayInputStream(downurl.getBytes("UTF-8")));
if (null != xmlUtils) {
url = downurl;
Object urlReplaceObj = FileUtils.getJsonByName("urlReplace");
List<String> list = JSON.parseArray(JSON.toJSONString(urlReplaceObj), String.class);
for(String urlReplace : list) {
url = url.replaceAll(urlReplace, "");
}
return url;
}
} catch (Exception e) {
e.printStackTrace();
}
return "";
}
private CanlcelDto getCanlCelDtoByXml(String xml) throws UnsupportedEncodingException {
XmlUtils xmlUtils = null;
try {
xmlUtils = new XmlUtils(new ByteArrayInputStream(xml.getBytes("UTF-8")));
} catch (Exception e) {
e.printStackTrace();
}
List<String> repealDirectory = (List)FileUtils.getJsonByName("repealDirectory");
Element element = xmlUtils.getElement(repealDirectory);
String repealSerialnum = String.valueOf(FileUtils.getJsonByName("repealSerialnum"));
Element repealSerialnumElement = element.element(repealSerialnum);
CanlcelDto canlcelDto = new CanlcelDto();
if (null != repealSerialnumElement && !StringUtils.isBlank(repealSerialnumElement.getText())) {
String serialnum = repealSerialnumElement.getText();
this.logger.info("当前流水号为:" + serialnum);
canlcelDto.setSerialnum(serialnum);
return canlcelDto;
} else {
throw new RuntimeException(repealSerialnum + "标签必须有值");
}
}
private String getElementText(Element element, String[] args) {
String resText = "";
Element byElement = (Element)element.clone();
Element byElement1 = null;
for(String arg : args) {
String[] split = arg.split("&");
if (split.length > 1) {
for(String spi : split) {
if (byElement1 == null) {
byElement1 = byElement.element(spi);
} else {
byElement1 = byElement1.element(spi);
}
if (byElement1 != null && StringUtils.isNotBlank(byElement1.getText())) {
break;
}
byElement1 = null;
}
} else if (byElement1 == null) {
byElement1 = byElement.element(arg);
} else {
byElement1 = byElement1.element(arg);
}
if (byElement1 == null) {
break;
}
resText = byElement1.getText();
}
if (StringUtils.isBlank(resText)) {
throw new RuntimeException(args[args.length - 1] + "的值不能为空");
} else {
return resText;
}
}
private String getElementTextCanBeEmpty(Element element, String[] args) {
String resText = "";
Element byElement = (Element)element.clone();
Element byElement1 = null;
for(String arg : args) {
String[] split = arg.split("&");
if (split.length > 1) {
for(String spi : split) {
if (byElement1 == null) {
byElement1 = byElement.element(spi);
} else {
byElement1 = byElement1.element(spi);
}
if (byElement1 != null && StringUtils.isNotBlank(byElement1.getText())) {
break;
}
byElement1 = null;
}
} else if (byElement1 == null) {
byElement1 = byElement.element(arg);
} else {
byElement1 = byElement1.element(arg);
}
if (byElement1 == null) {
break;
}
resText = byElement1.getText();
}
return resText;
}
private String getAssortid(Element element) {
String assortId = String.valueOf(FileUtils.getJsonByName("assortid"));
if (StringUtils.isBlank(assortId)) {
String assortIdKey = String.valueOf(FileUtils.getJsonByName("assortidParamKey"));
if (StringUtils.isBlank(assortIdKey)) {
assortId = "";
} else {
assortId = element.element(assortIdKey).getText();
}
String myAssortId = this.afCollectTaskService.getAssortIdByAssortId(assortId);
if (StringUtils.isBlank(myAssortId)) {
myAssortId = this.afCollectTaskService.getAssortIdByAssortName(assortId);
if (StringUtils.isBlank(myAssortId)) {
String uuid = UUID.randomUUID().toString().replaceAll("-", "");
ZdAssort zdAssort = new ZdAssort();
zdAssort.setAssortName(assortId);
zdAssort.setAssortId(uuid);
zdAssort.setEffective(1);
this.afCollectTaskService.insertZdAssort(zdAssort);
assortId = uuid;
} else {
assortId = myAssortId;
}
} else {
assortId = myAssortId;
}
}
return assortId;
}
public static void depdf() {
Path path = Paths.get("D:\\pdf.txt");
Stream<String> lines = null;
try {
lines = Files.lines(path);
} catch (IOException e) {
e.printStackTrace();
}
String collect = (String)lines.collect(Collectors.joining(System.lineSeparator()));
String encodedBytes = collect;
BASE64Decoder decoder = new BASE64Decoder();
byte[] decodedBytes = new byte[0];
try {
decodedBytes = decoder.decodeBuffer(encodedBytes);
} catch (IOException e) {
e.printStackTrace();
}
File file = new File("D:\\newfile.pdf");
FileOutputStream fop = null;
try {
fop = new FileOutputStream(file);
fop.write(decodedBytes);
fop.flush();
fop.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}

@ -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,477 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package com.docus.bgts.service;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.docus.bgts.entity.AfCollectTask;
import com.docus.bgts.entity.AfInterfaceCollect;
import com.docus.bgts.entity.AfInterfaceCollectSub;
import com.docus.bgts.entity.CanlcelDto;
import com.docus.bgts.entity.ReportDownDto;
import com.docus.bgts.entity.ReportDownScanFileDto;
import com.docus.bgts.entity.TBasic;
import com.docus.bgts.entity.TBasicExtend;
import com.docus.bgts.entity.ZdAssort;
import com.docus.bgts.enums.Codes;
import com.docus.bgts.facade.IAfCollectTaskService;
import com.docus.bgts.mapper.AfCollectTaskMapper;
import com.docus.bgts.mapper.AfInterfaceCollectMapper;
import com.docus.bgts.mapper.AfInterfaceCollectSubMapper;
import com.docus.bgts.mapper.TBasicExtendMapper;
import com.docus.bgts.mapper.TBasicMapper;
import com.docus.bgts.utils.FileUtils;
import com.docus.bgts.utils.HttpUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class AfCollectTaskServiceImpl extends ServiceImpl<AfCollectTaskMapper, AfCollectTask> implements IAfCollectTaskService {
private final Logger log = LoggerFactory.getLogger(this.getClass());
@Autowired
AfCollectTaskMapper afCollectTaskMapper;
@Autowired
AfInterfaceCollectMapper afInterfaceCollectMapper;
@Autowired
AfInterfaceCollectSubMapper afInterfaceCollectSubMapper;
@Autowired
TBasicExtendMapper tBasicExtendMapper;
@Autowired
TBasicMapper tBasicMapper;
@Override
public String getpatientIdByEmpId(String empId) {
String patientId = this.afCollectTaskMapper.getpatientIdByEmpId(empId);
return patientId;
}
@Override
public String getpatientIdBysealId(String sealId) {
return this.afCollectTaskMapper.getPatientIdBysealId(sealId);
}
@Override
public String getNameByPatientId(String patientId) {
return this.afCollectTaskMapper.selectNameByPatientId(patientId);
}
@Override
public String getOutpatientIdByJzhel(String jzh) {
return this.afCollectTaskMapper.selectPatientByjzh(jzh);
}
@Override
@Transactional
public void insertOut(ReportDownDto reportDownDto) {
if (((ReportDownScanFileDto)reportDownDto.getScanfiles().get(0)).getFiletype() == 1) {
this.log.info("新增任务表初始数据:" + reportDownDto);
}
String patientId = this.getOutpatientIdByJzhel(reportDownDto.getPatient().getJzh());
if (StringUtils.isBlank(patientId)) {
throw new RuntimeException("操作的病案信息不存在");
} else {
Date date = new Date();
Integer save = null;
List<ReportDownScanFileDto> scanfiles = reportDownDto.getScanfiles();
for(ReportDownScanFileDto scanfile : scanfiles) {
long l = System.currentTimeMillis();
AfCollectTask afCollectTask = (AfCollectTask)this.afCollectTaskMapper.selectOne((Wrapper)((QueryWrapper)(new QueryWrapper()).eq("C1", scanfile.getSerialnum())).eq("sysflag", reportDownDto.getCollectorid()));
if (afCollectTask != null && afCollectTask.getId() != null) {
afCollectTask.setPatientId(patientId);
afCollectTask.setSysflag(reportDownDto.getCollectorid());
afCollectTask.setState("0");
afCollectTask.setSyncTime(date);
afCollectTask.setC1(scanfile.getSerialnum());
afCollectTask.setC2(scanfile.getFiletitle());
afCollectTask.setC3(reportDownDto.getPatient().getJzh());
save = this.afCollectTaskMapper.updateById(afCollectTask);
} else {
afCollectTask = new AfCollectTask();
afCollectTask.setPatientId(patientId);
afCollectTask.setSysflag(reportDownDto.getCollectorid());
afCollectTask.setState("0");
afCollectTask.setSyncTime(date);
afCollectTask.setC1(scanfile.getSerialnum());
afCollectTask.setC2(scanfile.getFiletitle());
afCollectTask.setC3(reportDownDto.getPatient().getJzh());
save = this.afCollectTaskMapper.insert(afCollectTask);
}
if (save <= 0) {
this.log.info("任务表操作出错");
throw new RuntimeException("插入病案任务表数据出错");
}
if (afCollectTask.getId() == null) {
this.log.info("插入任务id为空");
throw new RuntimeException("插入任务id为空");
}
scanfile.setTaskid(afCollectTask.getId());
}
reportDownDto.setScanfiles(scanfiles);
}
}
@Override
@Transactional
public void insert(ReportDownDto reportDownDto) {
if (((ReportDownScanFileDto)reportDownDto.getScanfiles().get(0)).getFiletype() == 1) {
this.log.info("新增任务表初始数据:" + reportDownDto);
}
String patientId = this.getpatientIdByEmpId(reportDownDto.getPatient().getJzh());
if (StringUtils.isBlank(patientId)) {
throw new RuntimeException("操作的病案信息不存在");
} else {
Date date = new Date();
Integer save = null;
List<ReportDownScanFileDto> scanfiles = reportDownDto.getScanfiles();
for(ReportDownScanFileDto scanfile : scanfiles) {
long l = System.currentTimeMillis();
AfCollectTask afCollectTask;
synchronized(this) {
afCollectTask = (AfCollectTask)this.afCollectTaskMapper.selectOne((Wrapper)((QueryWrapper)(new QueryWrapper()).eq("C1", scanfile.getSerialnum())).eq("sysflag", reportDownDto.getCollectorid()));
if (afCollectTask != null && afCollectTask.getId() != null) {
afCollectTask.setPatientId(patientId);
afCollectTask.setSysflag(reportDownDto.getCollectorid());
afCollectTask.setState("0");
afCollectTask.setSyncTime(date);
afCollectTask.setC1(scanfile.getSerialnum());
afCollectTask.setC2(scanfile.getFiletitle());
afCollectTask.setC3(reportDownDto.getPatient().getJzh());
save = this.afCollectTaskMapper.updateById(afCollectTask);
} else {
afCollectTask = new AfCollectTask();
afCollectTask.setPatientId(patientId);
afCollectTask.setSysflag(reportDownDto.getCollectorid());
afCollectTask.setState("0");
afCollectTask.setSyncTime(date);
afCollectTask.setC1(scanfile.getSerialnum());
afCollectTask.setC2(scanfile.getFiletitle());
afCollectTask.setC3(reportDownDto.getPatient().getJzh());
save = this.afCollectTaskMapper.insert(afCollectTask);
}
}
if (save <= 0) {
this.log.info("任务表操作出错");
throw new RuntimeException("插入病案任务表数据出错");
}
if (afCollectTask.getId() == null) {
this.log.info("插入任务id为空");
throw new RuntimeException("插入任务id为空");
}
scanfile.setTaskid(afCollectTask.getId());
}
reportDownDto.setScanfiles(scanfiles);
}
}
@Override
public void insertSeal(ReportDownDto reportDownDto) {
if (((ReportDownScanFileDto)reportDownDto.getScanfiles().get(0)).getFiletype() == 1) {
this.log.info("新增封存任务表初始数据:" + reportDownDto);
}
String patientId = this.getpatientIdBysealId(reportDownDto.getPatient().getSealId());
if (StringUtils.isBlank(patientId)) {
throw new RuntimeException("操作的病案信息不存在");
} else {
reportDownDto.getPatient().setPatientid(patientId);
Date date = new Date();
Integer save = null;
List<ReportDownScanFileDto> scanfiles = reportDownDto.getScanfiles();
for(ReportDownScanFileDto scanfile : scanfiles) {
long l = System.currentTimeMillis();
AfCollectTask afCollectTask = (AfCollectTask)this.afCollectTaskMapper.selectOne((Wrapper)((QueryWrapper)(new QueryWrapper()).eq("C1", scanfile.getSerialnum())).eq("sysflag", reportDownDto.getCollectorid()));
if (afCollectTask != null && afCollectTask.getId() != null) {
afCollectTask.setPatientId(patientId);
afCollectTask.setSysflag(reportDownDto.getCollectorid());
afCollectTask.setState("0");
afCollectTask.setSyncTime(date);
afCollectTask.setC1(scanfile.getSerialnum());
afCollectTask.setC2(scanfile.getFiletitle());
afCollectTask.setC3(reportDownDto.getPatient().getJzh());
save = this.afCollectTaskMapper.updateById(afCollectTask);
} else {
afCollectTask = new AfCollectTask();
afCollectTask.setPatientId(patientId);
afCollectTask.setSysflag(reportDownDto.getCollectorid());
afCollectTask.setState("0");
afCollectTask.setSyncTime(date);
afCollectTask.setC1(scanfile.getSerialnum());
afCollectTask.setC2(scanfile.getFiletitle());
afCollectTask.setC3(reportDownDto.getPatient().getJzh());
save = this.afCollectTaskMapper.insert(afCollectTask);
}
if (save <= 0) {
this.log.info("封存任务表操作出错");
throw new RuntimeException("封存插入病案任务表数据出错");
}
if (afCollectTask.getId() == null) {
this.log.info("封存插入任务id为空");
throw new RuntimeException("封存插入任务id为空");
}
scanfile.setTaskid(afCollectTask.getId());
}
reportDownDto.setScanfiles(scanfiles);
}
}
@Override
public void updateInterfaceCollect(String collectSubId, int state) {
AfInterfaceCollectSub afInterfaceCollectSub = (AfInterfaceCollectSub)this.afInterfaceCollectSubMapper.selectById(collectSubId);
if (afInterfaceCollectSub == null) {
throw new RuntimeException("afInterfaceCollectSub表数据为空");
} else {
afInterfaceCollectSub.setState(state);
int i = this.afInterfaceCollectSubMapper.updateById(afInterfaceCollectSub);
if (i <= 0) {
throw new RuntimeException("记录任务数时出错");
} else {
if (state == 1) {
AfInterfaceCollect afInterfaceCollect = (AfInterfaceCollect)this.afInterfaceCollectMapper.selectById(afInterfaceCollectSub.getAfInterfaceCollectId());
afInterfaceCollect.setCompleteCount(afInterfaceCollect.getCompleteCount() + 1);
i = this.afInterfaceCollectMapper.updateById(afInterfaceCollect);
if (i <= 0) {
throw new RuntimeException("记录任务数时出错");
}
}
}
}
}
@Override
public List<String> listJZHByDate(String date1, String date2) {
return this.afCollectTaskMapper.listJZHByDate(date1, date2);
}
@Override
public void invokeRepoalFile(CanlcelDto canlcelDto) throws Exception {
Map<String, Object> headMap = new HashMap();
headMap.put("Content-Type", "application/json");
this.log.info("开始文件撤回操作:" + canlcelDto);
String post = HttpUtils.post(String.valueOf(FileUtils.getJsonByName(Codes.REPOAL.getMessage())), headMap, (Map)JSON.parseObject(JSON.toJSONString(canlcelDto), Map.class));
Map resMap = (Map)JSON.parseObject(post, Map.class);
if (String.valueOf(resMap.get("code")).equals("500")) {
this.log.error(String.valueOf(resMap.get("msg")));
throw new RuntimeException(String.valueOf(resMap.get("msg")));
}
}
@Override
public String selectJzh(String inPatientNo, String examApplyDate) {
return this.afCollectTaskMapper.selectJzh(inPatientNo, examApplyDate);
}
@Override
public String getAssortIdByAssortId(String assortId) {
return this.afCollectTaskMapper.getAssortIdByAssortId(assortId);
}
@Override
public String getAssortIdByAssortName(String assortId) {
return this.afCollectTaskMapper.getAssortIdByAssortName(assortId);
}
@Override
public void insertZdAssort(ZdAssort zdAssort) {
this.afCollectTaskMapper.insertZdAssort(zdAssort);
}
@Override
public int deleteByPatientIdAndCollectorId(String patientId, String collectorId) {
return this.afCollectTaskMapper.deleteByPatientIdAndCollectorId(patientId, collectorId);
}
@Override
public int deleteByPatientIdAndAssortId(String patientId, String assortId) {
return this.afCollectTaskMapper.deleteByPatientIdAndAssortId(patientId, assortId);
}
@Override
public int deleteByPatientIdAndSysFlag(String patientId, String sysFlag) {
return this.afCollectTaskMapper.deleteByPatientIdAndSysFlag(patientId, sysFlag);
}
@Override
public int updateNurseSubmitTime(ReportDownDto reportDownDto, String nurseSubmitTime, String nurseSubmitName) {
String patientId = this.getpatientIdByEmpId(reportDownDto.getPatient().getJzh());
TBasicExtend tBasicExtend = this.tBasicExtendMapper.selectByPatientId(patientId);
int update = 0;
try {
if (null != tBasicExtend) {
tBasicExtend.setNurseSubmitTime(new Date());
update = this.tBasicExtendMapper.updatenurseSubmitTime(tBasicExtend);
if (null != patientId && null != tBasicExtend.getNurseSubmitTime()) {
Map<String, Object> headMap = new HashMap();
headMap.put("Content-Type", "application/json");
Map<String, List<String>> params = new HashMap();
List<String> list = new ArrayList();
list.add("护士");
list.add((new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(tBasicExtend.getNurseSubmitTime()));
params.put(patientId, list);
params = (Map)JSON.parseObject(JSON.toJSONString(params), Map.class);
String post = HttpUtils.postSubmit("http://192.9.100.171:9102/basic/tlog/saveLog?nodeCode=again_submit&userName=" + nurseSubmitName + "&name=" + nurseSubmitName, headMap, params);
Map resMap = (Map)JSON.parseObject(post, Map.class);
long l7 = System.currentTimeMillis();
if (String.valueOf(resMap.get("code")).equals("500")) {
this.log.info("调用示踪接口出错!" + String.valueOf(resMap.get("msg")));
} else {
this.log.info("调用示踪接口返回值为--" + resMap);
}
}
} else {
TBasicExtend tBasicExtend1 = new TBasicExtend();
tBasicExtend1.setPatientId(patientId);
tBasicExtend1.setNurseSubmitTime((new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).parse(nurseSubmitTime));
update = this.tBasicExtendMapper.insert(tBasicExtend1);
}
} catch (Exception e) {
e.printStackTrace();
this.log.error(e.getMessage());
}
return update;
}
@Override
public int updateDoctorSubmitTime(ReportDownDto reportDownDto, String doctorSubmitTime, String doctorSubmitName) {
String patientId = this.getpatientIdByEmpId(reportDownDto.getPatient().getJzh());
TBasicExtend tBasicExtend = this.tBasicExtendMapper.selectByPatientId(patientId);
int update = 0;
this.log.info("医生提交方法------");
try {
SimpleDateFormat simple = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date submitTime = simple.parse(doctorSubmitTime);
if (null != tBasicExtend) {
tBasicExtend.setDoctorSubmitTime(submitTime);
update = this.tBasicExtendMapper.updateDoctorSubmitTime(tBasicExtend);
try {
if (null != patientId && null != tBasicExtend.getDoctorSubmitTime()) {
Map<String, Object> headMap = new HashMap();
headMap.put("Content-Type", "application/json");
Map<String, List<String>> params = new HashMap();
List<String> list = new ArrayList();
list.add("医生");
list.add((new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(tBasicExtend.getDoctorSubmitTime()));
params.put(patientId, list);
params = (Map)JSON.parseObject(JSON.toJSONString(params), Map.class);
long l = System.currentTimeMillis();
String post = HttpUtils.postSubmit("http://192.9.100.171:9102/basic/tlog/saveLog?nodeCode=again_submit&userName=" + doctorSubmitName + "&name=" + doctorSubmitName, headMap, params);
long l1 = System.currentTimeMillis();
this.log.info("调用示踪接口耗时{}", l1 - l);
Map resMap = (Map)JSON.parseObject(post, Map.class);
long l7 = System.currentTimeMillis();
if (String.valueOf(resMap.get("code")).equals("500")) {
this.log.info("调用示踪接口出错!" + resMap);
throw new RuntimeException(String.valueOf(resMap.get("msg")));
}
this.log.info("调用示踪接口返回----" + resMap);
} else {
this.log.info("未调用示踪接口-----");
}
} catch (Exception e) {
this.log.error(e.getMessage());
}
} else {
TBasicExtend tBasicExtend1 = new TBasicExtend();
tBasicExtend1.setPatientId(patientId);
tBasicExtend1.setDoctorSubmitTime(submitTime);
update = this.tBasicExtendMapper.insert(tBasicExtend1);
}
} catch (Exception e) {
e.printStackTrace();
this.log.error(e.getMessage());
}
return update;
}
@Override
public void insertNurseState(ReportDownDto reportDownDto, String nurseSubmitTime) {
TBasic tBasic = this.tBasicMapper.selectByjzh(reportDownDto.getPatient().getJzh());
if (null == tBasic) {
throw new RuntimeException("操作的病案信息不存在");
} else {
if (null != nurseSubmitTime && !"".equals(nurseSubmitTime)) {
tBasic.setNurseState(1);
int update = this.tBasicMapper.update(tBasic);
if (update > 0) {
this.log.info("护士提交状态修改成功!");
} else {
this.log.info("护士提交状态修改失败!");
}
} else {
tBasic.setNurseState(0);
int update = this.tBasicMapper.update(tBasic);
if (update > 0) {
this.log.info("护士提交状态修改成功!");
} else {
this.log.info("护士提交状态修改失败!");
}
}
}
}
@Override
public void insertDoctorState(ReportDownDto reportDownDto, String doctorSubmitTime) {
TBasic tBasic = this.tBasicMapper.selectByjzh(reportDownDto.getPatient().getJzh());
if (null == tBasic) {
throw new RuntimeException("操作的病案信息不存在");
} else {
if (null != doctorSubmitTime && !"".equals(doctorSubmitTime)) {
tBasic.setDoctorState(1);
int update = this.tBasicMapper.update(tBasic);
if (update > 0) {
this.log.info("医生提交状态修改成功!");
} else {
this.log.info("医生提交状态修改失败!");
}
} else {
tBasic.setDoctorState(0);
int update = this.tBasicMapper.update(tBasic);
if (update > 0) {
this.log.info("医生提交状态修改成功!");
} else {
this.log.info("医生提交状态修改失败!");
}
}
}
}
@Override
public TBasic selectDisDateIsNull(String inPatientNo) {
return this.afCollectTaskMapper.selectDisDateIsNull(inPatientNo);
}
@Override
public String selectDisDateIsNullJzh(String inPatientNo, String examApplyDate) {
return this.afCollectTaskMapper.selectDisDateIsNullJzh(inPatientNo, examApplyDate);
}
@Override
public List<String> getIdNos(String patientId, String collectorid) {
return this.afCollectTaskMapper.getIdNos(patientId, collectorid);
}
@Override
public int cacelScanAssort(String patientId, String collectorid) {
return this.afCollectTaskMapper.cacelScanAssort(patientId,collectorid);
}
}

@ -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,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,51 @@
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<!-- %m输出的信息,%p日志级别,%t线程名,%d日期,%c类的全名,%i索引【从数字0开始递增】,,, -->
<!-- appender是configuration的子节点是负责写日志的组件。 -->
<!-- ConsoleAppender把日志输出到控制台 -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>[%d{yyyy-MM-dd' 'HH:mm:ss.sss}] [%contextName] [%thread] [%X{traceId}] %-5level %logger{36} - %msg%n</pattern>
<!-- 控制台也要使用UTF-8不要使用GBK否则会中文乱码 -->
<charset>UTF-8</charset>
</encoder>
</appender>
<!-- RollingFileAppender滚动记录文件先将日志记录到指定文件当符合某个条件时将日志记录到其他文件 -->
<!-- 以下的大概意思是1.先按日期存日志日期变了将前一天的日志文件名重命名为XXX%日期%索引新的日志仍然是demo.log -->
<!-- 2.如果日期没有发生变化但是当前日志的文件大小超过1KB时对当前日志进行分割 重命名-->
<appender name="demolog" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>configLog/log.log</File>
<!-- rollingPolicy:当发生滚动时,决定 RollingFileAppender 的行为,涉及文件移动和重命名。 -->
<!-- TimeBasedRollingPolicy 最常用的滚动策略,它根据时间来制定滚动策略,既负责滚动也负责出发滚动 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 活动文件的名字会根据fileNamePattern的值每隔一段时间改变一次 -->
<!-- 文件名log/demo.2017-12-05.0.log -->
<fileNamePattern>log/demo.%d.%i.log</fileNamePattern>
<!-- 每产生一个日志文件该日志文件的保存期限为180天 -->
<maxHistory>180</maxHistory>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- maxFileSize:这是活动文件的大小默认值是10MB测试时可改成1KB看效果 -->
<maxFileSize>10MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<!-- pattern节点用来设置日志的输入格式 -->
<pattern>
[%d{yyyy-MM-dd' 'HH:mm:ss.sss}] [%C] [%t] [%X{traceId}] [%L] [%-5p] %m%n
</pattern>
<charset>utf-8</charset>
<!-- 记录日志的编码:此处设置字符集 - -->
<charset>UTF-8</charset>
</encoder>
</appender>
<!-- 控制台输出日志级别 -->
<root level="info">
<appender-ref ref="STDOUT" />
</root>
<!-- 指定项目中某个包,当有日志操作行为时的日志记录级别 -->
<!-- com.liyan为根包也就是只要是发生在这个根包下面的所有日志操作行为的权限都是DEBUG -->
<!-- 级别依次为【从高到低】FATAL > ERROR > WARN > INFO > DEBUG > TRACE -->
<logger name="com.docus.bgts" level="INFO">
<appender-ref ref="demolog" />
</logger>
</configuration>

@ -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 &lt;=#{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) &lt;= #{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) &lt;= #{examApplyDate}
and date_add(t.dis_date, interval 6 hour) &gt;= #{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…
Cancel
Save