From bbc3bfff82d76b23ebe81721d6415332be476b4b Mon Sep 17 00:00:00 2001
From: wyb <1977763549@qq.com>
Date: Thu, 22 Jan 2026 14:17:05 +0800
Subject: [PATCH] =?UTF-8?q?init:=20=E5=B9=BF=E4=B8=9C=E7=9C=81=E4=B8=AD?=
=?UTF-8?q?=E5=8C=BB=E9=99=A2=EF=BC=8C=E5=8A=A8=E6=80=81=E5=BF=83=E7=94=B5?=
=?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=8F=8D=E7=BC=96=E8=AF=91=E5=88=9D=E5=A7=8B?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitignore | 35 +
dataConfig/RequestDetailsParams.xml | 38 +
dataConfig/RequestParams.xml | 45 ++
dataConfig/homeQualitySet.json | 54 ++
pom.xml | 177 +++++
.../java/com/docus/bgts/DemoApplication.java | 32 +
.../com/docus/bgts/config/DbMysqlConfig.java | 65 ++
.../com/docus/bgts/config/DbOracleConfig.java | 56 ++
.../docus/bgts/config/LocalBusFactory.java | 23 +
.../com/docus/bgts/config/MyConstruct.java | 24 +
.../com/docus/bgts/config/MyScheduling.java | 87 +++
.../docus/bgts/config/ThreadPoolConfig.java | 28 +
.../docus/bgts/controller/BgtsController.java | 248 ++++++
.../com/docus/bgts/entity/AfCollectAdd.java | 115 +++
.../com/docus/bgts/entity/AfCollectTask.java | 362 +++++++++
.../docus/bgts/entity/AfInterfaceCollect.java | 175 +++++
.../bgts/entity/AfInterfaceCollectSub.java | 224 ++++++
.../com/docus/bgts/entity/CommonResult.java | 170 +++++
.../com/docus/bgts/entity/IErrorCode.java | 12 +
.../com/docus/bgts/entity/JzhListSync.java | 82 ++
.../com/docus/bgts/entity/MrReportError.java | 137 ++++
.../java/com/docus/bgts/entity/MzSync.java | 87 +++
.../com/docus/bgts/entity/MzSyncDetails.java | 175 +++++
.../com/docus/bgts/entity/ReportDownDto.java | 150 ++++
.../bgts/entity/ReportDownPatientDto.java | 106 +++
.../bgts/entity/ReportDownScanFileDto.java | 178 +++++
.../com/docus/bgts/entity/ResultCode.java | 33 +
.../com/docus/bgts/entity/TableJsonRead.java | 90 +++
.../com/docus/bgts/entity/TaskDetail.java | 101 +++
.../com/docus/bgts/entity/VDocumentPdf.java | 147 ++++
.../java/com/docus/bgts/entity/ZdAssort.java | 203 +++++
src/main/java/com/docus/bgts/enums/Codes.java | 43 ++
.../bgts/facade/IAfCollectTaskService.java | 38 +
.../com/docus/bgts/facade/IBgtsService.java | 24 +
.../com/docus/bgts/facade/IMzSyncService.java | 13 +
.../mapper/dbmysql/AfCollectAddMapper.java | 32 +
.../mapper/dbmysql/AfCollectTaskMapper.java | 34 +
.../dbmysql/AfInterfaceCollectMapper.java | 12 +
.../dbmysql/AfInterfaceCollectSubMapper.java | 12 +
.../mapper/dbmysql/MrReportErrorMapper.java | 13 +
.../mapper/dbmysql/TScanAssortMapper.java | 14 +
.../bgts/mapper/dbmysql/ZdAssortMapper.java | 17 +
.../bgts/mapper/dboracle/MzSyncMapper.java | 14 +
.../bgts/mapper/dboracle/TestMapper.java | 12 +
.../mapper/dboracle/VDocumentPdfMapper.java | 15 +
.../service/AfCollectTaskServiceImpl.java | 275 +++++++
.../docus/bgts/service/BgtsServiceImpl.java | 706 ++++++++++++++++++
.../bgts/service/CheckIntegrityService.java | 105 +++
.../com/docus/bgts/service/MzSyncService.java | 119 +++
.../docus/bgts/service/UpdateFileService.java | 124 +++
.../java/com/docus/bgts/utils/FileUtils.java | 44 ++
.../java/com/docus/bgts/utils/HttpUtils.java | 219 ++++++
.../bgts/utils/JAXDynamicClientFactory.java | 43 ++
.../java/com/docus/bgts/utils/JsonUtils.java | 50 ++
.../docus/bgts/utils/SnowflakeIdWorker.java | 78 ++
.../java/com/docus/bgts/utils/XmlUtils.java | 132 ++++
.../java/com/docus/bgts/web/FilterConfig.java | 20 +
.../java/com/docus/bgts/web/MyFilter.java | 39 +
src/main/resources/application.yml | 37 +
.../mapper/dbmysql/AfCollectAddMapper.xml | 76 ++
.../mapper/dbmysql/AfCollectTaskMapper.xml | 90 +++
.../mapper/dbmysql/MrReportErrorMapper.xml | 10 +
.../mapper/dbmysql/TScanAssortMapper.xml | 25 +
.../mapper/dbmysql/ZdAssortMapper.xml | 22 +
.../mapper/dboracle/MzSyncMapper.xml | 38 +
.../resources/mapper/dboracle/TestMapper.xml | 10 +
.../mapper/dboracle/VDocumentPdfMapper.xml | 33 +
67 files changed, 6047 insertions(+)
create mode 100644 .gitignore
create mode 100644 dataConfig/RequestDetailsParams.xml
create mode 100644 dataConfig/RequestParams.xml
create mode 100644 dataConfig/homeQualitySet.json
create mode 100644 pom.xml
create mode 100644 src/main/java/com/docus/bgts/DemoApplication.java
create mode 100644 src/main/java/com/docus/bgts/config/DbMysqlConfig.java
create mode 100644 src/main/java/com/docus/bgts/config/DbOracleConfig.java
create mode 100644 src/main/java/com/docus/bgts/config/LocalBusFactory.java
create mode 100644 src/main/java/com/docus/bgts/config/MyConstruct.java
create mode 100644 src/main/java/com/docus/bgts/config/MyScheduling.java
create mode 100644 src/main/java/com/docus/bgts/config/ThreadPoolConfig.java
create mode 100644 src/main/java/com/docus/bgts/controller/BgtsController.java
create mode 100644 src/main/java/com/docus/bgts/entity/AfCollectAdd.java
create mode 100644 src/main/java/com/docus/bgts/entity/AfCollectTask.java
create mode 100644 src/main/java/com/docus/bgts/entity/AfInterfaceCollect.java
create mode 100644 src/main/java/com/docus/bgts/entity/AfInterfaceCollectSub.java
create mode 100644 src/main/java/com/docus/bgts/entity/CommonResult.java
create mode 100644 src/main/java/com/docus/bgts/entity/IErrorCode.java
create mode 100644 src/main/java/com/docus/bgts/entity/JzhListSync.java
create mode 100644 src/main/java/com/docus/bgts/entity/MrReportError.java
create mode 100644 src/main/java/com/docus/bgts/entity/MzSync.java
create mode 100644 src/main/java/com/docus/bgts/entity/MzSyncDetails.java
create mode 100644 src/main/java/com/docus/bgts/entity/ReportDownDto.java
create mode 100644 src/main/java/com/docus/bgts/entity/ReportDownPatientDto.java
create mode 100644 src/main/java/com/docus/bgts/entity/ReportDownScanFileDto.java
create mode 100644 src/main/java/com/docus/bgts/entity/ResultCode.java
create mode 100644 src/main/java/com/docus/bgts/entity/TableJsonRead.java
create mode 100644 src/main/java/com/docus/bgts/entity/TaskDetail.java
create mode 100644 src/main/java/com/docus/bgts/entity/VDocumentPdf.java
create mode 100644 src/main/java/com/docus/bgts/entity/ZdAssort.java
create mode 100644 src/main/java/com/docus/bgts/enums/Codes.java
create mode 100644 src/main/java/com/docus/bgts/facade/IAfCollectTaskService.java
create mode 100644 src/main/java/com/docus/bgts/facade/IBgtsService.java
create mode 100644 src/main/java/com/docus/bgts/facade/IMzSyncService.java
create mode 100644 src/main/java/com/docus/bgts/mapper/dbmysql/AfCollectAddMapper.java
create mode 100644 src/main/java/com/docus/bgts/mapper/dbmysql/AfCollectTaskMapper.java
create mode 100644 src/main/java/com/docus/bgts/mapper/dbmysql/AfInterfaceCollectMapper.java
create mode 100644 src/main/java/com/docus/bgts/mapper/dbmysql/AfInterfaceCollectSubMapper.java
create mode 100644 src/main/java/com/docus/bgts/mapper/dbmysql/MrReportErrorMapper.java
create mode 100644 src/main/java/com/docus/bgts/mapper/dbmysql/TScanAssortMapper.java
create mode 100644 src/main/java/com/docus/bgts/mapper/dbmysql/ZdAssortMapper.java
create mode 100644 src/main/java/com/docus/bgts/mapper/dboracle/MzSyncMapper.java
create mode 100644 src/main/java/com/docus/bgts/mapper/dboracle/TestMapper.java
create mode 100644 src/main/java/com/docus/bgts/mapper/dboracle/VDocumentPdfMapper.java
create mode 100644 src/main/java/com/docus/bgts/service/AfCollectTaskServiceImpl.java
create mode 100644 src/main/java/com/docus/bgts/service/BgtsServiceImpl.java
create mode 100644 src/main/java/com/docus/bgts/service/CheckIntegrityService.java
create mode 100644 src/main/java/com/docus/bgts/service/MzSyncService.java
create mode 100644 src/main/java/com/docus/bgts/service/UpdateFileService.java
create mode 100644 src/main/java/com/docus/bgts/utils/FileUtils.java
create mode 100644 src/main/java/com/docus/bgts/utils/HttpUtils.java
create mode 100644 src/main/java/com/docus/bgts/utils/JAXDynamicClientFactory.java
create mode 100644 src/main/java/com/docus/bgts/utils/JsonUtils.java
create mode 100644 src/main/java/com/docus/bgts/utils/SnowflakeIdWorker.java
create mode 100644 src/main/java/com/docus/bgts/utils/XmlUtils.java
create mode 100644 src/main/java/com/docus/bgts/web/FilterConfig.java
create mode 100644 src/main/java/com/docus/bgts/web/MyFilter.java
create mode 100644 src/main/resources/application.yml
create mode 100644 src/main/resources/mapper/dbmysql/AfCollectAddMapper.xml
create mode 100644 src/main/resources/mapper/dbmysql/AfCollectTaskMapper.xml
create mode 100644 src/main/resources/mapper/dbmysql/MrReportErrorMapper.xml
create mode 100644 src/main/resources/mapper/dbmysql/TScanAssortMapper.xml
create mode 100644 src/main/resources/mapper/dbmysql/ZdAssortMapper.xml
create mode 100644 src/main/resources/mapper/dboracle/MzSyncMapper.xml
create mode 100644 src/main/resources/mapper/dboracle/TestMapper.xml
create mode 100644 src/main/resources/mapper/dboracle/VDocumentPdfMapper.xml
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c7759d4
--- /dev/null
+++ b/.gitignore
@@ -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
\ No newline at end of file
diff --git a/dataConfig/RequestDetailsParams.xml b/dataConfig/RequestDetailsParams.xml
new file mode 100644
index 0000000..086b373
--- /dev/null
+++ b/dataConfig/RequestDetailsParams.xml
@@ -0,0 +1,38 @@
+
+
+ 1
+ WZHBAGL
+ WZHBAGL_1127
+ BS14002
+ BS14002S51001
+ GZ
+
+
+ BS14002
+ BS14002S51001
+ S51
+ S00
+ 2022-05-06 02:54:08
+
+
+ 0
+ 500
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dataConfig/RequestParams.xml b/dataConfig/RequestParams.xml
new file mode 100644
index 0000000..9aa86ad
--- /dev/null
+++ b/dataConfig/RequestParams.xml
@@ -0,0 +1,45 @@
+
+
+ 1
+ WZHBAGL
+ WZHBAGL_1127
+ BS14002
+ BS14002S51001
+ GZ
+
+
+ BS14002
+ BS14002S51001
+ S51
+ S00
+ 2020-05-06 02:54:08
+
+
+ 0
+ 500
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 2020-12-01
+ 2023-12-31
+
+
+
+
+
+
+
+
+
diff --git a/dataConfig/homeQualitySet.json b/dataConfig/homeQualitySet.json
new file mode 100644
index 0000000..621103d
--- /dev/null
+++ b/dataConfig/homeQualitySet.json
@@ -0,0 +1,54 @@
+{
+ //唯一键目录结构数组,最高层为前面,最后一层为数据采集层,根节点不填
+ "directory":["Msg","ReportInfo"],
+ //患者主索引号
+ "indexFlag":"INHOSP_NO",
+ //采集流水号
+ "serialnum":"EXAM_NO",
+ //文件标题
+ "filetitle":"EXAM_ITEM_NAME",
+ //下载地址
+ "downurl":"IMAGE_URL",
+ //时间格式
+ "dateFormat": "yyyy-MM-dd HH:mm:ss",
+ //分类id
+ "assortid":"e4525abec7cb4c9097b81c56b551112f",
+ //系统id
+ "collectorid":"23",
+ //采集类型(文件来源 1:采集器;2:扫描生产软件)
+ "filesource":1,
+ //下载类型(1:服务器本地;2:ftp服务器;3:共享文件夹)
+ "filestoragetype":1,
+ //上传接口
+ "uploadConnector":"http://192.9.100.171:9291/api/downplatform/report",
+ //基本数据存放处,根节点不填,最后一层为基本信息存放标签与doubleBasic配合
+ "basicDirectory":["Msg","ReportInfo"],
+ //可能存在存储基本数据不同情况的标签
+ "doubleBasic":["TestItemInfo","BioTestInfo"],
+ //检查报告列表入参路径
+ "bgtsParam":["Request","Msg","EMPI_ID"],
+ //检查报告列表响应信息根路径
+ "bgtsRespon":["MsgInfo","Msg"],
+ //检查报告key
+ "examNo":"EXAM_NO",
+ //文件标题key
+ "examItemName":"EXAM_ITEM_NAME",
+ //文件路径
+ "pdfUrl":"IMAGE_URL",
+ //检查报告明細列表响应信息根路径
+ "bgtsDetailParam":["Request","Msg","EXAM_NO"],
+ //检查报告明細列表响应信息根路径
+ "bgtsDetailRespon":["MsgInfo","Msg","ReportInfo"],
+ //批量按需采集开始时间
+ "collectStartDate": "2022-09-03",
+ //批量按需采集结束时间
+ "collectEndDate": "2022-09-03",
+ //批量按需采集开关 1:开启 0:关闭
+ "collectOpen": "1",
+ //0点重新采集前几天数据 1:开启 0:关闭
+ "intervalDayOpen": "1",
+ //配置pacs补偿采集间隔天数
+ "intervalDay":3
+
+
+}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..e07fdae
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,177 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.5.6
+
+
+ com.docus
+ demo
+ 0.0.1-SNAPSHOT
+ docus-active-query-service
+ Demo project for Spring Boot
+
+ 1.8
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+
+ org.dom4j
+ dom4j
+ 2.1.1
+
+
+
+ jaxen
+ jaxen
+ 1.1.1
+
+
+ com.alibaba
+ fastjson
+ 1.2.75
+
+
+ mysql
+ mysql-connector-java
+ 8.0.15
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.projectlombok
+ lombok
+ 1.16.14
+
+
+ com.spring4all
+ swagger-spring-boot-starter
+ 1.9.0.RELEASE
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.4
+
+
+ com.baomidou
+ mybatis-plus-boot-starter
+ 3.3.0
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ org.apache.httpcomponents
+ httpcore
+ 4.4.5
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.2
+
+
+ org.apache.httpcomponents
+ httpmime
+ 4.4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.apache.cxf
+ cxf-rt-transports-http
+ 3.1.8
+
+
+ com.alibaba
+ druid-spring-boot-starter
+ 1.1.10
+
+
+
+
+ com.oracle.database.jdbc
+ ojdbc6
+ 11.2.0.4
+
+
+ org.apache.cxf
+ cxf-rt-frontend-jaxws
+ 3.1.8
+
+
+ xerces
+ xercesImpl
+ 2.11.0
+
+
+ cn.hutool
+ hutool-all
+ 4.0.9
+
+
+ junit
+ junit
+ test
+
+
+
+ org.apache.commons
+ commons-collections4
+ 4.4
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/src/main/java/com/docus/bgts/DemoApplication.java b/src/main/java/com/docus/bgts/DemoApplication.java
new file mode 100644
index 0000000..cbbc327
--- /dev/null
+++ b/src/main/java/com/docus/bgts/DemoApplication.java
@@ -0,0 +1,32 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts;
+
+import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.context.annotation.Bean;
+import org.springframework.scheduling.TaskScheduler;
+import org.springframework.scheduling.annotation.EnableScheduling;
+import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
+
+@EnableScheduling
+@SpringBootApplication(
+ exclude = {MybatisPlusAutoConfiguration.class}
+)
+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);
+ }
+
+ @Bean
+ public TaskScheduler taskScheduler() {
+ ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
+ taskScheduler.setPoolSize(3);
+ return taskScheduler;
+ }
+}
diff --git a/src/main/java/com/docus/bgts/config/DbMysqlConfig.java b/src/main/java/com/docus/bgts/config/DbMysqlConfig.java
new file mode 100644
index 0000000..88dac75
--- /dev/null
+++ b/src/main/java/com/docus/bgts/config/DbMysqlConfig.java
@@ -0,0 +1,65 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.config;
+
+import com.alibaba.druid.pool.DruidDataSource;
+import com.baomidou.mybatisplus.core.MybatisConfiguration;
+import com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean;
+import org.apache.ibatis.session.SqlSessionFactory;
+import org.apache.ibatis.type.JdbcType;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
+import org.springframework.core.io.support.ResourcePatternResolver;
+import org.springframework.jdbc.datasource.DataSourceTransactionManager;
+
+import javax.sql.DataSource;
+
+@Configuration
+@MapperScan(
+ basePackages = {"com.docus.bgts.mapper.dbmysql"},
+ sqlSessionFactoryRef = "dbmysqlSqlSessionFactory"
+)
+public class DbMysqlConfig {
+ static final String PACKAGE = "com.docus.bgts.mapper.dbmysql";
+ static final String MAPPER_LOCATION = "classpath:mapper/dbmysql/*.xml";
+
+ @Bean(
+ name = {"dbmysqlDataSource"}
+ )
+ @ConfigurationProperties(
+ prefix = "spring.datasource.mysql-docus"
+ )
+ public DataSource secondDataSource() {
+ return new DruidDataSource();
+ }
+
+ @Bean(
+ name = {"dbmysqlTransactionManager"}
+ )
+ public DataSourceTransactionManager secondTransactionManager() {
+ return new DataSourceTransactionManager(this.secondDataSource());
+ }
+
+ @Bean(
+ name = {"dbmysqlSqlSessionFactory"}
+ )
+ public SqlSessionFactory secondSqlSessionFactory(@Qualifier("dbmysqlDataSource") DataSource dataSource) throws Exception {
+ MybatisSqlSessionFactoryBean bean = new MybatisSqlSessionFactoryBean();
+ ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
+ bean.setMapperLocations(resolver.getResources("classpath:mapper/dbmysql/*.xml"));
+ bean.setTypeAliasesPackage("com.docus.bgts.entity.*");
+ MybatisConfiguration configuration = new MybatisConfiguration();
+ configuration.setMapUnderscoreToCamelCase(true);
+ configuration.setJdbcTypeForNull(JdbcType.NULL);
+ bean.setDataSource(dataSource);
+ bean.setConfiguration(configuration);
+ return bean.getObject();
+ }
+}
diff --git a/src/main/java/com/docus/bgts/config/DbOracleConfig.java b/src/main/java/com/docus/bgts/config/DbOracleConfig.java
new file mode 100644
index 0000000..381324a
--- /dev/null
+++ b/src/main/java/com/docus/bgts/config/DbOracleConfig.java
@@ -0,0 +1,56 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.config;
+
+import com.alibaba.druid.pool.DruidDataSource;
+import org.apache.ibatis.session.SqlSessionFactory;
+import org.mybatis.spring.SqlSessionFactoryBean;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
+import org.springframework.jdbc.datasource.DataSourceTransactionManager;
+
+import javax.sql.DataSource;
+
+@Configuration
+@MapperScan(
+ basePackages = {"com.docus.bgts.mapper.dboracle"},
+ sqlSessionFactoryRef = "dboracleSqlSessionFactory"
+)
+public class DbOracleConfig {
+ static final String PACKAGE = "com.docus.bgts.mapper.dboracle";
+ static final String MAPPER_LOCATION = "classpath:mapper/dboracle/*.xml";
+
+ @Bean(
+ name = {"dboracleDataSource"}
+ )
+ @ConfigurationProperties(
+ prefix = "spring.datasource.oracle-docus"
+ )
+ public DataSource secondDataSource() {
+ return new DruidDataSource();
+ }
+
+ @Bean(
+ name = {"dboracleTransactionManager"}
+ )
+ public DataSourceTransactionManager secondTransactionManager() {
+ return new DataSourceTransactionManager(this.secondDataSource());
+ }
+
+ @Bean(
+ name = {"dboracleSqlSessionFactory"}
+ )
+ public SqlSessionFactory secondSqlSessionFactory(@Qualifier("dboracleDataSource") DataSource secondDataSource) throws Exception {
+ SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean();
+ sessionFactory.setDataSource(secondDataSource);
+ sessionFactory.setMapperLocations((new PathMatchingResourcePatternResolver()).getResources("classpath:mapper/dboracle/*.xml"));
+ return sessionFactory.getObject();
+ }
+}
diff --git a/src/main/java/com/docus/bgts/config/LocalBusFactory.java b/src/main/java/com/docus/bgts/config/LocalBusFactory.java
new file mode 100644
index 0000000..ebf7d90
--- /dev/null
+++ b/src/main/java/com/docus/bgts/config/LocalBusFactory.java
@@ -0,0 +1,23 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.config;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class LocalBusFactory extends BusFactory {
+ private static Logger logger = LoggerFactory.getLogger(LocalBusFactory.class);
+
+ public Bus createBus() {
+ return null;
+ }
+
+ public static void printTHREAD_BUSSES() {
+ logger.info("THREAD_BUSSES SIZE {}", THREAD_BUSSES.size());
+ }
+}
diff --git a/src/main/java/com/docus/bgts/config/MyConstruct.java b/src/main/java/com/docus/bgts/config/MyConstruct.java
new file mode 100644
index 0000000..5ed9a75
--- /dev/null
+++ b/src/main/java/com/docus/bgts/config/MyConstruct.java
@@ -0,0 +1,24 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.config;
+
+import com.docus.bgts.facade.IBgtsService;
+import javax.annotation.PreDestroy;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+@Component
+public class MyConstruct {
+ @Autowired
+ IBgtsService bgtsService;
+ private Logger logger = LogManager.getLogger(MyConstruct.class);
+
+ @PreDestroy
+ public void destroy() {
+ }
+}
diff --git a/src/main/java/com/docus/bgts/config/MyScheduling.java b/src/main/java/com/docus/bgts/config/MyScheduling.java
new file mode 100644
index 0000000..a4dd8ea
--- /dev/null
+++ b/src/main/java/com/docus/bgts/config/MyScheduling.java
@@ -0,0 +1,87 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.config;
+
+import com.docus.bgts.facade.IBgtsService;
+import com.docus.bgts.service.CheckIntegrityService;
+import com.docus.bgts.utils.FileUtils;
+import com.docus.bgts.utils.HttpUtils;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.concurrent.ThreadPoolExecutor;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+@Component
+public class MyScheduling {
+ @Value("${beat.url}")
+ private String beatUrl;
+ public static String syncFlag;
+ private final String tempfilePrefix = "dataConfig\\temp";
+ private final String tempDataFileName = "collectTimeTemp";
+ private final String lastTimeStr = "lastTime";
+ @Autowired
+ IBgtsService bgtsService;
+ @Autowired
+ CheckIntegrityService checkIntegrityService;
+ private Logger logger = LogManager.getLogger(MyScheduling.class);
+ @Autowired
+ private ThreadPoolExecutor threadPoolExecutor;
+
+ @Scheduled(
+ fixedRate = 5000L
+ )
+ public void beat() {
+ Map params = new HashMap();
+ params.put("code", String.valueOf(FileUtils.getJsonByName("collectorid")));
+
+ try {
+ HttpUtils.get(this.beatUrl, params);
+ } catch (Exception e) {
+ e.printStackTrace();
+ this.logger.info("心跳推送出错,可能是住院服务没有开启");
+ }
+
+ }
+
+ @Scheduled(
+ cron = "0 0 0 * * ?"
+ )
+ public void collect() {
+ String intervalDayOpen = String.valueOf(FileUtils.getJsonByName("intervalDayOpen"));
+ if (intervalDayOpen.equals("1")) {
+ String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid"));
+ int day = Integer.parseInt(String.valueOf(FileUtils.getJsonByName("intervalDay")));
+ this.logger.info("0点采集前" + day + "天出院数据");
+ Map dateCollectionTime = getDateCollectionTime(new Date(), day);
+ this.logger.info("采集" + (String)dateCollectionTime.get("startDate") + "至-------" + (String)dateCollectionTime.get("endDate") + "数据");
+ this.bgtsService.collectByDate((String)dateCollectionTime.get("startDate"), (String)dateCollectionTime.get("endDate"), collectorid);
+ }
+
+ }
+
+ public static Map getDateCollectionTime(Date date, int day) {
+ Calendar calendar = Calendar.getInstance();
+ calendar.setTime(date);
+ calendar.add(5, -day);
+ Date dBefore = calendar.getTime();
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ String defaultStartDate = sdf.format(dBefore);
+ defaultStartDate = defaultStartDate + " 00:00:00";
+ String defaultEndDate = defaultStartDate.substring(0, 10) + " 23:59:59";
+ Map map = new HashMap();
+ map.put("startDate", defaultStartDate);
+ map.put("endDate", defaultEndDate);
+ return map;
+ }
+}
diff --git a/src/main/java/com/docus/bgts/config/ThreadPoolConfig.java b/src/main/java/com/docus/bgts/config/ThreadPoolConfig.java
new file mode 100644
index 0000000..e8d3331
--- /dev/null
+++ b/src/main/java/com/docus/bgts/config/ThreadPoolConfig.java
@@ -0,0 +1,28 @@
+//
+// 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.ScheduledThreadPoolExecutor;
+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.09999999999999998), 60L, TimeUnit.SECONDS, new LinkedBlockingQueue(Runtime.getRuntime().availableProcessors()), Executors.defaultThreadFactory(), new ThreadPoolExecutor.CallerRunsPolicy());
+ }
+
+ @Bean
+ public ScheduledThreadPoolExecutor scheduledThreadPoolExecutor() {
+ return new ScheduledThreadPoolExecutor(Runtime.getRuntime().availableProcessors(), Executors.defaultThreadFactory(), new ThreadPoolExecutor.CallerRunsPolicy());
+ }
+}
diff --git a/src/main/java/com/docus/bgts/controller/BgtsController.java b/src/main/java/com/docus/bgts/controller/BgtsController.java
new file mode 100644
index 0000000..239d316
--- /dev/null
+++ b/src/main/java/com/docus/bgts/controller/BgtsController.java
@@ -0,0 +1,248 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.controller;
+
+import com.docus.bgts.config.MyScheduling;
+import com.docus.bgts.entity.CommonResult;
+import com.docus.bgts.facade.IAfCollectTaskService;
+import com.docus.bgts.facade.IBgtsService;
+import com.docus.bgts.service.CheckIntegrityService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+@Api(
+ value = "采集接口",
+ tags = {"采集接口"}
+)
+@RestController
+public class BgtsController {
+ private final Logger logger = LoggerFactory.getLogger(this.getClass());
+ @Autowired
+ CheckIntegrityService checkIntegrityService;
+ @Autowired
+ IBgtsService bgtsService;
+ @Autowired
+ IAfCollectTaskService afCollectTaskService;
+
+ @ApiOperation("完整性同步程序开关0:关闭 1:开启")
+ @GetMapping({"/onOffSync"})
+ public void onOffSync(@RequestParam(value = "flag",defaultValue = "0") String flag) {
+ MyScheduling.syncFlag = flag;
+ }
+
+ @GetMapping({"/addSyncIntegrality"})
+ public void addSyncIntegrality(@RequestParam("startDate") String startDate, String endDate) {
+ this.checkIntegrityService.addSyncIntegrality(startDate, endDate);
+ }
+
+ @GetMapping({"/addSyncIntegralityByJzhs"})
+ public CommonResult addSyncIntegrality(@RequestParam("jzhs") String jzhs) {
+ if (jzhs.split(",").length > 100) {
+ return CommonResult.failed("jzh个数不能超过100个");
+ } else {
+ this.checkIntegrityService.addSyncIntegralityByJzhs(jzhs);
+ return CommonResult.success("完成");
+ }
+ }
+
+ @ApiOperation("采集接口")
+ @ApiImplicitParams({@ApiImplicitParam(
+ name = "empId",
+ value = "患者主索引号",
+ required = true,
+ dataTypeClass = String.class
+), @ApiImplicitParam(
+ name = "collectSubId",
+ value = "af_interface_collect_sub表id",
+ required = true
+)})
+ @GetMapping({"/collect"})
+ public CommonResult collect(@RequestParam("collectSubId") String collectSubId, @RequestParam("empId") String empId) {
+ try {
+ this.logger.info("采集接口接收到参数:\nempId--" + empId + "\ncollectSubId--" + collectSubId);
+ this.bgtsService.collect(empId);
+ this.logger.info("采集完成");
+ this.afCollectTaskService.updateInterfaceCollect(collectSubId, 1);
+ this.logger.info("------------采集结束-----------");
+ } catch (RuntimeException e) {
+ e.printStackTrace();
+
+ try {
+ this.afCollectTaskService.updateInterfaceCollect(collectSubId, 0);
+ } catch (Exception e1) {
+ this.logger.info(e1.getMessage());
+ return CommonResult.failed(e1.getMessage());
+ }
+
+ return CommonResult.failed(e.getMessage());
+ } catch (Exception e) {
+ e.printStackTrace();
+ } catch (Throwable t) {
+ t.printStackTrace();
+ this.logger.error("throwable,{}", t.getMessage());
+ }
+
+ return CommonResult.success("ok");
+ }
+
+ @ApiOperation("Pacs采集接口")
+ @ApiImplicitParams({@ApiImplicitParam(
+ name = "empId",
+ value = "患者主索引号",
+ required = true,
+ dataTypeClass = String.class
+), @ApiImplicitParam(
+ name = "collectSubId",
+ value = "af_interface_collect_sub表id",
+ required = true
+), @ApiImplicitParam(
+ name = "admissDate",
+ value = "入院时间",
+ required = true
+), @ApiImplicitParam(
+ name = "disDate",
+ value = "出院时间",
+ required = true
+), @ApiImplicitParam(
+ name = "times",
+ value = "住院次数",
+ required = true
+)})
+ @GetMapping({"/collectPacs"})
+ public CommonResult collect(@RequestParam("collectSubId") String collectSubId, @RequestParam("empId") String empId, @RequestParam("admissDate") String admissDate, @RequestParam("disDate") String disDate, @RequestParam("times") String times) {
+ try {
+ this.logger.info("采集接口接收到参数:\nempId--" + empId + "\ncollectSubId--" + collectSubId);
+ this.bgtsService.collectPacs(empId, admissDate, disDate, times);
+ this.logger.info("采集完成");
+ this.afCollectTaskService.updateInterfaceCollect(collectSubId, 1);
+ this.logger.info("------------采集结束-----------");
+ } catch (RuntimeException e) {
+ e.printStackTrace();
+
+ try {
+ this.afCollectTaskService.updateInterfaceCollect(collectSubId, 0);
+ } catch (Exception e1) {
+ this.logger.info(e1.getMessage());
+ return CommonResult.failed(e1.getMessage());
+ }
+
+ return CommonResult.failed(e.getMessage());
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ return CommonResult.success("ok");
+ }
+
+ @ApiOperation("动态心电采集接口")
+ @ApiImplicitParams({@ApiImplicitParam(
+ name = "empId",
+ value = "患者主索引号",
+ required = true,
+ dataTypeClass = String.class
+), @ApiImplicitParam(
+ name = "collectSubId",
+ value = "af_interface_collect_sub表id",
+ required = true
+), @ApiImplicitParam(
+ name = "admissDate",
+ value = "入院时间",
+ required = true
+), @ApiImplicitParam(
+ name = "disDate",
+ value = "出院时间",
+ required = true
+), @ApiImplicitParam(
+ name = "times",
+ value = "住院次数",
+ required = true
+)})
+ @GetMapping({"/collectEcg"})
+ public CommonResult collectEcg(@RequestParam("collectSubId") String collectSubId, @RequestParam("empId") String empId, @RequestParam("admissDate") String admissDate, @RequestParam("disDate") String disDate, @RequestParam("times") String times) {
+ try {
+ this.logger.info("采集接口接收到参数:\nempId--" + empId + "\ncollectSubId--" + collectSubId);
+ this.bgtsService.collectEcg(empId, admissDate, disDate, times);
+ this.logger.info("采集完成");
+ this.afCollectTaskService.updateInterfaceCollect(collectSubId, 1);
+ this.logger.info("------------采集结束-----------");
+ } catch (RuntimeException e) {
+ e.printStackTrace();
+
+ try {
+ this.afCollectTaskService.updateInterfaceCollect(collectSubId, 0);
+ } catch (Exception e1) {
+ this.logger.info(e1.getMessage());
+ return CommonResult.failed(e1.getMessage());
+ }
+
+ return CommonResult.failed(e.getMessage());
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ return CommonResult.success("ok");
+ }
+
+ @ApiOperation("按需采集接口")
+ @ApiImplicitParams({@ApiImplicitParam(
+ name = "emamNo",
+ value = "报告单号",
+ required = true,
+ dataTypeClass = String.class
+), @ApiImplicitParam(
+ name = "empId",
+ value = "患者主索引号",
+ required = true,
+ dataTypeClass = String.class
+)})
+ @GetMapping({"/collectByExamNo"})
+ public CommonResult collectByExamNo(@RequestParam("emamNo") String emamNo, @RequestParam("empId") String empId) {
+ try {
+ this.logger.info("按需采集接口接受参数:\nempId--" + empId + "\nemamNo--" + emamNo);
+ this.bgtsService.collectByExamNo(emamNo, empId);
+ } catch (RuntimeException e) {
+ e.printStackTrace();
+ return CommonResult.failed(e.getMessage());
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ return CommonResult.success("ok");
+ }
+
+ @GetMapping({"/collectByEx"})
+ public CommonResult collectByEx(@RequestParam("empId") String empId) {
+ try {
+ this.bgtsService.collect(empId);
+ } catch (Exception e) {
+ e.printStackTrace();
+ return CommonResult.failed(e.getMessage());
+ }
+
+ return CommonResult.success("ok");
+ }
+
+ @ApiOperation("pacs按需采集接口")
+ @GetMapping({"/collectByPacs"})
+ public CommonResult collectByPacs() {
+ try {
+ this.bgtsService.collectPacss();
+ } catch (Exception e) {
+ e.printStackTrace();
+ return CommonResult.failed(e.getMessage());
+ }
+
+ return CommonResult.success("ok");
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/AfCollectAdd.java b/src/main/java/com/docus/bgts/entity/AfCollectAdd.java
new file mode 100644
index 0000000..630fe44
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/AfCollectAdd.java
@@ -0,0 +1,115 @@
+//
+// 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("采集日志")
+public class AfCollectAdd {
+ @ApiModelProperty("id")
+ @TableId(
+ value = "id",
+ type = IdType.ASSIGN_ID
+ )
+ private Long id;
+ @ApiModelProperty("上次更新时间")
+ private Date beginStageDate;
+ @ApiModelProperty("分类")
+ private Integer classify;
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public Date getBeginStageDate() {
+ return this.beginStageDate;
+ }
+
+ public Integer getClassify() {
+ return this.classify;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setBeginStageDate(final Date beginStageDate) {
+ this.beginStageDate = beginStageDate;
+ }
+
+ public void setClassify(final Integer classify) {
+ this.classify = classify;
+ }
+
+ public boolean equals(final Object o) {
+ if (o == this) {
+ return true;
+ } else if (!(o instanceof AfCollectAdd)) {
+ return false;
+ } else {
+ AfCollectAdd other = (AfCollectAdd)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$beginStageDate = this.getBeginStageDate();
+ Object other$beginStageDate = other.getBeginStageDate();
+ if (this$beginStageDate == null) {
+ if (other$beginStageDate != null) {
+ return false;
+ }
+ } else if (!this$beginStageDate.equals(other$beginStageDate)) {
+ return false;
+ }
+
+ Object this$classify = this.getClassify();
+ Object other$classify = other.getClassify();
+ if (this$classify == null) {
+ if (other$classify != null) {
+ return false;
+ }
+ } else if (!this$classify.equals(other$classify)) {
+ return false;
+ }
+
+ return true;
+ }
+ }
+ }
+
+ protected boolean canEqual(final Object other) {
+ return other instanceof AfCollectAdd;
+ }
+
+ public int hashCode() {
+ int PRIME = 59;
+ int result = 1;
+ Object $id = this.getId();
+ result = result * 59 + ($id == null ? 43 : $id.hashCode());
+ Object $beginStageDate = this.getBeginStageDate();
+ result = result * 59 + ($beginStageDate == null ? 43 : $beginStageDate.hashCode());
+ Object $classify = this.getClassify();
+ result = result * 59 + ($classify == null ? 43 : $classify.hashCode());
+ return result;
+ }
+
+ public String toString() {
+ return "AfCollectAdd(id=" + this.getId() + ", beginStageDate=" + this.getBeginStageDate() + ", classify=" + this.getClassify() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/AfCollectTask.java b/src/main/java/com/docus/bgts/entity/AfCollectTask.java
new file mode 100644
index 0000000..775e385
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/AfCollectTask.java
@@ -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;
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/AfInterfaceCollect.java b/src/main/java/com/docus/bgts/entity/AfInterfaceCollect.java
new file mode 100644
index 0000000..5ca13f8
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/AfInterfaceCollect.java
@@ -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() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/AfInterfaceCollectSub.java b/src/main/java/com/docus/bgts/entity/AfInterfaceCollectSub.java
new file mode 100644
index 0000000..d7708fc
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/AfInterfaceCollectSub.java
@@ -0,0 +1,224 @@
+//
+// 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;
+
+@ApiModel("文件库中的省中医病案采集-子任务表")
+public class AfInterfaceCollectSub implements Serializable {
+ @TableId(
+ value = "id",
+ type = IdType.ASSIGN_ID
+ )
+ 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() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/CommonResult.java b/src/main/java/com/docus/bgts/entity/CommonResult.java
new file mode 100644
index 0000000..a09ae5b
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/CommonResult.java
@@ -0,0 +1,170 @@
+//
+// 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.beans.ConstructorProperties;
+
+@ApiModel("响应")
+public class CommonResult {
+ @ApiModelProperty("响应码")
+ private Integer code;
+ @ApiModelProperty("响应消息")
+ private String msg;
+ @ApiModelProperty("响应实体")
+ private T data;
+
+ public CommonResult(Integer code, String msg) {
+ this.code = code;
+ this.msg = msg;
+ }
+
+ public static CommonResult success(T data) {
+ return new CommonResult(ResultCode.SUCCESS.getCode(), ResultCode.SUCCESS.getMessage(), data);
+ }
+
+ public static CommonResult success(T data, String message) {
+ return new CommonResult(ResultCode.SUCCESS.getCode(), message, data);
+ }
+
+ public static CommonResult failed(IErrorCode errorCode) {
+ return new CommonResult(errorCode.getCode(), errorCode.getMessage(),null);
+ }
+
+ public static CommonResult failed(IErrorCode errorCode, String message) {
+ return new CommonResult(errorCode.getCode(), message,null);
+ }
+
+ public static CommonResult failed(String message) {
+ return new CommonResult(ResultCode.FAILED.getCode(), message,null);
+ }
+
+ public static CommonResult failed() {
+ return failed((IErrorCode)ResultCode.FAILED);
+ }
+
+ public static CommonResult validateFailed() {
+ return failed((IErrorCode)ResultCode.VALIDATE_FAILED);
+ }
+
+ public static CommonResult validateFailed(String message) {
+ return new CommonResult(ResultCode.VALIDATE_FAILED.getCode(), message,null);
+ }
+
+ public static CommonResult unauthorized(T data) {
+ return new CommonResult(ResultCode.UNAUTHORIZED.getCode(), ResultCode.UNAUTHORIZED.getMessage(), data);
+ }
+
+ public static CommonResult preventreplay(T data) {
+ return new CommonResult(ResultCode.PREVENT_REPLAY.getCode(), ResultCode.PREVENT_REPLAY.getMessage(), data);
+ }
+
+ public static CommonResult forbidden(T data) {
+ return new CommonResult(ResultCode.FORBIDDEN.getCode(), ResultCode.FORBIDDEN.getMessage(), data);
+ }
+
+ public Integer getCode() {
+ return this.code;
+ }
+
+ public String getMsg() {
+ return this.msg;
+ }
+
+ public T getData() {
+ return this.data;
+ }
+
+ public void setCode(final Integer code) {
+ this.code = code;
+ }
+
+ public void setMsg(final String msg) {
+ this.msg = msg;
+ }
+
+ public void setData(final T data) {
+ this.data = data;
+ }
+
+ public boolean equals(final Object o) {
+ if (o == this) {
+ return true;
+ } else if (!(o instanceof CommonResult)) {
+ return false;
+ } else {
+ CommonResult> other = (CommonResult)o;
+ if (!other.canEqual(this)) {
+ return false;
+ } else {
+ Object this$code = this.getCode();
+ Object other$code = other.getCode();
+ if (this$code == null) {
+ if (other$code != null) {
+ return false;
+ }
+ } else if (!this$code.equals(other$code)) {
+ return false;
+ }
+
+ Object this$msg = this.getMsg();
+ Object other$msg = other.getMsg();
+ if (this$msg == null) {
+ if (other$msg != null) {
+ return false;
+ }
+ } else if (!this$msg.equals(other$msg)) {
+ return false;
+ }
+
+ Object this$data = this.getData();
+ Object other$data = other.getData();
+ if (this$data == null) {
+ if (other$data != null) {
+ return false;
+ }
+ } else if (!this$data.equals(other$data)) {
+ return false;
+ }
+
+ return true;
+ }
+ }
+ }
+
+ protected boolean canEqual(final Object other) {
+ return other instanceof CommonResult;
+ }
+
+ public int hashCode() {
+ int PRIME = 59;
+ int result = 1;
+ Object $code = this.getCode();
+ result = result * 59 + ($code == null ? 43 : $code.hashCode());
+ Object $msg = this.getMsg();
+ result = result * 59 + ($msg == null ? 43 : $msg.hashCode());
+ Object $data = this.getData();
+ result = result * 59 + ($data == null ? 43 : $data.hashCode());
+ return result;
+ }
+
+ public String toString() {
+ return "CommonResult(code=" + this.getCode() + ", msg=" + this.getMsg() + ", data=" + this.getData() + ")";
+ }
+
+ @ConstructorProperties({"code", "msg", "data"})
+ public CommonResult(final Integer code, final String msg, final T data) {
+ this.code = code;
+ this.msg = msg;
+ this.data = data;
+ }
+
+ public CommonResult() {
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/IErrorCode.java b/src/main/java/com/docus/bgts/entity/IErrorCode.java
new file mode 100644
index 0000000..86559d7
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/IErrorCode.java
@@ -0,0 +1,12 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.entity;
+
+public interface IErrorCode {
+ Integer getCode();
+
+ String getMessage();
+}
diff --git a/src/main/java/com/docus/bgts/entity/JzhListSync.java b/src/main/java/com/docus/bgts/entity/JzhListSync.java
new file mode 100644
index 0000000..3d8df20
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/JzhListSync.java
@@ -0,0 +1,82 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.entity;
+
+import java.util.List;
+
+public class JzhListSync {
+ private String jzh;
+ private List taskDetails;
+
+ public String getJzh() {
+ return this.jzh;
+ }
+
+ public List getTaskDetails() {
+ return this.taskDetails;
+ }
+
+ public void setJzh(final String jzh) {
+ this.jzh = jzh;
+ }
+
+ public void setTaskDetails(final List taskDetails) {
+ this.taskDetails = taskDetails;
+ }
+
+ public boolean equals(final Object o) {
+ if (o == this) {
+ return true;
+ } else if (!(o instanceof JzhListSync)) {
+ return false;
+ } else {
+ JzhListSync other = (JzhListSync)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$taskDetails = this.getTaskDetails();
+ Object other$taskDetails = other.getTaskDetails();
+ if (this$taskDetails == null) {
+ if (other$taskDetails != null) {
+ return false;
+ }
+ } else if (!this$taskDetails.equals(other$taskDetails)) {
+ return false;
+ }
+
+ return true;
+ }
+ }
+ }
+
+ protected boolean canEqual(final Object other) {
+ return other instanceof JzhListSync;
+ }
+
+ public int hashCode() {
+ int PRIME = 59;
+ int result = 1;
+ Object $jzh = this.getJzh();
+ result = result * 59 + ($jzh == null ? 43 : $jzh.hashCode());
+ Object $taskDetails = this.getTaskDetails();
+ result = result * 59 + ($taskDetails == null ? 43 : $taskDetails.hashCode());
+ return result;
+ }
+
+ public String toString() {
+ return "JzhListSync(jzh=" + this.getJzh() + ", taskDetails=" + this.getTaskDetails() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/MrReportError.java b/src/main/java/com/docus/bgts/entity/MrReportError.java
new file mode 100644
index 0000000..6071474
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/MrReportError.java
@@ -0,0 +1,137 @@
+//
+// 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("错误日志表")
+public class MrReportError {
+ @ApiModelProperty("id")
+ @TableId(
+ value = "id",
+ type = IdType.ASSIGN_ID
+ )
+ 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() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/MzSync.java b/src/main/java/com/docus/bgts/entity/MzSync.java
new file mode 100644
index 0000000..4144f4f
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/MzSync.java
@@ -0,0 +1,87 @@
+//
+// 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.List;
+
+@ApiModel("梅州完整性校验同步类")
+public class MzSync {
+ @ApiModelProperty("记账号")
+ private String jzh;
+ @ApiModelProperty("文件详情列表")
+ private List mzSyncDetails;
+
+ public String getJzh() {
+ return this.jzh;
+ }
+
+ public List getMzSyncDetails() {
+ return this.mzSyncDetails;
+ }
+
+ public void setJzh(final String jzh) {
+ this.jzh = jzh;
+ }
+
+ public void setMzSyncDetails(final List mzSyncDetails) {
+ this.mzSyncDetails = mzSyncDetails;
+ }
+
+ public boolean equals(final Object o) {
+ if (o == this) {
+ return true;
+ } else if (!(o instanceof MzSync)) {
+ return false;
+ } else {
+ MzSync other = (MzSync)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$mzSyncDetails = this.getMzSyncDetails();
+ Object other$mzSyncDetails = other.getMzSyncDetails();
+ if (this$mzSyncDetails == null) {
+ if (other$mzSyncDetails != null) {
+ return false;
+ }
+ } else if (!this$mzSyncDetails.equals(other$mzSyncDetails)) {
+ return false;
+ }
+
+ return true;
+ }
+ }
+ }
+
+ protected boolean canEqual(final Object other) {
+ return other instanceof MzSync;
+ }
+
+ public int hashCode() {
+ int PRIME = 59;
+ int result = 1;
+ Object $jzh = this.getJzh();
+ result = result * 59 + ($jzh == null ? 43 : $jzh.hashCode());
+ Object $mzSyncDetails = this.getMzSyncDetails();
+ result = result * 59 + ($mzSyncDetails == null ? 43 : $mzSyncDetails.hashCode());
+ return result;
+ }
+
+ public String toString() {
+ return "MzSync(jzh=" + this.getJzh() + ", mzSyncDetails=" + this.getMzSyncDetails() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/MzSyncDetails.java b/src/main/java/com/docus/bgts/entity/MzSyncDetails.java
new file mode 100644
index 0000000..a1a9edc
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/MzSyncDetails.java
@@ -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.util.Date;
+
+@ApiModel("文件详情")
+public class MzSyncDetails {
+ @ApiModelProperty("采集流水号")
+ private String serialnum;
+ @ApiModelProperty("文件标题")
+ private String fileTitle;
+ @ApiModelProperty("文件url")
+ private String fileUrl;
+ @ApiModelProperty("分类名称")
+ private String assortName;
+ @ApiModelProperty("采集器标识")
+ private String collectid;
+ @ApiModelProperty("创建时间")
+ private Date createTime;
+
+ public String getSerialnum() {
+ return this.serialnum;
+ }
+
+ public String getFileTitle() {
+ return this.fileTitle;
+ }
+
+ public String getFileUrl() {
+ return this.fileUrl;
+ }
+
+ public String getAssortName() {
+ return this.assortName;
+ }
+
+ public String getCollectid() {
+ return this.collectid;
+ }
+
+ public Date getCreateTime() {
+ return this.createTime;
+ }
+
+ public void setSerialnum(final String serialnum) {
+ this.serialnum = serialnum;
+ }
+
+ public void setFileTitle(final String fileTitle) {
+ this.fileTitle = fileTitle;
+ }
+
+ public void setFileUrl(final String fileUrl) {
+ this.fileUrl = fileUrl;
+ }
+
+ public void setAssortName(final String assortName) {
+ this.assortName = assortName;
+ }
+
+ public void setCollectid(final String collectid) {
+ this.collectid = collectid;
+ }
+
+ public void setCreateTime(final Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public boolean equals(final Object o) {
+ if (o == this) {
+ return true;
+ } else if (!(o instanceof MzSyncDetails)) {
+ return false;
+ } else {
+ MzSyncDetails other = (MzSyncDetails)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;
+ }
+
+ 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;
+ }
+
+ Object this$fileUrl = this.getFileUrl();
+ Object other$fileUrl = other.getFileUrl();
+ if (this$fileUrl == null) {
+ if (other$fileUrl != null) {
+ return false;
+ }
+ } else if (!this$fileUrl.equals(other$fileUrl)) {
+ 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$collectid = this.getCollectid();
+ Object other$collectid = other.getCollectid();
+ if (this$collectid == null) {
+ if (other$collectid != null) {
+ return false;
+ }
+ } else if (!this$collectid.equals(other$collectid)) {
+ 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 MzSyncDetails;
+ }
+
+ public int hashCode() {
+ int PRIME = 59;
+ int result = 1;
+ Object $serialnum = this.getSerialnum();
+ result = result * 59 + ($serialnum == null ? 43 : $serialnum.hashCode());
+ Object $fileTitle = this.getFileTitle();
+ result = result * 59 + ($fileTitle == null ? 43 : $fileTitle.hashCode());
+ Object $fileUrl = this.getFileUrl();
+ result = result * 59 + ($fileUrl == null ? 43 : $fileUrl.hashCode());
+ Object $assortName = this.getAssortName();
+ result = result * 59 + ($assortName == null ? 43 : $assortName.hashCode());
+ Object $collectid = this.getCollectid();
+ result = result * 59 + ($collectid == null ? 43 : $collectid.hashCode());
+ Object $createTime = this.getCreateTime();
+ result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
+ return result;
+ }
+
+ public String toString() {
+ return "MzSyncDetails(serialnum=" + this.getSerialnum() + ", fileTitle=" + this.getFileTitle() + ", fileUrl=" + this.getFileUrl() + ", assortName=" + this.getAssortName() + ", collectid=" + this.getCollectid() + ", createTime=" + this.getCreateTime() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/ReportDownDto.java b/src/main/java/com/docus/bgts/entity/ReportDownDto.java
new file mode 100644
index 0000000..aa6d0b2
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/ReportDownDto.java
@@ -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 scanfiles;
+ private ReportDownPatientDto patient;
+ @ApiModelProperty("分类id")
+ private String assortid;
+
+ public String getCollectorid() {
+ return this.collectorid;
+ }
+
+ public String getIp() {
+ return this.ip;
+ }
+
+ public List 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 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() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/ReportDownPatientDto.java b/src/main/java/com/docus/bgts/entity/ReportDownPatientDto.java
new file mode 100644
index 0000000..30e0436
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/ReportDownPatientDto.java
@@ -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("住院号")
+ private String inPatientNo;
+ @ApiModelProperty("住院次数")
+ private String visitId;
+
+ public String getJzh() {
+ return this.jzh;
+ }
+
+ public String getInPatientNo() {
+ return this.inPatientNo;
+ }
+
+ public String getVisitId() {
+ return this.visitId;
+ }
+
+ public void setJzh(final String jzh) {
+ this.jzh = jzh;
+ }
+
+ public void setInPatientNo(final String inPatientNo) {
+ this.inPatientNo = inPatientNo;
+ }
+
+ public void setVisitId(final String visitId) {
+ this.visitId = visitId;
+ }
+
+ 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$inPatientNo = this.getInPatientNo();
+ Object other$inPatientNo = other.getInPatientNo();
+ if (this$inPatientNo == null) {
+ if (other$inPatientNo != null) {
+ return false;
+ }
+ } else if (!this$inPatientNo.equals(other$inPatientNo)) {
+ return false;
+ }
+
+ Object this$visitId = this.getVisitId();
+ Object other$visitId = other.getVisitId();
+ if (this$visitId == null) {
+ if (other$visitId != null) {
+ return false;
+ }
+ } else if (!this$visitId.equals(other$visitId)) {
+ 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 $inPatientNo = this.getInPatientNo();
+ result = result * 59 + ($inPatientNo == null ? 43 : $inPatientNo.hashCode());
+ Object $visitId = this.getVisitId();
+ result = result * 59 + ($visitId == null ? 43 : $visitId.hashCode());
+ return result;
+ }
+
+ public String toString() {
+ return "ReportDownPatientDto(jzh=" + this.getJzh() + ", inPatientNo=" + this.getInPatientNo() + ", visitId=" + this.getVisitId() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/ReportDownScanFileDto.java b/src/main/java/com/docus/bgts/entity/ReportDownScanFileDto.java
new file mode 100644
index 0000000..10dfb09
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/ReportDownScanFileDto.java
@@ -0,0 +1,178 @@
+//
+// 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:服务器本地;2:ftp服务器;3:共享文件夹)")
+ private int filestoragetype;
+ @ApiModelProperty("下载地址")
+ private String downurl;
+ @ApiModelProperty("档案信息")
+ private String recordid;
+ @ApiModelProperty("采集流水号")
+ private String serialnum;
+ @ApiModelProperty("任务id")
+ private Long taskid;
+
+ 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 Long getTaskid() {
+ return this.taskid;
+ }
+
+ 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 setTaskid(final Long taskid) {
+ this.taskid = taskid;
+ }
+
+ 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$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;
+ }
+
+ 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 $taskid = this.getTaskid();
+ result = result * 59 + ($taskid == null ? 43 : $taskid.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() + ", taskid=" + this.getTaskid() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/ResultCode.java b/src/main/java/com/docus/bgts/entity/ResultCode.java
new file mode 100644
index 0000000..3f65c81
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/ResultCode.java
@@ -0,0 +1,33 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.entity;
+
+public enum ResultCode implements IErrorCode {
+ SUCCESS(0, "操作成功"),
+ FAILED(500, "操作失败"),
+ VALIDATE_FAILED(404, "参数检验失败"),
+ UNAUTHORIZED(401, "暂未登录或token已经过期"),
+ FORBIDDEN(403, "没有相关权限"),
+ PREVENT_REPLAY(405, "重复请求"),
+ NOT_EXIST(601, "数据不存在"),
+ NOT_ENABLE(600, "数据未启用");
+
+ private Integer code;
+ private String message;
+
+ private ResultCode(Integer code, String message) {
+ this.code = code;
+ this.message = message;
+ }
+
+ public Integer getCode() {
+ return this.code;
+ }
+
+ public String getMessage() {
+ return this.message;
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/TableJsonRead.java b/src/main/java/com/docus/bgts/entity/TableJsonRead.java
new file mode 100644
index 0000000..4ec758c
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/TableJsonRead.java
@@ -0,0 +1,90 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.entity;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import org.springframework.util.StringUtils;
+
+public class TableJsonRead {
+ public T Read(String path, String fileName, Class clazz) {
+ String currentPath = this.CurrentPath();
+ path = currentPath + "\\" + path;
+ StringBuilder sb = new StringBuilder();
+ T dto = null;
+ File file = new File(path + "\\" + fileName);
+
+ try {
+ if (!file.exists()) {
+ try {
+ file.createNewFile();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ } else {
+ BufferedReader bufferedReader = null;
+ bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
+
+ String line;
+ while(!StringUtils.isEmpty(line = bufferedReader.readLine())) {
+ sb.append(line);
+ }
+
+ if (sb.length() > 0) {
+ ObjectMapper objectMapper = new ObjectMapper();
+ dto = (T)objectMapper.readValue(sb.toString(), clazz);
+ }
+
+ bufferedReader.close();
+ }
+
+ return dto;
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ return null;
+ }
+ }
+
+ private String CurrentPath() {
+ File dir = new File(".");
+ String currentpath = "";
+
+ try {
+ currentpath = dir.getCanonicalPath();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ return currentpath;
+ }
+
+ public void Save(String path, String fileName, String data) {
+ String currentPath = this.CurrentPath();
+ path = currentPath + "\\" + path;
+ FileWriter fwriter = null;
+
+ try {
+ fwriter = new FileWriter(path + "\\" + fileName);
+ fwriter.write(data);
+ } catch (IOException ex) {
+ ex.printStackTrace();
+ } finally {
+ try {
+ fwriter.flush();
+ fwriter.close();
+ } catch (IOException ex) {
+ ex.printStackTrace();
+ }
+
+ }
+
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/TaskDetail.java b/src/main/java/com/docus/bgts/entity/TaskDetail.java
new file mode 100644
index 0000000..dc7975c
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/TaskDetail.java
@@ -0,0 +1,101 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.entity;
+
+public class TaskDetail {
+ private Long id;
+ private String fileTitle;
+ private String state;
+
+ public Long getId() {
+ return this.id;
+ }
+
+ public String getFileTitle() {
+ return this.fileTitle;
+ }
+
+ public String getState() {
+ return this.state;
+ }
+
+ public void setId(final Long id) {
+ this.id = id;
+ }
+
+ public void setFileTitle(final String fileTitle) {
+ this.fileTitle = fileTitle;
+ }
+
+ public void setState(final String state) {
+ this.state = state;
+ }
+
+ public boolean equals(final Object o) {
+ if (o == this) {
+ return true;
+ } else if (!(o instanceof TaskDetail)) {
+ return false;
+ } else {
+ TaskDetail other = (TaskDetail)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$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;
+ }
+
+ 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;
+ }
+
+ return true;
+ }
+ }
+ }
+
+ protected boolean canEqual(final Object other) {
+ return other instanceof TaskDetail;
+ }
+
+ public int hashCode() {
+ int PRIME = 59;
+ int result = 1;
+ Object $id = this.getId();
+ result = result * 59 + ($id == null ? 43 : $id.hashCode());
+ Object $fileTitle = this.getFileTitle();
+ result = result * 59 + ($fileTitle == null ? 43 : $fileTitle.hashCode());
+ Object $state = this.getState();
+ result = result * 59 + ($state == null ? 43 : $state.hashCode());
+ return result;
+ }
+
+ public String toString() {
+ return "TaskDetail(id=" + this.getId() + ", fileTitle=" + this.getFileTitle() + ", state=" + this.getState() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/VDocumentPdf.java b/src/main/java/com/docus/bgts/entity/VDocumentPdf.java
new file mode 100644
index 0000000..55ede40
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/VDocumentPdf.java
@@ -0,0 +1,147 @@
+//
+// 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 java.util.Date;
+
+@ApiModel("手麻采集器")
+public class VDocumentPdf {
+ private String 手术申请单号;
+ private String 文书名;
+ private String WEB_ADDRESS;
+ private String PATIENT_ID;
+ private Date ARCHIVE_DATE_TIME;
+
+ public String get手术申请单号() {
+ return this.手术申请单号;
+ }
+
+ public String get文书名() {
+ return this.文书名;
+ }
+
+ public String getWEB_ADDRESS() {
+ return this.WEB_ADDRESS;
+ }
+
+ public String getPATIENT_ID() {
+ return this.PATIENT_ID;
+ }
+
+ public Date getARCHIVE_DATE_TIME() {
+ return this.ARCHIVE_DATE_TIME;
+ }
+
+ public void set手术申请单号(final String 手术申请单号) {
+ this.手术申请单号 = 手术申请单号;
+ }
+
+ public void set文书名(final String 文书名) {
+ this.文书名 = 文书名;
+ }
+
+ public void setWEB_ADDRESS(final String WEB_ADDRESS) {
+ this.WEB_ADDRESS = WEB_ADDRESS;
+ }
+
+ public void setPATIENT_ID(final String PATIENT_ID) {
+ this.PATIENT_ID = PATIENT_ID;
+ }
+
+ public void setARCHIVE_DATE_TIME(final Date ARCHIVE_DATE_TIME) {
+ this.ARCHIVE_DATE_TIME = ARCHIVE_DATE_TIME;
+ }
+
+ public boolean equals(final Object o) {
+ if (o == this) {
+ return true;
+ } else if (!(o instanceof VDocumentPdf)) {
+ return false;
+ } else {
+ VDocumentPdf other = (VDocumentPdf)o;
+ if (!other.canEqual(this)) {
+ return false;
+ } else {
+ Object this$手术申请单号 = this.get手术申请单号();
+ Object other$手术申请单号 = other.get手术申请单号();
+ if (this$手术申请单号 == null) {
+ if (other$手术申请单号 != null) {
+ return false;
+ }
+ } else if (!this$手术申请单号.equals(other$手术申请单号)) {
+ return false;
+ }
+
+ Object this$文书名 = this.get文书名();
+ Object other$文书名 = other.get文书名();
+ if (this$文书名 == null) {
+ if (other$文书名 != null) {
+ return false;
+ }
+ } else if (!this$文书名.equals(other$文书名)) {
+ return false;
+ }
+
+ Object this$WEB_ADDRESS = this.getWEB_ADDRESS();
+ Object other$WEB_ADDRESS = other.getWEB_ADDRESS();
+ if (this$WEB_ADDRESS == null) {
+ if (other$WEB_ADDRESS != null) {
+ return false;
+ }
+ } else if (!this$WEB_ADDRESS.equals(other$WEB_ADDRESS)) {
+ return false;
+ }
+
+ Object this$PATIENT_ID = this.getPATIENT_ID();
+ Object other$PATIENT_ID = other.getPATIENT_ID();
+ if (this$PATIENT_ID == null) {
+ if (other$PATIENT_ID != null) {
+ return false;
+ }
+ } else if (!this$PATIENT_ID.equals(other$PATIENT_ID)) {
+ return false;
+ }
+
+ Object this$ARCHIVE_DATE_TIME = this.getARCHIVE_DATE_TIME();
+ Object other$ARCHIVE_DATE_TIME = other.getARCHIVE_DATE_TIME();
+ if (this$ARCHIVE_DATE_TIME == null) {
+ if (other$ARCHIVE_DATE_TIME != null) {
+ return false;
+ }
+ } else if (!this$ARCHIVE_DATE_TIME.equals(other$ARCHIVE_DATE_TIME)) {
+ return false;
+ }
+
+ return true;
+ }
+ }
+ }
+
+ protected boolean canEqual(final Object other) {
+ return other instanceof VDocumentPdf;
+ }
+
+ public int hashCode() {
+ int PRIME = 59;
+ int result = 1;
+ Object $手术申请单号 = this.get手术申请单号();
+ result = result * 59 + ($手术申请单号 == null ? 43 : $手术申请单号.hashCode());
+ Object $文书名 = this.get文书名();
+ result = result * 59 + ($文书名 == null ? 43 : $文书名.hashCode());
+ Object $WEB_ADDRESS = this.getWEB_ADDRESS();
+ result = result * 59 + ($WEB_ADDRESS == null ? 43 : $WEB_ADDRESS.hashCode());
+ Object $PATIENT_ID = this.getPATIENT_ID();
+ result = result * 59 + ($PATIENT_ID == null ? 43 : $PATIENT_ID.hashCode());
+ Object $ARCHIVE_DATE_TIME = this.getARCHIVE_DATE_TIME();
+ result = result * 59 + ($ARCHIVE_DATE_TIME == null ? 43 : $ARCHIVE_DATE_TIME.hashCode());
+ return result;
+ }
+
+ public String toString() {
+ return "VDocumentPdf(手术申请单号=" + this.get手术申请单号() + ", 文书名=" + this.get文书名() + ", WEB_ADDRESS=" + this.getWEB_ADDRESS() + ", PATIENT_ID=" + this.getPATIENT_ID() + ", ARCHIVE_DATE_TIME=" + this.getARCHIVE_DATE_TIME() + ")";
+ }
+}
diff --git a/src/main/java/com/docus/bgts/entity/ZdAssort.java b/src/main/java/com/docus/bgts/entity/ZdAssort.java
new file mode 100644
index 0000000..3e52bd3
--- /dev/null
+++ b/src/main/java/com/docus/bgts/entity/ZdAssort.java
@@ -0,0 +1,203 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.entity;
+
+import com.baomidou.mybatisplus.annotation.TableId;
+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;
+ @TableId
+ @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;
+ }
+}
diff --git a/src/main/java/com/docus/bgts/enums/Codes.java b/src/main/java/com/docus/bgts/enums/Codes.java
new file mode 100644
index 0000000..4805dbb
--- /dev/null
+++ b/src/main/java/com/docus/bgts/enums/Codes.java
@@ -0,0 +1,43 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.docus.bgts.enums;
+
+public enum Codes {
+ SUCCESS("0", "成功"),
+ ERROR("1", "失败"),
+ RESPONSE("100", "Response"),
+ RET_INFO("101", "RetInfo"),
+ RET_CODE("102", "RetCode"),
+ RET_CON("103", "RetCon"),
+ EXTERNAL("9202", "201_P_WS_JYBGTS"),
+ JSON_ADDRESS("999", "\\dataConfig\\homeQualitySet.json"),
+ MSG("201", "Msg"),
+ DIRECTORY("1000", "directory"),
+ UPLOAD("0", "uploadConnector"),
+ SMCODE("5", "手麻代码"),
+ ZZCODE("15", "重症代码"),
+ REQUEST_XML("0", "\\dataConfig\\RequestParams.xml"),
+ REQUEST_details_XML("0", "\\dataConfig\\RequestDetailsParams.xml"),
+ EMP_ID("0", "indexFlag"),
+ ERROR_CODE("500", "12"),
+ SELECT_COLUMNS("10000", "selectColumns");
+
+ 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;
+ }
+}
diff --git a/src/main/java/com/docus/bgts/facade/IAfCollectTaskService.java b/src/main/java/com/docus/bgts/facade/IAfCollectTaskService.java
new file mode 100644
index 0000000..575061a
--- /dev/null
+++ b/src/main/java/com/docus/bgts/facade/IAfCollectTaskService.java
@@ -0,0 +1,38 @@
+//
+// 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.ReportDownDto;
+import java.util.List;
+import java.util.Map;
+
+public interface IAfCollectTaskService extends IService {
+ String getpatientIdByEmpId(String empId);
+
+ void insert(ReportDownDto reportDownDto);
+
+ String getJzhByInpatientNo(String inPatientNo, String visitId);
+
+ String getJzhByJzh(String jzh);
+
+ void insertServer(ReportDownDto reportDownDto);
+
+ void updateInterfaceCollect(String collectSubId, int state);
+
+ List