commit ddf93d12dc6430b2c3d5d5bc880096e3c0e581eb Author: wyb <1977763549@qq.com> Date: Tue Jan 20 17:15:46 2026 +0800 init:反编译代码 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/homeQualitySet.json b/dataConfig/homeQualitySet.json new file mode 100644 index 0000000..95ac36a --- /dev/null +++ b/dataConfig/homeQualitySet.json @@ -0,0 +1,78 @@ +{ + //----------响应标签------------- + //外部结构,多层,隔开 + "ResHead":"Response,RetInfo", + //响应代码 + "ResCode":"RetCode", + //响应消息 + "ResMsg":"RetCon", + //成功编码 + "successCode":"0", + //失败编码 + "errorCode":"1", + + //唯一键目录结构数组,最高层为前面,最后一层为数据采集层,根节点不填 + "directory":["Msg"], + //患者主索引号 + "indexFlag":"INHOSP_NO", + //采集流水号 + "serialnum":"IDNO", + //文件标题 + "filetitle":"FILENAME", + //排序时间 + "sortingTime":"MIN_TIME", + //医生提交时间 + "doctorSubmitTime": "SUBMIT_TIME", + //提交人姓名 + "submitName":"REC_SUB_NAME", + //下载地址,&代表多个选其一 + "downurl":"PDF_PATH", + //分类id + "assortid":"Wiw213woq412awqe41", + //系统id + "collectorid":"22", + //获取分类id参数 + "assortidParamKey":"DOCUMENT_TOPIC", + //采集类型(文件来源 1:采集器;2:扫描生产软件) + "filesource":1, + //下载类型(1:服务器本地;2:ftp服务器;3:共享文件夹) + "filestoragetype":1, + //上传接口 + "uploadConnector":"http://192.9.100.171:9291/api/downplatform/report", + //基本数据存放处,根节点不填,最后一层为基本信息存放标签与doubleBasic配合 + "basicDirectory":[""], + //封存病历的上传接口 + "sealUpload":"http://192.9.100.171:9291/api/downplatform/sealReport", + //可能存在存储基本数据不同情况的标签 + "doubleBasic":["ITEM"], + //封存id + "sealId":"SEAL_ID", + //--------------采集操作判断撤销/新增--------------- + //是否开启采集操作判断撤销/新增 0:不开启,1:开启 默认不开启 + "isJudge":"0", + //判断标签存在目录,首个标签不填 + "judgeDirectory":[""], + //判定标签,值0-新增;1-撤回;2-修改 + "judgeIndex":"", + + + //--------撤销配置部分------------ + //采集流水号所在位置,根目录不填 + "repealDirectory":[""], + //采集流水号名 + "repealSerialnum":"UNIQUE_ID", + //撤销接口 + "repoalConnector":"http://192.9.100.171:9291/api/down/cancel", + + //---------住院接口配置部分----------- + "zyUrl":"http://192.9.100.32:9022/ktin/api/webservice/ChasWebService?wsdl", +// "zyUrl":"http://localhost:9000/services/api?wsdl", + "zyMethod":"ChasMessageServer", +// "zyMethod":"getPdfId", + "zyNamespance":"http://webservice.http.plugins.api.his.karrytech.com/", +// "zyNamespance":"http://server.webservice.example.com", + "zyDirectory":["PDF_DETAIL_INFO"], + "pdfUrl":"http://192.9.100.32:9022/ktin/api/flow/flow-mra-getpdffile?PDF_ID=", + "zysj":"2022-01-28" + +} \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..f067891 --- /dev/null +++ b/pom.xml @@ -0,0 +1,160 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.5.6 + + + com.docus + demo + 0.0.1-SNAPSHOT + docus-mz-empcllect + 电子病历采集 + + 1.8 + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-logging + + + + + 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.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.axis + axis + 1.4 + + + + org.apache.axis + axis-jaxrpc + 1.4 + + + + commons-discovery + commons-discovery + 0.2 + + + + commons-logging + commons-logging + 1.1.1 + + + + wsdl4j + wsdl4j + 1.6.2 + + + org.apache.axis + axis + 1.4 + + + commons-discovery + commons-discovery + 0.2 + + + commons-logging + commons-logging + + + + + org.apache.axis + axis-jaxrpc + 1.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..cc06d66 --- /dev/null +++ b/src/main/java/com/docus/bgts/DemoApplication.java @@ -0,0 +1,19 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.scheduling.annotation.EnableScheduling; + +@EnableScheduling +@SpringBootApplication +public class DemoApplication { + public static void main(String[] args) { + System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"); + SpringApplication.run(DemoApplication.class, args); + } +} diff --git a/src/main/java/com/docus/bgts/config/MybatisPlusConfig.java b/src/main/java/com/docus/bgts/config/MybatisPlusConfig.java new file mode 100644 index 0000000..0e61217 --- /dev/null +++ b/src/main/java/com/docus/bgts/config/MybatisPlusConfig.java @@ -0,0 +1,74 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.config; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties; +import com.baomidou.mybatisplus.core.MybatisConfiguration; +import com.baomidou.mybatisplus.core.config.GlobalConfig; +import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; +import org.apache.ibatis.logging.nologging.NoLoggingImpl; +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.transaction.annotation.EnableTransactionManagement; + +import javax.annotation.PostConstruct; +import java.beans.ConstructorProperties; +import java.util.Objects; + +@Configuration +@EnableTransactionManagement +@MapperScan({"com.docus.bgts.mapper"}) +@ConditionalOnClass({PaginationInterceptor.class}) +public class MybatisPlusConfig { + private final MybatisPlusProperties mybatisPlusProperties; + + @Bean + public PaginationInterceptor paginationInterceptor() { + PaginationInterceptor paginationInterceptor = new PaginationInterceptor(); + return paginationInterceptor; + } + + @PostConstruct + public void initMybatisConfig() { + this.mybatisPlusProperties.setMapperLocations(new String[]{"classpath*:/mapper/*Mapper.xml"}); + this.mybatisPlusProperties.setTypeAliasesPackage("com.docus.bgts.entity"); + MybatisConfiguration configuration = this.mybatisPlusProperties.getConfiguration(); + if (Objects.isNull(configuration)) { + configuration = new MybatisConfiguration(); + } + + configuration.setMapUnderscoreToCamelCase(true); + configuration.setCacheEnabled(true); + configuration.setLogImpl(NoLoggingImpl.class); + this.mybatisPlusProperties.setConfiguration(configuration); + GlobalConfig globalConfig = this.mybatisPlusProperties.getGlobalConfig(); + if (Objects.isNull(globalConfig)) { + globalConfig = new GlobalConfig(); + } + + GlobalConfig.DbConfig dbConfig = globalConfig.getDbConfig(); + if (Objects.isNull(dbConfig)) { + dbConfig = new GlobalConfig.DbConfig(); + } + + configuration.setCallSettersOnNulls(true); + dbConfig.setIdType(IdType.ASSIGN_ID); + dbConfig.setTableUnderline(true); + dbConfig.setLogicDeleteValue("1"); + dbConfig.setLogicNotDeleteValue("0"); + dbConfig.setLogicDeleteField("def_flag"); + globalConfig.setDbConfig(dbConfig); + globalConfig.setBanner(false); + } + + @ConstructorProperties({"mybatisPlusProperties"}) + public MybatisPlusConfig(final MybatisPlusProperties mybatisPlusProperties) { + this.mybatisPlusProperties = mybatisPlusProperties; + } +} 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..8f13de7 --- /dev/null +++ b/src/main/java/com/docus/bgts/config/ThreadPoolConfig.java @@ -0,0 +1,22 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.config; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import java.util.concurrent.Executors; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; + +@Configuration +public class ThreadPoolConfig { + @Bean + public ThreadPoolExecutor threadPoolExecutor() { + return new ThreadPoolExecutor(Runtime.getRuntime().availableProcessors(), (int)((double)Runtime.getRuntime().availableProcessors() / 0.1), 60L, TimeUnit.SECONDS, new LinkedBlockingQueue(Runtime.getRuntime().availableProcessors()), Executors.defaultThreadFactory(), new ThreadPoolExecutor.CallerRunsPolicy()); + } +} diff --git a/src/main/java/com/docus/bgts/config/WebServiceConfig.java b/src/main/java/com/docus/bgts/config/WebServiceConfig.java new file mode 100644 index 0000000..433fca3 --- /dev/null +++ b/src/main/java/com/docus/bgts/config/WebServiceConfig.java @@ -0,0 +1,38 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.config; + +import com.docus.bgts.handler.ITBasicWebService; +import com.docus.bgts.handler.TBasicWebService; +import javax.xml.ws.Endpoint; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class WebServiceConfig { + private final Logger log = LoggerFactory.getLogger(this.getClass()); + @Value("${system.code}") + private String systemCode; + @Value("${system.prop}") + private String systemProp; + + @Bean + public ITBasicWebService tBasicWebService() { + return new TBasicWebService(); + } + + @Bean + public Endpoint endpoint() { + this.log.info(" web service服务已发布 "); + String address = "http://0.0.0.0:" + this.systemProp + "/" + this.systemCode; + Endpoint publish = Endpoint.publish(address, this.tBasicWebService()); + this.log.info(" " + address); + return publish; + } +} diff --git a/src/main/java/com/docus/bgts/dto/SystemCollectConfig.java b/src/main/java/com/docus/bgts/dto/SystemCollectConfig.java new file mode 100644 index 0000000..7b4c556 --- /dev/null +++ b/src/main/java/com/docus/bgts/dto/SystemCollectConfig.java @@ -0,0 +1,170 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.dto; + +import java.util.List; + +public class SystemCollectConfig { + private String sealCollectClassify; + private List sealCollectConfigs; + + public String getSealCollectClassify() { + return this.sealCollectClassify; + } + + public List getSealCollectConfigs() { + return this.sealCollectConfigs; + } + + public void setSealCollectClassify(final String sealCollectClassify) { + this.sealCollectClassify = sealCollectClassify; + } + + public void setSealCollectConfigs(final List sealCollectConfigs) { + this.sealCollectConfigs = sealCollectConfigs; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof SystemCollectConfig)) { + return false; + } else { + SystemCollectConfig other = (SystemCollectConfig)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$sealCollectClassify = this.getSealCollectClassify(); + Object other$sealCollectClassify = other.getSealCollectClassify(); + if (this$sealCollectClassify == null) { + if (other$sealCollectClassify != null) { + return false; + } + } else if (!this$sealCollectClassify.equals(other$sealCollectClassify)) { + return false; + } + + Object this$sealCollectConfigs = this.getSealCollectConfigs(); + Object other$sealCollectConfigs = other.getSealCollectConfigs(); + if (this$sealCollectConfigs == null) { + if (other$sealCollectConfigs != null) { + return false; + } + } else if (!this$sealCollectConfigs.equals(other$sealCollectConfigs)) { + return false; + } + + return true; + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof SystemCollectConfig; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $sealCollectClassify = this.getSealCollectClassify(); + result = result * 59 + ($sealCollectClassify == null ? 43 : $sealCollectClassify.hashCode()); + Object $sealCollectConfigs = this.getSealCollectConfigs(); + result = result * 59 + ($sealCollectConfigs == null ? 43 : $sealCollectConfigs.hashCode()); + return result; + } + + public String toString() { + return "SystemCollectConfig(sealCollectClassify=" + this.getSealCollectClassify() + ", sealCollectConfigs=" + this.getSealCollectConfigs() + ")"; + } + + public static class CollectConfig { + private String desc; + private String url; + + public String getDesc() { + return this.desc; + } + + public void setDesc(String desc) { + this.desc = desc; + } + + public String getUrl() { + return this.url; + } + + public void setUrl(String url) { + this.url = url; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof CollectConfig)) { + return false; + } else { + CollectConfig other = (CollectConfig)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$desc = this.getDesc(); + Object other$desc = other.getDesc(); + if (this$desc == null) { + if (other$desc != null) { + return false; + } + } else if (!this$desc.equals(other$desc)) { + return false; + } + + Object this$url = this.getUrl(); + Object other$url = other.getUrl(); + if (this$url == null) { + if (other$url != null) { + return false; + } + } else if (!this$url.equals(other$url)) { + return false; + } + + return true; + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof CollectConfig; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $desc = this.getDesc(); + result = result * 59 + ($desc == null ? 43 : $desc.hashCode()); + Object $url = this.getUrl(); + result = result * 59 + ($url == null ? 43 : $url.hashCode()); + return result; + } + + public String toString() { + return "SystemCollectConfig.CollectConfig(desc=" + this.getDesc() + ", url=" + this.getUrl() + ")"; + } + } + + public static enum Classify { + SEAL_COLLECT("SEAL_COLLECT"); + + final String classify; + + private Classify(String classify) { + this.classify = classify; + } + + public String getClassify() { + return this.classify; + } + } +} 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..9393f98 --- /dev/null +++ b/src/main/java/com/docus/bgts/entity/AfInterfaceCollectSub.java @@ -0,0 +1,218 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.entity; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.Serializable; + +@ApiModel("文件库中的省中医病案采集-子任务表") +public class AfInterfaceCollectSub implements Serializable { + private Long id; + @ApiModelProperty("af_interface_collect表id") + private Long afInterfaceCollectId; + @ApiModelProperty("采集器id") + private String collectsysCode; + @ApiModelProperty("子任务流水号 同一份文件子任务需一致") + private String serialnumSub; + @ApiModelProperty("记账号") + private String jzh; + @ApiModelProperty("分类名称") + private String assortName; + @ApiModelProperty("状态 0:未发起,1:成功,2:失败") + private Integer state; + @ApiModelProperty("请求信息") + private String requestMessage; + + public Long getId() { + return this.id; + } + + public Long getAfInterfaceCollectId() { + return this.afInterfaceCollectId; + } + + public String getCollectsysCode() { + return this.collectsysCode; + } + + public String getSerialnumSub() { + return this.serialnumSub; + } + + public String getJzh() { + return this.jzh; + } + + public String getAssortName() { + return this.assortName; + } + + public Integer getState() { + return this.state; + } + + public String getRequestMessage() { + return this.requestMessage; + } + + public void setId(final Long id) { + this.id = id; + } + + public void setAfInterfaceCollectId(final Long afInterfaceCollectId) { + this.afInterfaceCollectId = afInterfaceCollectId; + } + + public void setCollectsysCode(final String collectsysCode) { + this.collectsysCode = collectsysCode; + } + + public void setSerialnumSub(final String serialnumSub) { + this.serialnumSub = serialnumSub; + } + + public void setJzh(final String jzh) { + this.jzh = jzh; + } + + public void setAssortName(final String assortName) { + this.assortName = assortName; + } + + public void setState(final Integer state) { + this.state = state; + } + + public void setRequestMessage(final String requestMessage) { + this.requestMessage = requestMessage; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof AfInterfaceCollectSub)) { + return false; + } else { + AfInterfaceCollectSub other = (AfInterfaceCollectSub)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$id = this.getId(); + Object other$id = other.getId(); + if (this$id == null) { + if (other$id != null) { + return false; + } + } else if (!this$id.equals(other$id)) { + return false; + } + + Object this$afInterfaceCollectId = this.getAfInterfaceCollectId(); + Object other$afInterfaceCollectId = other.getAfInterfaceCollectId(); + if (this$afInterfaceCollectId == null) { + if (other$afInterfaceCollectId != null) { + return false; + } + } else if (!this$afInterfaceCollectId.equals(other$afInterfaceCollectId)) { + return false; + } + + Object this$collectsysCode = this.getCollectsysCode(); + Object other$collectsysCode = other.getCollectsysCode(); + if (this$collectsysCode == null) { + if (other$collectsysCode != null) { + return false; + } + } else if (!this$collectsysCode.equals(other$collectsysCode)) { + return false; + } + + Object this$serialnumSub = this.getSerialnumSub(); + Object other$serialnumSub = other.getSerialnumSub(); + if (this$serialnumSub == null) { + if (other$serialnumSub != null) { + return false; + } + } else if (!this$serialnumSub.equals(other$serialnumSub)) { + return false; + } + + Object this$jzh = this.getJzh(); + Object other$jzh = other.getJzh(); + if (this$jzh == null) { + if (other$jzh != null) { + return false; + } + } else if (!this$jzh.equals(other$jzh)) { + return false; + } + + Object this$assortName = this.getAssortName(); + Object other$assortName = other.getAssortName(); + if (this$assortName == null) { + if (other$assortName != null) { + return false; + } + } else if (!this$assortName.equals(other$assortName)) { + return false; + } + + Object this$state = this.getState(); + Object other$state = other.getState(); + if (this$state == null) { + if (other$state != null) { + return false; + } + } else if (!this$state.equals(other$state)) { + return false; + } + + Object this$requestMessage = this.getRequestMessage(); + Object other$requestMessage = other.getRequestMessage(); + if (this$requestMessage == null) { + if (other$requestMessage != null) { + return false; + } + } else if (!this$requestMessage.equals(other$requestMessage)) { + return false; + } + + return true; + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof AfInterfaceCollectSub; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $id = this.getId(); + result = result * 59 + ($id == null ? 43 : $id.hashCode()); + Object $afInterfaceCollectId = this.getAfInterfaceCollectId(); + result = result * 59 + ($afInterfaceCollectId == null ? 43 : $afInterfaceCollectId.hashCode()); + Object $collectsysCode = this.getCollectsysCode(); + result = result * 59 + ($collectsysCode == null ? 43 : $collectsysCode.hashCode()); + Object $serialnumSub = this.getSerialnumSub(); + result = result * 59 + ($serialnumSub == null ? 43 : $serialnumSub.hashCode()); + Object $jzh = this.getJzh(); + result = result * 59 + ($jzh == null ? 43 : $jzh.hashCode()); + Object $assortName = this.getAssortName(); + result = result * 59 + ($assortName == null ? 43 : $assortName.hashCode()); + Object $state = this.getState(); + result = result * 59 + ($state == null ? 43 : $state.hashCode()); + Object $requestMessage = this.getRequestMessage(); + result = result * 59 + ($requestMessage == null ? 43 : $requestMessage.hashCode()); + return result; + } + + public String toString() { + return "AfInterfaceCollectSub(id=" + this.getId() + ", afInterfaceCollectId=" + this.getAfInterfaceCollectId() + ", collectsysCode=" + this.getCollectsysCode() + ", serialnumSub=" + this.getSerialnumSub() + ", jzh=" + this.getJzh() + ", assortName=" + this.getAssortName() + ", state=" + this.getState() + ", requestMessage=" + this.getRequestMessage() + ")"; + } +} diff --git a/src/main/java/com/docus/bgts/entity/CanlcelDto.java b/src/main/java/com/docus/bgts/entity/CanlcelDto.java new file mode 100644 index 0000000..0a57b3b --- /dev/null +++ b/src/main/java/com/docus/bgts/entity/CanlcelDto.java @@ -0,0 +1,64 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.entity; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +@ApiModel("撤销文件类") +public class CanlcelDto { + @ApiModelProperty("采集流水号") + private String serialnum; + + public String getSerialnum() { + return this.serialnum; + } + + public void setSerialnum(final String serialnum) { + this.serialnum = serialnum; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof CanlcelDto)) { + return false; + } else { + CanlcelDto other = (CanlcelDto)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$serialnum = this.getSerialnum(); + Object other$serialnum = other.getSerialnum(); + if (this$serialnum == null) { + if (other$serialnum != null) { + return false; + } + } else if (!this$serialnum.equals(other$serialnum)) { + return false; + } + + return true; + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof CanlcelDto; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $serialnum = this.getSerialnum(); + result = result * 59 + ($serialnum == null ? 43 : $serialnum.hashCode()); + return result; + } + + public String toString() { + return "CanlcelDto(serialnum=" + this.getSerialnum() + ")"; + } +} diff --git a/src/main/java/com/docus/bgts/entity/CqcSubmitState.java b/src/main/java/com/docus/bgts/entity/CqcSubmitState.java new file mode 100644 index 0000000..57ce3df --- /dev/null +++ b/src/main/java/com/docus/bgts/entity/CqcSubmitState.java @@ -0,0 +1,102 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.entity; + +public class CqcSubmitState { + private static final long serialVersionUID = 1L; + private String patientId; + private Integer doctorState; + private Integer nurseState; + + public String getPatientId() { + return this.patientId; + } + + public Integer getDoctorState() { + return this.doctorState; + } + + public Integer getNurseState() { + return this.nurseState; + } + + public void setPatientId(final String patientId) { + this.patientId = patientId; + } + + public void setDoctorState(final Integer doctorState) { + this.doctorState = doctorState; + } + + public void setNurseState(final Integer nurseState) { + this.nurseState = nurseState; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof CqcSubmitState)) { + return false; + } else { + CqcSubmitState other = (CqcSubmitState)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$patientId = this.getPatientId(); + Object other$patientId = other.getPatientId(); + if (this$patientId == null) { + if (other$patientId != null) { + return false; + } + } else if (!this$patientId.equals(other$patientId)) { + return false; + } + + Object this$doctorState = this.getDoctorState(); + Object other$doctorState = other.getDoctorState(); + if (this$doctorState == null) { + if (other$doctorState != null) { + return false; + } + } else if (!this$doctorState.equals(other$doctorState)) { + return false; + } + + Object this$nurseState = this.getNurseState(); + Object other$nurseState = other.getNurseState(); + if (this$nurseState == null) { + if (other$nurseState != null) { + return false; + } + } else if (!this$nurseState.equals(other$nurseState)) { + return false; + } + + return true; + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof CqcSubmitState; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $patientId = this.getPatientId(); + result = result * 59 + ($patientId == null ? 43 : $patientId.hashCode()); + Object $doctorState = this.getDoctorState(); + result = result * 59 + ($doctorState == null ? 43 : $doctorState.hashCode()); + Object $nurseState = this.getNurseState(); + result = result * 59 + ($nurseState == null ? 43 : $nurseState.hashCode()); + return result; + } + + public String toString() { + return "CqcSubmitState(patientId=" + this.getPatientId() + ", doctorState=" + this.getDoctorState() + ", nurseState=" + this.getNurseState() + ")"; + } +} 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..bd950c0 --- /dev/null +++ b/src/main/java/com/docus/bgts/entity/MrReportError.java @@ -0,0 +1,130 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.entity; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.Date; + +@ApiModel("错误日志表") +public class MrReportError { + private Long id; + @ApiModelProperty("上报信息") + private String xml; + @ApiModelProperty("上报类型") + private Integer reportType; + @ApiModelProperty("上报时间") + private Date createTime; + + public Long getId() { + return this.id; + } + + public String getXml() { + return this.xml; + } + + public Integer getReportType() { + return this.reportType; + } + + public Date getCreateTime() { + return this.createTime; + } + + public void setId(final Long id) { + this.id = id; + } + + public void setXml(final String xml) { + this.xml = xml; + } + + public void setReportType(final Integer reportType) { + this.reportType = reportType; + } + + public void setCreateTime(final Date createTime) { + this.createTime = createTime; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof MrReportError)) { + return false; + } else { + MrReportError other = (MrReportError)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$id = this.getId(); + Object other$id = other.getId(); + if (this$id == null) { + if (other$id != null) { + return false; + } + } else if (!this$id.equals(other$id)) { + return false; + } + + Object this$xml = this.getXml(); + Object other$xml = other.getXml(); + if (this$xml == null) { + if (other$xml != null) { + return false; + } + } else if (!this$xml.equals(other$xml)) { + return false; + } + + Object this$reportType = this.getReportType(); + Object other$reportType = other.getReportType(); + if (this$reportType == null) { + if (other$reportType != null) { + return false; + } + } else if (!this$reportType.equals(other$reportType)) { + return false; + } + + Object this$createTime = this.getCreateTime(); + Object other$createTime = other.getCreateTime(); + if (this$createTime == null) { + if (other$createTime != null) { + return false; + } + } else if (!this$createTime.equals(other$createTime)) { + return false; + } + + return true; + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof MrReportError; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $id = this.getId(); + result = result * 59 + ($id == null ? 43 : $id.hashCode()); + Object $xml = this.getXml(); + result = result * 59 + ($xml == null ? 43 : $xml.hashCode()); + Object $reportType = this.getReportType(); + result = result * 59 + ($reportType == null ? 43 : $reportType.hashCode()); + Object $createTime = this.getCreateTime(); + result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode()); + return result; + } + + public String toString() { + return "MrReportError(id=" + this.getId() + ", xml=" + this.getXml() + ", reportType=" + this.getReportType() + ", createTime=" + this.getCreateTime() + ")"; + } +} 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..ec0b1a4 --- /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("封存id") + private String sealId; + @ApiModelProperty("主键") + private String patientid; + + public String getJzh() { + return this.jzh; + } + + public String getSealId() { + return this.sealId; + } + + public String getPatientid() { + return this.patientid; + } + + public void setJzh(final String jzh) { + this.jzh = jzh; + } + + public void setSealId(final String sealId) { + this.sealId = sealId; + } + + public void setPatientid(final String patientid) { + this.patientid = patientid; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof ReportDownPatientDto)) { + return false; + } else { + ReportDownPatientDto other = (ReportDownPatientDto)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$jzh = this.getJzh(); + Object other$jzh = other.getJzh(); + if (this$jzh == null) { + if (other$jzh != null) { + return false; + } + } else if (!this$jzh.equals(other$jzh)) { + return false; + } + + Object this$sealId = this.getSealId(); + Object other$sealId = other.getSealId(); + if (this$sealId == null) { + if (other$sealId != null) { + return false; + } + } else if (!this$sealId.equals(other$sealId)) { + return false; + } + + Object this$patientid = this.getPatientid(); + Object other$patientid = other.getPatientid(); + if (this$patientid == null) { + if (other$patientid != null) { + return false; + } + } else if (!this$patientid.equals(other$patientid)) { + return false; + } + + return true; + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof ReportDownPatientDto; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $jzh = this.getJzh(); + result = result * 59 + ($jzh == null ? 43 : $jzh.hashCode()); + Object $sealId = this.getSealId(); + result = result * 59 + ($sealId == null ? 43 : $sealId.hashCode()); + Object $patientid = this.getPatientid(); + result = result * 59 + ($patientid == null ? 43 : $patientid.hashCode()); + return result; + } + + public String toString() { + return "ReportDownPatientDto(jzh=" + this.getJzh() + ", sealId=" + this.getSealId() + ", patientid=" + this.getPatientid() + ")"; + } +} 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..6c6103c --- /dev/null +++ b/src/main/java/com/docus/bgts/entity/ReportDownScanFileDto.java @@ -0,0 +1,222 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.entity; + +import io.swagger.annotations.ApiModelProperty; + +public class ReportDownScanFileDto { + @ApiModelProperty("文件标题") + private String filetitle; + @ApiModelProperty("采集类型(文件来源 1:采集器;2:扫描生产软件)") + private int filesource; + @ApiModelProperty("下载类型(1:服务器本地;2:ftp服务器;3:共享文件夹)") + private int filestoragetype; + @ApiModelProperty("下载地址") + private String downurl; + @ApiModelProperty("档案信息") + private String recordid; + @ApiModelProperty("采集流水号") + private String serialnum; + @ApiModelProperty("排序时间") + private String sortdate; + @ApiModelProperty("任务id") + private Long taskid; + @ApiModelProperty("文件类型(1:url,2:base64)") + private Integer filetype = 1; + + public String getFiletitle() { + return this.filetitle; + } + + public int getFilesource() { + return this.filesource; + } + + public int getFilestoragetype() { + return this.filestoragetype; + } + + public String getDownurl() { + return this.downurl; + } + + public String getRecordid() { + return this.recordid; + } + + public String getSerialnum() { + return this.serialnum; + } + + public String getSortdate() { + return this.sortdate; + } + + public Long getTaskid() { + return this.taskid; + } + + public Integer getFiletype() { + return this.filetype; + } + + public void setFiletitle(final String filetitle) { + this.filetitle = filetitle; + } + + public void setFilesource(final int filesource) { + this.filesource = filesource; + } + + public void setFilestoragetype(final int filestoragetype) { + this.filestoragetype = filestoragetype; + } + + public void setDownurl(final String downurl) { + this.downurl = downurl; + } + + public void setRecordid(final String recordid) { + this.recordid = recordid; + } + + public void setSerialnum(final String serialnum) { + this.serialnum = serialnum; + } + + public void setSortdate(final String sortdate) { + this.sortdate = sortdate; + } + + public void setTaskid(final Long taskid) { + this.taskid = taskid; + } + + public void setFiletype(final Integer filetype) { + this.filetype = filetype; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof ReportDownScanFileDto)) { + return false; + } else { + ReportDownScanFileDto other = (ReportDownScanFileDto)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$filetitle = this.getFiletitle(); + Object other$filetitle = other.getFiletitle(); + if (this$filetitle == null) { + if (other$filetitle != null) { + return false; + } + } else if (!this$filetitle.equals(other$filetitle)) { + return false; + } + + if (this.getFilesource() != other.getFilesource()) { + return false; + } else if (this.getFilestoragetype() != other.getFilestoragetype()) { + return false; + } else { + Object this$downurl = this.getDownurl(); + Object other$downurl = other.getDownurl(); + if (this$downurl == null) { + if (other$downurl != null) { + return false; + } + } else if (!this$downurl.equals(other$downurl)) { + return false; + } + + Object this$recordid = this.getRecordid(); + Object other$recordid = other.getRecordid(); + if (this$recordid == null) { + if (other$recordid != null) { + return false; + } + } else if (!this$recordid.equals(other$recordid)) { + return false; + } + + Object this$serialnum = this.getSerialnum(); + Object other$serialnum = other.getSerialnum(); + if (this$serialnum == null) { + if (other$serialnum != null) { + return false; + } + } else if (!this$serialnum.equals(other$serialnum)) { + return false; + } + + Object this$sortdate = this.getSortdate(); + Object other$sortdate = other.getSortdate(); + if (this$sortdate == null) { + if (other$sortdate != null) { + return false; + } + } else if (!this$sortdate.equals(other$sortdate)) { + return false; + } + + Object this$taskid = this.getTaskid(); + Object other$taskid = other.getTaskid(); + if (this$taskid == null) { + if (other$taskid != null) { + return false; + } + } else if (!this$taskid.equals(other$taskid)) { + return false; + } + + Object this$filetype = this.getFiletype(); + Object other$filetype = other.getFiletype(); + if (this$filetype == null) { + if (other$filetype != null) { + return false; + } + } else if (!this$filetype.equals(other$filetype)) { + return false; + } + + return true; + } + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof ReportDownScanFileDto; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $filetitle = this.getFiletitle(); + result = result * 59 + ($filetitle == null ? 43 : $filetitle.hashCode()); + result = result * 59 + this.getFilesource(); + result = result * 59 + this.getFilestoragetype(); + Object $downurl = this.getDownurl(); + result = result * 59 + ($downurl == null ? 43 : $downurl.hashCode()); + Object $recordid = this.getRecordid(); + result = result * 59 + ($recordid == null ? 43 : $recordid.hashCode()); + Object $serialnum = this.getSerialnum(); + result = result * 59 + ($serialnum == null ? 43 : $serialnum.hashCode()); + Object $sortdate = this.getSortdate(); + result = result * 59 + ($sortdate == null ? 43 : $sortdate.hashCode()); + Object $taskid = this.getTaskid(); + result = result * 59 + ($taskid == null ? 43 : $taskid.hashCode()); + Object $filetype = this.getFiletype(); + result = result * 59 + ($filetype == null ? 43 : $filetype.hashCode()); + return result; + } + + public String toString() { + return "ReportDownScanFileDto(filetitle=" + this.getFiletitle() + ", filesource=" + this.getFilesource() + ", filestoragetype=" + this.getFilestoragetype() + ", downurl=" + this.getDownurl() + ", recordid=" + this.getRecordid() + ", serialnum=" + this.getSerialnum() + ", sortdate=" + this.getSortdate() + ", taskid=" + this.getTaskid() + ", filetype=" + this.getFiletype() + ")"; + } +} diff --git a/src/main/java/com/docus/bgts/entity/TBasic.java b/src/main/java/com/docus/bgts/entity/TBasic.java new file mode 100644 index 0000000..33a49cc --- /dev/null +++ b/src/main/java/com/docus/bgts/entity/TBasic.java @@ -0,0 +1,1594 @@ +// +// 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 = "TBasic对象", + description = "病案基本信息" +) +public class TBasic implements Serializable { + private static final long serialVersionUID = 1L; + @ApiModelProperty("病案主键") + @TableId( + value = "patient_id", + type = IdType.ASSIGN_ID + ) + private String patientId; + @ApiModelProperty("住院次数") + private Integer admissTimes; + @ApiModelProperty("病案号") + private String inpatientNo; + @ApiModelProperty("住院id号") + private String admissId; + @ApiModelProperty("患者姓名") + private String name; + @ApiModelProperty("盘号") + private String ph; + @ApiModelProperty("患者姓名首拼") + private String nameSpell; + @ApiModelProperty("性别") + private String sex; + @ApiModelProperty("年龄_岁") + private Integer age; + @ApiModelProperty("年龄_月") + private Integer ageMonth; + @ApiModelProperty("年龄_天") + private Integer ageDay; + @ApiModelProperty("身份证") + private String idCard; + @ApiModelProperty("手机号码") + private String telphone; + @ApiModelProperty("住院日期") + private Date admissDate; + @ApiModelProperty("住院科室") + private String admissDept; + @ApiModelProperty("住院科室名称") + private String admissDeptName; + @ApiModelProperty("出院日期") + private Date disDate; + @ApiModelProperty("出院科室") + private String disDept; + @ApiModelProperty("出院科室名称") + private String disDeptName; + @ApiModelProperty("实际住院天数") + private Integer admissDays; + @ApiModelProperty("主管医生") + private String attending; + @ApiModelProperty("主管医生名称") + private String attendingName; + @ApiModelProperty("主要诊断编码") + private String mainDiagCode; + @ApiModelProperty("主要诊断名称") + private String mainDiagName; + @ApiModelProperty("主要手术编码") + private String mainOperateCode; + @ApiModelProperty("主要手术名称") + private String mainOperateName; + @ApiModelProperty("是否死亡") + private Integer isDead; + @ApiModelProperty("是否作废(0:否,1:是)") + private Integer isCancel; + @ApiModelProperty("签收时间") + private Date signTime; + @ApiModelProperty("创建时间") + private Date createTime; + @ApiModelProperty("修改时间") + private Date updateTime; + @ApiModelProperty("是否归档 1:已归档,0:未归档") + private Integer isArchive; + @ApiModelProperty("归档时间") + private Date archiveTime; + @ApiModelProperty("1 归档采集(pdf),2 异地扫描(图片),3 现场扫描(pdf),4 其他来源") + private Integer fileSource; + @ApiModelProperty("完整性描述") + private String integrityDesc; + @ApiModelProperty("扫描生产软件-视频脑电图号") + private String bColumn1; + @ApiModelProperty("扫描生产软件-ep号") + private String bColumn2; + @ApiModelProperty("茂名流水号") + private String bColumn3; + @ApiModelProperty("扫描生产软件-门诊号") + private String bColumn4; + @ApiModelProperty("b_column5") + private String bColumn5; + @ApiModelProperty("b_column6") + private Integer bColumn6; + @ApiModelProperty("b_column7") + private Integer bColumn7; + @ApiModelProperty("b_column8") + private Integer bColumn8; + @ApiModelProperty("b_column9") + private Integer bColumn9; + @ApiModelProperty("b_column10") + private Integer bColumn10; + @ApiModelProperty("性别名称") + private String sexName; + @ApiModelProperty("记账号(省中医患者主索引id)") + private String jzh; + @ApiModelProperty("患者主索引号(省中医记账号)") + private String empId; + @ApiModelProperty("visit_type_code") + private String visitTypeCode; + @ApiModelProperty("visit_type_name") + private String visitTypeName; + @ApiModelProperty("tcm_diag_code") + private String tcmDiagCode; + @ApiModelProperty("tcm_diag_name") + private String tcmDiagName; + @ApiModelProperty("ward_palce") + private String wardPalce; + @ApiModelProperty("床号位") + private String bedNum; + @ApiModelProperty("接收时间,目前澄海人医 使用") + private Date receiveTime; + @ApiModelProperty("状态 1:封存,3:锁定") + private Integer state; + @ApiModelProperty("是否扫描 2否 1是") + private String scanSource; + @ApiModelProperty("暂缓审核配置id ,隔开") + private String cqcDeferAuditConfigId; + @ApiModelProperty("病案是否批注 0:没有批注 1:有批注") + private Integer commentStatus; + @ApiModelProperty("医生提交状态(0:未提交,1:已提交)") + private Integer doctorState; + @ApiModelProperty("护士提交状态") + private Integer nurseState; + @ApiModelProperty("纸质签收 0:未签收 1:已签收") + private Integer cqcSigninfo; + @ApiModelProperty("责任护士") + private String dutyNurse; + @ApiModelProperty("审核状态 0:否 1:是") + private Integer tagState; + @ApiModelProperty("是否手术") + private String isOper; + @ApiModelProperty("现住址") + private String homeAddr; + @ApiModelProperty("损伤中毒") + private String poisoningName; + @ApiModelProperty("病理诊断") + private String pathologyName; + @ApiModelProperty("其他诊断") + private String otherDiagName; + @ApiModelProperty("联系方式") + private String homeTel; + + public void setIsDead(String isDead) { + this.isDead = isDead != null && isDead.toLowerCase().equals("y") ? 1 : 0; + } + + public Integer getIsDead() { + return this.isDead; + } + + public String getPatientId() { + return this.patientId; + } + + public Integer getAdmissTimes() { + return this.admissTimes; + } + + public String getInpatientNo() { + return this.inpatientNo; + } + + public String getAdmissId() { + return this.admissId; + } + + public String getName() { + return this.name; + } + + public String getPh() { + return this.ph; + } + + public String getNameSpell() { + return this.nameSpell; + } + + public String getSex() { + return this.sex; + } + + public Integer getAge() { + return this.age; + } + + public Integer getAgeMonth() { + return this.ageMonth; + } + + public Integer getAgeDay() { + return this.ageDay; + } + + public String getIdCard() { + return this.idCard; + } + + public String getTelphone() { + return this.telphone; + } + + public Date getAdmissDate() { + return this.admissDate; + } + + public String getAdmissDept() { + return this.admissDept; + } + + public String getAdmissDeptName() { + return this.admissDeptName; + } + + public Date getDisDate() { + return this.disDate; + } + + public String getDisDept() { + return this.disDept; + } + + public String getDisDeptName() { + return this.disDeptName; + } + + public Integer getAdmissDays() { + return this.admissDays; + } + + public String getAttending() { + return this.attending; + } + + public String getAttendingName() { + return this.attendingName; + } + + public String getMainDiagCode() { + return this.mainDiagCode; + } + + public String getMainDiagName() { + return this.mainDiagName; + } + + public String getMainOperateCode() { + return this.mainOperateCode; + } + + public String getMainOperateName() { + return this.mainOperateName; + } + + public Integer getIsCancel() { + return this.isCancel; + } + + public Date getSignTime() { + return this.signTime; + } + + public Date getCreateTime() { + return this.createTime; + } + + public Date getUpdateTime() { + return this.updateTime; + } + + public Integer getIsArchive() { + return this.isArchive; + } + + public Date getArchiveTime() { + return this.archiveTime; + } + + public Integer getFileSource() { + return this.fileSource; + } + + public String getIntegrityDesc() { + return this.integrityDesc; + } + + public String getBColumn1() { + return this.bColumn1; + } + + public String getBColumn2() { + return this.bColumn2; + } + + public String getBColumn3() { + return this.bColumn3; + } + + public String getBColumn4() { + return this.bColumn4; + } + + public String getBColumn5() { + return this.bColumn5; + } + + public Integer getBColumn6() { + return this.bColumn6; + } + + public Integer getBColumn7() { + return this.bColumn7; + } + + public Integer getBColumn8() { + return this.bColumn8; + } + + public Integer getBColumn9() { + return this.bColumn9; + } + + public Integer getBColumn10() { + return this.bColumn10; + } + + public String getSexName() { + return this.sexName; + } + + public String getJzh() { + return this.jzh; + } + + public String getEmpId() { + return this.empId; + } + + public String getVisitTypeCode() { + return this.visitTypeCode; + } + + public String getVisitTypeName() { + return this.visitTypeName; + } + + public String getTcmDiagCode() { + return this.tcmDiagCode; + } + + public String getTcmDiagName() { + return this.tcmDiagName; + } + + public String getWardPalce() { + return this.wardPalce; + } + + public String getBedNum() { + return this.bedNum; + } + + public Date getReceiveTime() { + return this.receiveTime; + } + + public Integer getState() { + return this.state; + } + + public String getScanSource() { + return this.scanSource; + } + + public String getCqcDeferAuditConfigId() { + return this.cqcDeferAuditConfigId; + } + + public Integer getCommentStatus() { + return this.commentStatus; + } + + public Integer getDoctorState() { + return this.doctorState; + } + + public Integer getNurseState() { + return this.nurseState; + } + + public Integer getCqcSigninfo() { + return this.cqcSigninfo; + } + + public String getDutyNurse() { + return this.dutyNurse; + } + + public Integer getTagState() { + return this.tagState; + } + + public String getIsOper() { + return this.isOper; + } + + public String getHomeAddr() { + return this.homeAddr; + } + + public String getPoisoningName() { + return this.poisoningName; + } + + public String getPathologyName() { + return this.pathologyName; + } + + public String getOtherDiagName() { + return this.otherDiagName; + } + + public String getHomeTel() { + return this.homeTel; + } + + public void setPatientId(final String patientId) { + this.patientId = patientId; + } + + public void setAdmissTimes(final Integer admissTimes) { + this.admissTimes = admissTimes; + } + + public void setInpatientNo(final String inpatientNo) { + this.inpatientNo = inpatientNo; + } + + public void setAdmissId(final String admissId) { + this.admissId = admissId; + } + + public void setName(final String name) { + this.name = name; + } + + public void setPh(final String ph) { + this.ph = ph; + } + + public void setNameSpell(final String nameSpell) { + this.nameSpell = nameSpell; + } + + public void setSex(final String sex) { + this.sex = sex; + } + + public void setAge(final Integer age) { + this.age = age; + } + + public void setAgeMonth(final Integer ageMonth) { + this.ageMonth = ageMonth; + } + + public void setAgeDay(final Integer ageDay) { + this.ageDay = ageDay; + } + + public void setIdCard(final String idCard) { + this.idCard = idCard; + } + + public void setTelphone(final String telphone) { + this.telphone = telphone; + } + + public void setAdmissDate(final Date admissDate) { + this.admissDate = admissDate; + } + + public void setAdmissDept(final String admissDept) { + this.admissDept = admissDept; + } + + public void setAdmissDeptName(final String admissDeptName) { + this.admissDeptName = admissDeptName; + } + + public void setDisDate(final Date disDate) { + this.disDate = disDate; + } + + public void setDisDept(final String disDept) { + this.disDept = disDept; + } + + public void setDisDeptName(final String disDeptName) { + this.disDeptName = disDeptName; + } + + public void setAdmissDays(final Integer admissDays) { + this.admissDays = admissDays; + } + + public void setAttending(final String attending) { + this.attending = attending; + } + + public void setAttendingName(final String attendingName) { + this.attendingName = attendingName; + } + + public void setMainDiagCode(final String mainDiagCode) { + this.mainDiagCode = mainDiagCode; + } + + public void setMainDiagName(final String mainDiagName) { + this.mainDiagName = mainDiagName; + } + + public void setMainOperateCode(final String mainOperateCode) { + this.mainOperateCode = mainOperateCode; + } + + public void setMainOperateName(final String mainOperateName) { + this.mainOperateName = mainOperateName; + } + + public void setIsCancel(final Integer isCancel) { + this.isCancel = isCancel; + } + + public void setSignTime(final Date signTime) { + this.signTime = signTime; + } + + public void setCreateTime(final Date createTime) { + this.createTime = createTime; + } + + public void setUpdateTime(final Date updateTime) { + this.updateTime = updateTime; + } + + public void setIsArchive(final Integer isArchive) { + this.isArchive = isArchive; + } + + public void setArchiveTime(final Date archiveTime) { + this.archiveTime = archiveTime; + } + + public void setFileSource(final Integer fileSource) { + this.fileSource = fileSource; + } + + public void setIntegrityDesc(final String integrityDesc) { + this.integrityDesc = integrityDesc; + } + + public void setBColumn1(final String bColumn1) { + this.bColumn1 = bColumn1; + } + + public void setBColumn2(final String bColumn2) { + this.bColumn2 = bColumn2; + } + + public void setBColumn3(final String bColumn3) { + this.bColumn3 = bColumn3; + } + + public void setBColumn4(final String bColumn4) { + this.bColumn4 = bColumn4; + } + + public void setBColumn5(final String bColumn5) { + this.bColumn5 = bColumn5; + } + + public void setBColumn6(final Integer bColumn6) { + this.bColumn6 = bColumn6; + } + + public void setBColumn7(final Integer bColumn7) { + this.bColumn7 = bColumn7; + } + + public void setBColumn8(final Integer bColumn8) { + this.bColumn8 = bColumn8; + } + + public void setBColumn9(final Integer bColumn9) { + this.bColumn9 = bColumn9; + } + + public void setBColumn10(final Integer bColumn10) { + this.bColumn10 = bColumn10; + } + + public void setSexName(final String sexName) { + this.sexName = sexName; + } + + public void setJzh(final String jzh) { + this.jzh = jzh; + } + + public void setEmpId(final String empId) { + this.empId = empId; + } + + public void setVisitTypeCode(final String visitTypeCode) { + this.visitTypeCode = visitTypeCode; + } + + public void setVisitTypeName(final String visitTypeName) { + this.visitTypeName = visitTypeName; + } + + public void setTcmDiagCode(final String tcmDiagCode) { + this.tcmDiagCode = tcmDiagCode; + } + + public void setTcmDiagName(final String tcmDiagName) { + this.tcmDiagName = tcmDiagName; + } + + public void setWardPalce(final String wardPalce) { + this.wardPalce = wardPalce; + } + + public void setBedNum(final String bedNum) { + this.bedNum = bedNum; + } + + public void setReceiveTime(final Date receiveTime) { + this.receiveTime = receiveTime; + } + + public void setState(final Integer state) { + this.state = state; + } + + public void setScanSource(final String scanSource) { + this.scanSource = scanSource; + } + + public void setCqcDeferAuditConfigId(final String cqcDeferAuditConfigId) { + this.cqcDeferAuditConfigId = cqcDeferAuditConfigId; + } + + public void setCommentStatus(final Integer commentStatus) { + this.commentStatus = commentStatus; + } + + public void setDoctorState(final Integer doctorState) { + this.doctorState = doctorState; + } + + public void setNurseState(final Integer nurseState) { + this.nurseState = nurseState; + } + + public void setCqcSigninfo(final Integer cqcSigninfo) { + this.cqcSigninfo = cqcSigninfo; + } + + public void setDutyNurse(final String dutyNurse) { + this.dutyNurse = dutyNurse; + } + + public void setTagState(final Integer tagState) { + this.tagState = tagState; + } + + public void setIsOper(final String isOper) { + this.isOper = isOper; + } + + public void setHomeAddr(final String homeAddr) { + this.homeAddr = homeAddr; + } + + public void setPoisoningName(final String poisoningName) { + this.poisoningName = poisoningName; + } + + public void setPathologyName(final String pathologyName) { + this.pathologyName = pathologyName; + } + + public void setOtherDiagName(final String otherDiagName) { + this.otherDiagName = otherDiagName; + } + + public void setHomeTel(final String homeTel) { + this.homeTel = homeTel; + } + + public String toString() { + return "TBasic(patientId=" + this.getPatientId() + ", admissTimes=" + this.getAdmissTimes() + ", inpatientNo=" + this.getInpatientNo() + ", admissId=" + this.getAdmissId() + ", name=" + this.getName() + ", ph=" + this.getPh() + ", nameSpell=" + this.getNameSpell() + ", sex=" + this.getSex() + ", age=" + this.getAge() + ", ageMonth=" + this.getAgeMonth() + ", ageDay=" + this.getAgeDay() + ", idCard=" + this.getIdCard() + ", telphone=" + this.getTelphone() + ", admissDate=" + this.getAdmissDate() + ", admissDept=" + this.getAdmissDept() + ", admissDeptName=" + this.getAdmissDeptName() + ", disDate=" + this.getDisDate() + ", disDept=" + this.getDisDept() + ", disDeptName=" + this.getDisDeptName() + ", admissDays=" + this.getAdmissDays() + ", attending=" + this.getAttending() + ", attendingName=" + this.getAttendingName() + ", mainDiagCode=" + this.getMainDiagCode() + ", mainDiagName=" + this.getMainDiagName() + ", mainOperateCode=" + this.getMainOperateCode() + ", mainOperateName=" + this.getMainOperateName() + ", isDead=" + this.getIsDead() + ", isCancel=" + this.getIsCancel() + ", signTime=" + this.getSignTime() + ", createTime=" + this.getCreateTime() + ", updateTime=" + this.getUpdateTime() + ", isArchive=" + this.getIsArchive() + ", archiveTime=" + this.getArchiveTime() + ", fileSource=" + this.getFileSource() + ", integrityDesc=" + this.getIntegrityDesc() + ", bColumn1=" + this.getBColumn1() + ", bColumn2=" + this.getBColumn2() + ", bColumn3=" + this.getBColumn3() + ", bColumn4=" + this.getBColumn4() + ", bColumn5=" + this.getBColumn5() + ", bColumn6=" + this.getBColumn6() + ", bColumn7=" + this.getBColumn7() + ", bColumn8=" + this.getBColumn8() + ", bColumn9=" + this.getBColumn9() + ", bColumn10=" + this.getBColumn10() + ", sexName=" + this.getSexName() + ", jzh=" + this.getJzh() + ", empId=" + this.getEmpId() + ", visitTypeCode=" + this.getVisitTypeCode() + ", visitTypeName=" + this.getVisitTypeName() + ", tcmDiagCode=" + this.getTcmDiagCode() + ", tcmDiagName=" + this.getTcmDiagName() + ", wardPalce=" + this.getWardPalce() + ", bedNum=" + this.getBedNum() + ", receiveTime=" + this.getReceiveTime() + ", state=" + this.getState() + ", scanSource=" + this.getScanSource() + ", cqcDeferAuditConfigId=" + this.getCqcDeferAuditConfigId() + ", commentStatus=" + this.getCommentStatus() + ", doctorState=" + this.getDoctorState() + ", nurseState=" + this.getNurseState() + ", cqcSigninfo=" + this.getCqcSigninfo() + ", dutyNurse=" + this.getDutyNurse() + ", tagState=" + this.getTagState() + ", isOper=" + this.getIsOper() + ", homeAddr=" + this.getHomeAddr() + ", poisoningName=" + this.getPoisoningName() + ", pathologyName=" + this.getPathologyName() + ", otherDiagName=" + this.getOtherDiagName() + ", homeTel=" + this.getHomeTel() + ")"; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof TBasic)) { + return false; + } else { + TBasic other = (TBasic)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$patientId = this.getPatientId(); + Object other$patientId = other.getPatientId(); + if (this$patientId == null) { + if (other$patientId != null) { + return false; + } + } else if (!this$patientId.equals(other$patientId)) { + return false; + } + + Object this$admissTimes = this.getAdmissTimes(); + Object other$admissTimes = other.getAdmissTimes(); + if (this$admissTimes == null) { + if (other$admissTimes != null) { + return false; + } + } else if (!this$admissTimes.equals(other$admissTimes)) { + 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$admissId = this.getAdmissId(); + Object other$admissId = other.getAdmissId(); + if (this$admissId == null) { + if (other$admissId != null) { + return false; + } + } else if (!this$admissId.equals(other$admissId)) { + return false; + } + + Object this$name = this.getName(); + Object other$name = other.getName(); + if (this$name == null) { + if (other$name != null) { + return false; + } + } else if (!this$name.equals(other$name)) { + return false; + } + + Object this$ph = this.getPh(); + Object other$ph = other.getPh(); + if (this$ph == null) { + if (other$ph != null) { + return false; + } + } else if (!this$ph.equals(other$ph)) { + return false; + } + + Object this$nameSpell = this.getNameSpell(); + Object other$nameSpell = other.getNameSpell(); + if (this$nameSpell == null) { + if (other$nameSpell != null) { + return false; + } + } else if (!this$nameSpell.equals(other$nameSpell)) { + return false; + } + + Object this$sex = this.getSex(); + Object other$sex = other.getSex(); + if (this$sex == null) { + if (other$sex != null) { + return false; + } + } else if (!this$sex.equals(other$sex)) { + return false; + } + + Object this$age = this.getAge(); + Object other$age = other.getAge(); + if (this$age == null) { + if (other$age != null) { + return false; + } + } else if (!this$age.equals(other$age)) { + return false; + } + + Object this$ageMonth = this.getAgeMonth(); + Object other$ageMonth = other.getAgeMonth(); + if (this$ageMonth == null) { + if (other$ageMonth != null) { + return false; + } + } else if (!this$ageMonth.equals(other$ageMonth)) { + return false; + } + + Object this$ageDay = this.getAgeDay(); + Object other$ageDay = other.getAgeDay(); + if (this$ageDay == null) { + if (other$ageDay != null) { + return false; + } + } else if (!this$ageDay.equals(other$ageDay)) { + return false; + } + + Object this$idCard = this.getIdCard(); + Object other$idCard = other.getIdCard(); + if (this$idCard == null) { + if (other$idCard != null) { + return false; + } + } else if (!this$idCard.equals(other$idCard)) { + return false; + } + + Object this$telphone = this.getTelphone(); + Object other$telphone = other.getTelphone(); + if (this$telphone == null) { + if (other$telphone != null) { + return false; + } + } else if (!this$telphone.equals(other$telphone)) { + return false; + } + + Object this$admissDate = this.getAdmissDate(); + Object other$admissDate = other.getAdmissDate(); + if (this$admissDate == null) { + if (other$admissDate != null) { + return false; + } + } else if (!this$admissDate.equals(other$admissDate)) { + return false; + } + + Object this$admissDept = this.getAdmissDept(); + Object other$admissDept = other.getAdmissDept(); + if (this$admissDept == null) { + if (other$admissDept != null) { + return false; + } + } else if (!this$admissDept.equals(other$admissDept)) { + return false; + } + + Object this$admissDeptName = this.getAdmissDeptName(); + Object other$admissDeptName = other.getAdmissDeptName(); + if (this$admissDeptName == null) { + if (other$admissDeptName != null) { + return false; + } + } else if (!this$admissDeptName.equals(other$admissDeptName)) { + return false; + } + + Object this$disDate = this.getDisDate(); + Object other$disDate = other.getDisDate(); + if (this$disDate == null) { + if (other$disDate != null) { + return false; + } + } else if (!this$disDate.equals(other$disDate)) { + return false; + } + + Object this$disDept = this.getDisDept(); + Object other$disDept = other.getDisDept(); + if (this$disDept == null) { + if (other$disDept != null) { + return false; + } + } else if (!this$disDept.equals(other$disDept)) { + return false; + } + + Object this$disDeptName = this.getDisDeptName(); + Object other$disDeptName = other.getDisDeptName(); + if (this$disDeptName == null) { + if (other$disDeptName != null) { + return false; + } + } else if (!this$disDeptName.equals(other$disDeptName)) { + return false; + } + + Object this$admissDays = this.getAdmissDays(); + Object other$admissDays = other.getAdmissDays(); + if (this$admissDays == null) { + if (other$admissDays != null) { + return false; + } + } else if (!this$admissDays.equals(other$admissDays)) { + return false; + } + + Object this$attending = this.getAttending(); + Object other$attending = other.getAttending(); + if (this$attending == null) { + if (other$attending != null) { + return false; + } + } else if (!this$attending.equals(other$attending)) { + return false; + } + + Object this$attendingName = this.getAttendingName(); + Object other$attendingName = other.getAttendingName(); + if (this$attendingName == null) { + if (other$attendingName != null) { + return false; + } + } else if (!this$attendingName.equals(other$attendingName)) { + return false; + } + + Object this$mainDiagCode = this.getMainDiagCode(); + Object other$mainDiagCode = other.getMainDiagCode(); + if (this$mainDiagCode == null) { + if (other$mainDiagCode != null) { + return false; + } + } else if (!this$mainDiagCode.equals(other$mainDiagCode)) { + return false; + } + + Object this$mainDiagName = this.getMainDiagName(); + Object other$mainDiagName = other.getMainDiagName(); + if (this$mainDiagName == null) { + if (other$mainDiagName != null) { + return false; + } + } else if (!this$mainDiagName.equals(other$mainDiagName)) { + return false; + } + + Object this$mainOperateCode = this.getMainOperateCode(); + Object other$mainOperateCode = other.getMainOperateCode(); + if (this$mainOperateCode == null) { + if (other$mainOperateCode != null) { + return false; + } + } else if (!this$mainOperateCode.equals(other$mainOperateCode)) { + return false; + } + + Object this$mainOperateName = this.getMainOperateName(); + Object other$mainOperateName = other.getMainOperateName(); + if (this$mainOperateName == null) { + if (other$mainOperateName != null) { + return false; + } + } else if (!this$mainOperateName.equals(other$mainOperateName)) { + return false; + } + + Object this$isDead = this.getIsDead(); + Object other$isDead = other.getIsDead(); + if (this$isDead == null) { + if (other$isDead != null) { + return false; + } + } else if (!this$isDead.equals(other$isDead)) { + return false; + } + + Object this$isCancel = this.getIsCancel(); + Object other$isCancel = other.getIsCancel(); + if (this$isCancel == null) { + if (other$isCancel != null) { + return false; + } + } else if (!this$isCancel.equals(other$isCancel)) { + return false; + } + + Object this$signTime = this.getSignTime(); + Object other$signTime = other.getSignTime(); + if (this$signTime == null) { + if (other$signTime != null) { + return false; + } + } else if (!this$signTime.equals(other$signTime)) { + 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; + } + + Object this$updateTime = this.getUpdateTime(); + Object other$updateTime = other.getUpdateTime(); + if (this$updateTime == null) { + if (other$updateTime != null) { + return false; + } + } else if (!this$updateTime.equals(other$updateTime)) { + return false; + } + + Object this$isArchive = this.getIsArchive(); + Object other$isArchive = other.getIsArchive(); + if (this$isArchive == null) { + if (other$isArchive != null) { + return false; + } + } else if (!this$isArchive.equals(other$isArchive)) { + return false; + } + + Object this$archiveTime = this.getArchiveTime(); + Object other$archiveTime = other.getArchiveTime(); + if (this$archiveTime == null) { + if (other$archiveTime != null) { + return false; + } + } else if (!this$archiveTime.equals(other$archiveTime)) { + return false; + } + + Object this$fileSource = this.getFileSource(); + Object other$fileSource = other.getFileSource(); + if (this$fileSource == null) { + if (other$fileSource != null) { + return false; + } + } else if (!this$fileSource.equals(other$fileSource)) { + return false; + } + + Object this$integrityDesc = this.getIntegrityDesc(); + Object other$integrityDesc = other.getIntegrityDesc(); + if (this$integrityDesc == null) { + if (other$integrityDesc != null) { + return false; + } + } else if (!this$integrityDesc.equals(other$integrityDesc)) { + return false; + } + + Object this$bColumn1 = this.getBColumn1(); + Object other$bColumn1 = other.getBColumn1(); + if (this$bColumn1 == null) { + if (other$bColumn1 != null) { + return false; + } + } else if (!this$bColumn1.equals(other$bColumn1)) { + return false; + } + + Object this$bColumn2 = this.getBColumn2(); + Object other$bColumn2 = other.getBColumn2(); + if (this$bColumn2 == null) { + if (other$bColumn2 != null) { + return false; + } + } else if (!this$bColumn2.equals(other$bColumn2)) { + return false; + } + + Object this$bColumn3 = this.getBColumn3(); + Object other$bColumn3 = other.getBColumn3(); + if (this$bColumn3 == null) { + if (other$bColumn3 != null) { + return false; + } + } else if (!this$bColumn3.equals(other$bColumn3)) { + return false; + } + + Object this$bColumn4 = this.getBColumn4(); + Object other$bColumn4 = other.getBColumn4(); + if (this$bColumn4 == null) { + if (other$bColumn4 != null) { + return false; + } + } else if (!this$bColumn4.equals(other$bColumn4)) { + return false; + } + + Object this$bColumn5 = this.getBColumn5(); + Object other$bColumn5 = other.getBColumn5(); + if (this$bColumn5 == null) { + if (other$bColumn5 != null) { + return false; + } + } else if (!this$bColumn5.equals(other$bColumn5)) { + return false; + } + + Object this$bColumn6 = this.getBColumn6(); + Object other$bColumn6 = other.getBColumn6(); + if (this$bColumn6 == null) { + if (other$bColumn6 != null) { + return false; + } + } else if (!this$bColumn6.equals(other$bColumn6)) { + return false; + } + + Object this$bColumn7 = this.getBColumn7(); + Object other$bColumn7 = other.getBColumn7(); + if (this$bColumn7 == null) { + if (other$bColumn7 != null) { + return false; + } + } else if (!this$bColumn7.equals(other$bColumn7)) { + return false; + } + + Object this$bColumn8 = this.getBColumn8(); + Object other$bColumn8 = other.getBColumn8(); + if (this$bColumn8 == null) { + if (other$bColumn8 != null) { + return false; + } + } else if (!this$bColumn8.equals(other$bColumn8)) { + return false; + } + + Object this$bColumn9 = this.getBColumn9(); + Object other$bColumn9 = other.getBColumn9(); + if (this$bColumn9 == null) { + if (other$bColumn9 != null) { + return false; + } + } else if (!this$bColumn9.equals(other$bColumn9)) { + return false; + } + + Object this$bColumn10 = this.getBColumn10(); + Object other$bColumn10 = other.getBColumn10(); + if (this$bColumn10 == null) { + if (other$bColumn10 != null) { + return false; + } + } else if (!this$bColumn10.equals(other$bColumn10)) { + return false; + } + + Object this$sexName = this.getSexName(); + Object other$sexName = other.getSexName(); + if (this$sexName == null) { + if (other$sexName != null) { + return false; + } + } else if (!this$sexName.equals(other$sexName)) { + 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$empId = this.getEmpId(); + Object other$empId = other.getEmpId(); + if (this$empId == null) { + if (other$empId != null) { + return false; + } + } else if (!this$empId.equals(other$empId)) { + return false; + } + + Object this$visitTypeCode = this.getVisitTypeCode(); + Object other$visitTypeCode = other.getVisitTypeCode(); + if (this$visitTypeCode == null) { + if (other$visitTypeCode != null) { + return false; + } + } else if (!this$visitTypeCode.equals(other$visitTypeCode)) { + return false; + } + + Object this$visitTypeName = this.getVisitTypeName(); + Object other$visitTypeName = other.getVisitTypeName(); + if (this$visitTypeName == null) { + if (other$visitTypeName != null) { + return false; + } + } else if (!this$visitTypeName.equals(other$visitTypeName)) { + return false; + } + + Object this$tcmDiagCode = this.getTcmDiagCode(); + Object other$tcmDiagCode = other.getTcmDiagCode(); + if (this$tcmDiagCode == null) { + if (other$tcmDiagCode != null) { + return false; + } + } else if (!this$tcmDiagCode.equals(other$tcmDiagCode)) { + return false; + } + + Object this$tcmDiagName = this.getTcmDiagName(); + Object other$tcmDiagName = other.getTcmDiagName(); + if (this$tcmDiagName == null) { + if (other$tcmDiagName != null) { + return false; + } + } else if (!this$tcmDiagName.equals(other$tcmDiagName)) { + return false; + } + + Object this$wardPalce = this.getWardPalce(); + Object other$wardPalce = other.getWardPalce(); + if (this$wardPalce == null) { + if (other$wardPalce != null) { + return false; + } + } else if (!this$wardPalce.equals(other$wardPalce)) { + return false; + } + + Object this$bedNum = this.getBedNum(); + Object other$bedNum = other.getBedNum(); + if (this$bedNum == null) { + if (other$bedNum != null) { + return false; + } + } else if (!this$bedNum.equals(other$bedNum)) { + return false; + } + + Object this$receiveTime = this.getReceiveTime(); + Object other$receiveTime = other.getReceiveTime(); + if (this$receiveTime == null) { + if (other$receiveTime != null) { + return false; + } + } else if (!this$receiveTime.equals(other$receiveTime)) { + 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$scanSource = this.getScanSource(); + Object other$scanSource = other.getScanSource(); + if (this$scanSource == null) { + if (other$scanSource != null) { + return false; + } + } else if (!this$scanSource.equals(other$scanSource)) { + return false; + } + + Object this$cqcDeferAuditConfigId = this.getCqcDeferAuditConfigId(); + Object other$cqcDeferAuditConfigId = other.getCqcDeferAuditConfigId(); + if (this$cqcDeferAuditConfigId == null) { + if (other$cqcDeferAuditConfigId != null) { + return false; + } + } else if (!this$cqcDeferAuditConfigId.equals(other$cqcDeferAuditConfigId)) { + return false; + } + + Object this$commentStatus = this.getCommentStatus(); + Object other$commentStatus = other.getCommentStatus(); + if (this$commentStatus == null) { + if (other$commentStatus != null) { + return false; + } + } else if (!this$commentStatus.equals(other$commentStatus)) { + return false; + } + + Object this$doctorState = this.getDoctorState(); + Object other$doctorState = other.getDoctorState(); + if (this$doctorState == null) { + if (other$doctorState != null) { + return false; + } + } else if (!this$doctorState.equals(other$doctorState)) { + return false; + } + + Object this$nurseState = this.getNurseState(); + Object other$nurseState = other.getNurseState(); + if (this$nurseState == null) { + if (other$nurseState != null) { + return false; + } + } else if (!this$nurseState.equals(other$nurseState)) { + return false; + } + + Object this$cqcSigninfo = this.getCqcSigninfo(); + Object other$cqcSigninfo = other.getCqcSigninfo(); + if (this$cqcSigninfo == null) { + if (other$cqcSigninfo != null) { + return false; + } + } else if (!this$cqcSigninfo.equals(other$cqcSigninfo)) { + return false; + } + + Object this$dutyNurse = this.getDutyNurse(); + Object other$dutyNurse = other.getDutyNurse(); + if (this$dutyNurse == null) { + if (other$dutyNurse != null) { + return false; + } + } else if (!this$dutyNurse.equals(other$dutyNurse)) { + return false; + } + + Object this$tagState = this.getTagState(); + Object other$tagState = other.getTagState(); + if (this$tagState == null) { + if (other$tagState != null) { + return false; + } + } else if (!this$tagState.equals(other$tagState)) { + return false; + } + + Object this$isOper = this.getIsOper(); + Object other$isOper = other.getIsOper(); + if (this$isOper == null) { + if (other$isOper != null) { + return false; + } + } else if (!this$isOper.equals(other$isOper)) { + return false; + } + + Object this$homeAddr = this.getHomeAddr(); + Object other$homeAddr = other.getHomeAddr(); + if (this$homeAddr == null) { + if (other$homeAddr != null) { + return false; + } + } else if (!this$homeAddr.equals(other$homeAddr)) { + return false; + } + + Object this$poisoningName = this.getPoisoningName(); + Object other$poisoningName = other.getPoisoningName(); + if (this$poisoningName == null) { + if (other$poisoningName != null) { + return false; + } + } else if (!this$poisoningName.equals(other$poisoningName)) { + return false; + } + + Object this$pathologyName = this.getPathologyName(); + Object other$pathologyName = other.getPathologyName(); + if (this$pathologyName == null) { + if (other$pathologyName != null) { + return false; + } + } else if (!this$pathologyName.equals(other$pathologyName)) { + return false; + } + + Object this$otherDiagName = this.getOtherDiagName(); + Object other$otherDiagName = other.getOtherDiagName(); + if (this$otherDiagName == null) { + if (other$otherDiagName != null) { + return false; + } + } else if (!this$otherDiagName.equals(other$otherDiagName)) { + return false; + } + + Object this$homeTel = this.getHomeTel(); + Object other$homeTel = other.getHomeTel(); + if (this$homeTel == null) { + if (other$homeTel != null) { + return false; + } + } else if (!this$homeTel.equals(other$homeTel)) { + return false; + } + + return true; + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof TBasic; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $patientId = this.getPatientId(); + result = result * 59 + ($patientId == null ? 43 : $patientId.hashCode()); + Object $admissTimes = this.getAdmissTimes(); + result = result * 59 + ($admissTimes == null ? 43 : $admissTimes.hashCode()); + Object $inpatientNo = this.getInpatientNo(); + result = result * 59 + ($inpatientNo == null ? 43 : $inpatientNo.hashCode()); + Object $admissId = this.getAdmissId(); + result = result * 59 + ($admissId == null ? 43 : $admissId.hashCode()); + Object $name = this.getName(); + result = result * 59 + ($name == null ? 43 : $name.hashCode()); + Object $ph = this.getPh(); + result = result * 59 + ($ph == null ? 43 : $ph.hashCode()); + Object $nameSpell = this.getNameSpell(); + result = result * 59 + ($nameSpell == null ? 43 : $nameSpell.hashCode()); + Object $sex = this.getSex(); + result = result * 59 + ($sex == null ? 43 : $sex.hashCode()); + Object $age = this.getAge(); + result = result * 59 + ($age == null ? 43 : $age.hashCode()); + Object $ageMonth = this.getAgeMonth(); + result = result * 59 + ($ageMonth == null ? 43 : $ageMonth.hashCode()); + Object $ageDay = this.getAgeDay(); + result = result * 59 + ($ageDay == null ? 43 : $ageDay.hashCode()); + Object $idCard = this.getIdCard(); + result = result * 59 + ($idCard == null ? 43 : $idCard.hashCode()); + Object $telphone = this.getTelphone(); + result = result * 59 + ($telphone == null ? 43 : $telphone.hashCode()); + Object $admissDate = this.getAdmissDate(); + result = result * 59 + ($admissDate == null ? 43 : $admissDate.hashCode()); + Object $admissDept = this.getAdmissDept(); + result = result * 59 + ($admissDept == null ? 43 : $admissDept.hashCode()); + Object $admissDeptName = this.getAdmissDeptName(); + result = result * 59 + ($admissDeptName == null ? 43 : $admissDeptName.hashCode()); + Object $disDate = this.getDisDate(); + result = result * 59 + ($disDate == null ? 43 : $disDate.hashCode()); + Object $disDept = this.getDisDept(); + result = result * 59 + ($disDept == null ? 43 : $disDept.hashCode()); + Object $disDeptName = this.getDisDeptName(); + result = result * 59 + ($disDeptName == null ? 43 : $disDeptName.hashCode()); + Object $admissDays = this.getAdmissDays(); + result = result * 59 + ($admissDays == null ? 43 : $admissDays.hashCode()); + Object $attending = this.getAttending(); + result = result * 59 + ($attending == null ? 43 : $attending.hashCode()); + Object $attendingName = this.getAttendingName(); + result = result * 59 + ($attendingName == null ? 43 : $attendingName.hashCode()); + Object $mainDiagCode = this.getMainDiagCode(); + result = result * 59 + ($mainDiagCode == null ? 43 : $mainDiagCode.hashCode()); + Object $mainDiagName = this.getMainDiagName(); + result = result * 59 + ($mainDiagName == null ? 43 : $mainDiagName.hashCode()); + Object $mainOperateCode = this.getMainOperateCode(); + result = result * 59 + ($mainOperateCode == null ? 43 : $mainOperateCode.hashCode()); + Object $mainOperateName = this.getMainOperateName(); + result = result * 59 + ($mainOperateName == null ? 43 : $mainOperateName.hashCode()); + Object $isDead = this.getIsDead(); + result = result * 59 + ($isDead == null ? 43 : $isDead.hashCode()); + Object $isCancel = this.getIsCancel(); + result = result * 59 + ($isCancel == null ? 43 : $isCancel.hashCode()); + Object $signTime = this.getSignTime(); + result = result * 59 + ($signTime == null ? 43 : $signTime.hashCode()); + Object $createTime = this.getCreateTime(); + result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode()); + Object $updateTime = this.getUpdateTime(); + result = result * 59 + ($updateTime == null ? 43 : $updateTime.hashCode()); + Object $isArchive = this.getIsArchive(); + result = result * 59 + ($isArchive == null ? 43 : $isArchive.hashCode()); + Object $archiveTime = this.getArchiveTime(); + result = result * 59 + ($archiveTime == null ? 43 : $archiveTime.hashCode()); + Object $fileSource = this.getFileSource(); + result = result * 59 + ($fileSource == null ? 43 : $fileSource.hashCode()); + Object $integrityDesc = this.getIntegrityDesc(); + result = result * 59 + ($integrityDesc == null ? 43 : $integrityDesc.hashCode()); + Object $bColumn1 = this.getBColumn1(); + result = result * 59 + ($bColumn1 == null ? 43 : $bColumn1.hashCode()); + Object $bColumn2 = this.getBColumn2(); + result = result * 59 + ($bColumn2 == null ? 43 : $bColumn2.hashCode()); + Object $bColumn3 = this.getBColumn3(); + result = result * 59 + ($bColumn3 == null ? 43 : $bColumn3.hashCode()); + Object $bColumn4 = this.getBColumn4(); + result = result * 59 + ($bColumn4 == null ? 43 : $bColumn4.hashCode()); + Object $bColumn5 = this.getBColumn5(); + result = result * 59 + ($bColumn5 == null ? 43 : $bColumn5.hashCode()); + Object $bColumn6 = this.getBColumn6(); + result = result * 59 + ($bColumn6 == null ? 43 : $bColumn6.hashCode()); + Object $bColumn7 = this.getBColumn7(); + result = result * 59 + ($bColumn7 == null ? 43 : $bColumn7.hashCode()); + Object $bColumn8 = this.getBColumn8(); + result = result * 59 + ($bColumn8 == null ? 43 : $bColumn8.hashCode()); + Object $bColumn9 = this.getBColumn9(); + result = result * 59 + ($bColumn9 == null ? 43 : $bColumn9.hashCode()); + Object $bColumn10 = this.getBColumn10(); + result = result * 59 + ($bColumn10 == null ? 43 : $bColumn10.hashCode()); + Object $sexName = this.getSexName(); + result = result * 59 + ($sexName == null ? 43 : $sexName.hashCode()); + Object $jzh = this.getJzh(); + result = result * 59 + ($jzh == null ? 43 : $jzh.hashCode()); + Object $empId = this.getEmpId(); + result = result * 59 + ($empId == null ? 43 : $empId.hashCode()); + Object $visitTypeCode = this.getVisitTypeCode(); + result = result * 59 + ($visitTypeCode == null ? 43 : $visitTypeCode.hashCode()); + Object $visitTypeName = this.getVisitTypeName(); + result = result * 59 + ($visitTypeName == null ? 43 : $visitTypeName.hashCode()); + Object $tcmDiagCode = this.getTcmDiagCode(); + result = result * 59 + ($tcmDiagCode == null ? 43 : $tcmDiagCode.hashCode()); + Object $tcmDiagName = this.getTcmDiagName(); + result = result * 59 + ($tcmDiagName == null ? 43 : $tcmDiagName.hashCode()); + Object $wardPalce = this.getWardPalce(); + result = result * 59 + ($wardPalce == null ? 43 : $wardPalce.hashCode()); + Object $bedNum = this.getBedNum(); + result = result * 59 + ($bedNum == null ? 43 : $bedNum.hashCode()); + Object $receiveTime = this.getReceiveTime(); + result = result * 59 + ($receiveTime == null ? 43 : $receiveTime.hashCode()); + Object $state = this.getState(); + result = result * 59 + ($state == null ? 43 : $state.hashCode()); + Object $scanSource = this.getScanSource(); + result = result * 59 + ($scanSource == null ? 43 : $scanSource.hashCode()); + Object $cqcDeferAuditConfigId = this.getCqcDeferAuditConfigId(); + result = result * 59 + ($cqcDeferAuditConfigId == null ? 43 : $cqcDeferAuditConfigId.hashCode()); + Object $commentStatus = this.getCommentStatus(); + result = result * 59 + ($commentStatus == null ? 43 : $commentStatus.hashCode()); + Object $doctorState = this.getDoctorState(); + result = result * 59 + ($doctorState == null ? 43 : $doctorState.hashCode()); + Object $nurseState = this.getNurseState(); + result = result * 59 + ($nurseState == null ? 43 : $nurseState.hashCode()); + Object $cqcSigninfo = this.getCqcSigninfo(); + result = result * 59 + ($cqcSigninfo == null ? 43 : $cqcSigninfo.hashCode()); + Object $dutyNurse = this.getDutyNurse(); + result = result * 59 + ($dutyNurse == null ? 43 : $dutyNurse.hashCode()); + Object $tagState = this.getTagState(); + result = result * 59 + ($tagState == null ? 43 : $tagState.hashCode()); + Object $isOper = this.getIsOper(); + result = result * 59 + ($isOper == null ? 43 : $isOper.hashCode()); + Object $homeAddr = this.getHomeAddr(); + result = result * 59 + ($homeAddr == null ? 43 : $homeAddr.hashCode()); + Object $poisoningName = this.getPoisoningName(); + result = result * 59 + ($poisoningName == null ? 43 : $poisoningName.hashCode()); + Object $pathologyName = this.getPathologyName(); + result = result * 59 + ($pathologyName == null ? 43 : $pathologyName.hashCode()); + Object $otherDiagName = this.getOtherDiagName(); + result = result * 59 + ($otherDiagName == null ? 43 : $otherDiagName.hashCode()); + Object $homeTel = this.getHomeTel(); + result = result * 59 + ($homeTel == null ? 43 : $homeTel.hashCode()); + return result; + } +} diff --git a/src/main/java/com/docus/bgts/entity/TBasicExtend.java b/src/main/java/com/docus/bgts/entity/TBasicExtend.java new file mode 100644 index 0000000..acaa402 --- /dev/null +++ b/src/main/java/com/docus/bgts/entity/TBasicExtend.java @@ -0,0 +1,250 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.Date; + +@ApiModel( + value = "TBasicExtend对象", + description = "病案基本信息扩展表" +) +public class TBasicExtend { + @ApiModelProperty("病案主键") + @TableId( + value = "patient_id", + type = IdType.ASSIGN_ID + ) + private String patientId; + @ApiModelProperty("报销政策代码") + private String claimPolicyCode; + @ApiModelProperty("报销政策名称") + private String claimPolicyName; + @ApiModelProperty("医保结算类型代码") + private String mioSettleTypeCode; + @ApiModelProperty("医保结算类型名称") + private String mioSettleTypeName; + @ApiModelProperty("医生提交时间") + private Date doctorSubmitTime; + @ApiModelProperty("护理提交时间") + private Date nurseSubmitTime; + @ApiModelProperty("责任护士") + private String dutyNurse; + @ApiModelProperty("预住院流水号") + private String preJzh; + + public String getPatientId() { + return this.patientId; + } + + public String getClaimPolicyCode() { + return this.claimPolicyCode; + } + + public String getClaimPolicyName() { + return this.claimPolicyName; + } + + public String getMioSettleTypeCode() { + return this.mioSettleTypeCode; + } + + public String getMioSettleTypeName() { + return this.mioSettleTypeName; + } + + public Date getDoctorSubmitTime() { + return this.doctorSubmitTime; + } + + public Date getNurseSubmitTime() { + return this.nurseSubmitTime; + } + + public String getDutyNurse() { + return this.dutyNurse; + } + + public String getPreJzh() { + return this.preJzh; + } + + public void setPatientId(final String patientId) { + this.patientId = patientId; + } + + public void setClaimPolicyCode(final String claimPolicyCode) { + this.claimPolicyCode = claimPolicyCode; + } + + public void setClaimPolicyName(final String claimPolicyName) { + this.claimPolicyName = claimPolicyName; + } + + public void setMioSettleTypeCode(final String mioSettleTypeCode) { + this.mioSettleTypeCode = mioSettleTypeCode; + } + + public void setMioSettleTypeName(final String mioSettleTypeName) { + this.mioSettleTypeName = mioSettleTypeName; + } + + public void setDoctorSubmitTime(final Date doctorSubmitTime) { + this.doctorSubmitTime = doctorSubmitTime; + } + + public void setNurseSubmitTime(final Date nurseSubmitTime) { + this.nurseSubmitTime = nurseSubmitTime; + } + + public void setDutyNurse(final String dutyNurse) { + this.dutyNurse = dutyNurse; + } + + public void setPreJzh(final String preJzh) { + this.preJzh = preJzh; + } + + public String toString() { + return "TBasicExtend(patientId=" + this.getPatientId() + ", claimPolicyCode=" + this.getClaimPolicyCode() + ", claimPolicyName=" + this.getClaimPolicyName() + ", mioSettleTypeCode=" + this.getMioSettleTypeCode() + ", mioSettleTypeName=" + this.getMioSettleTypeName() + ", doctorSubmitTime=" + this.getDoctorSubmitTime() + ", nurseSubmitTime=" + this.getNurseSubmitTime() + ", dutyNurse=" + this.getDutyNurse() + ", preJzh=" + this.getPreJzh() + ")"; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof TBasicExtend)) { + return false; + } else { + TBasicExtend other = (TBasicExtend)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$patientId = this.getPatientId(); + Object other$patientId = other.getPatientId(); + if (this$patientId == null) { + if (other$patientId != null) { + return false; + } + } else if (!this$patientId.equals(other$patientId)) { + return false; + } + + Object this$claimPolicyCode = this.getClaimPolicyCode(); + Object other$claimPolicyCode = other.getClaimPolicyCode(); + if (this$claimPolicyCode == null) { + if (other$claimPolicyCode != null) { + return false; + } + } else if (!this$claimPolicyCode.equals(other$claimPolicyCode)) { + return false; + } + + Object this$claimPolicyName = this.getClaimPolicyName(); + Object other$claimPolicyName = other.getClaimPolicyName(); + if (this$claimPolicyName == null) { + if (other$claimPolicyName != null) { + return false; + } + } else if (!this$claimPolicyName.equals(other$claimPolicyName)) { + return false; + } + + Object this$mioSettleTypeCode = this.getMioSettleTypeCode(); + Object other$mioSettleTypeCode = other.getMioSettleTypeCode(); + if (this$mioSettleTypeCode == null) { + if (other$mioSettleTypeCode != null) { + return false; + } + } else if (!this$mioSettleTypeCode.equals(other$mioSettleTypeCode)) { + return false; + } + + Object this$mioSettleTypeName = this.getMioSettleTypeName(); + Object other$mioSettleTypeName = other.getMioSettleTypeName(); + if (this$mioSettleTypeName == null) { + if (other$mioSettleTypeName != null) { + return false; + } + } else if (!this$mioSettleTypeName.equals(other$mioSettleTypeName)) { + return false; + } + + Object this$doctorSubmitTime = this.getDoctorSubmitTime(); + Object other$doctorSubmitTime = other.getDoctorSubmitTime(); + if (this$doctorSubmitTime == null) { + if (other$doctorSubmitTime != null) { + return false; + } + } else if (!this$doctorSubmitTime.equals(other$doctorSubmitTime)) { + return false; + } + + Object this$nurseSubmitTime = this.getNurseSubmitTime(); + Object other$nurseSubmitTime = other.getNurseSubmitTime(); + if (this$nurseSubmitTime == null) { + if (other$nurseSubmitTime != null) { + return false; + } + } else if (!this$nurseSubmitTime.equals(other$nurseSubmitTime)) { + return false; + } + + Object this$dutyNurse = this.getDutyNurse(); + Object other$dutyNurse = other.getDutyNurse(); + if (this$dutyNurse == null) { + if (other$dutyNurse != null) { + return false; + } + } else if (!this$dutyNurse.equals(other$dutyNurse)) { + return false; + } + + Object this$preJzh = this.getPreJzh(); + Object other$preJzh = other.getPreJzh(); + if (this$preJzh == null) { + if (other$preJzh != null) { + return false; + } + } else if (!this$preJzh.equals(other$preJzh)) { + return false; + } + + return true; + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof TBasicExtend; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $patientId = this.getPatientId(); + result = result * 59 + ($patientId == null ? 43 : $patientId.hashCode()); + Object $claimPolicyCode = this.getClaimPolicyCode(); + result = result * 59 + ($claimPolicyCode == null ? 43 : $claimPolicyCode.hashCode()); + Object $claimPolicyName = this.getClaimPolicyName(); + result = result * 59 + ($claimPolicyName == null ? 43 : $claimPolicyName.hashCode()); + Object $mioSettleTypeCode = this.getMioSettleTypeCode(); + result = result * 59 + ($mioSettleTypeCode == null ? 43 : $mioSettleTypeCode.hashCode()); + Object $mioSettleTypeName = this.getMioSettleTypeName(); + result = result * 59 + ($mioSettleTypeName == null ? 43 : $mioSettleTypeName.hashCode()); + Object $doctorSubmitTime = this.getDoctorSubmitTime(); + result = result * 59 + ($doctorSubmitTime == null ? 43 : $doctorSubmitTime.hashCode()); + Object $nurseSubmitTime = this.getNurseSubmitTime(); + result = result * 59 + ($nurseSubmitTime == null ? 43 : $nurseSubmitTime.hashCode()); + Object $dutyNurse = this.getDutyNurse(); + result = result * 59 + ($dutyNurse == null ? 43 : $dutyNurse.hashCode()); + Object $preJzh = this.getPreJzh(); + result = result * 59 + ($preJzh == null ? 43 : $preJzh.hashCode()); + return result; + } +} 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..c983c72 --- /dev/null +++ b/src/main/java/com/docus/bgts/entity/ZdAssort.java @@ -0,0 +1,201 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.entity; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.Serializable; + +@ApiModel( + value = "ZdAssort对象", + description = "病案分类" +) +public class ZdAssort implements Serializable { + private static final long serialVersionUID = 1L; + @ApiModelProperty("分类id") + private String assortId; + @ApiModelProperty("分类名称") + private String assortName; + @ApiModelProperty("分类排序") + private Integer assortSort; + @ApiModelProperty("是否启用 1是,0否") + private Integer effective; + @ApiModelProperty("是否校验 1是,0否") + private Integer isCheck; + @ApiModelProperty("代码分类") + private String assortCode; + @ApiModelProperty("等级") + private Integer level; + + public String getAssortId() { + return this.assortId; + } + + public String getAssortName() { + return this.assortName; + } + + public Integer getAssortSort() { + return this.assortSort; + } + + public Integer getEffective() { + return this.effective; + } + + public Integer getIsCheck() { + return this.isCheck; + } + + public String getAssortCode() { + return this.assortCode; + } + + public Integer getLevel() { + return this.level; + } + + public void setAssortId(final String assortId) { + this.assortId = assortId; + } + + public void setAssortName(final String assortName) { + this.assortName = assortName; + } + + public void setAssortSort(final Integer assortSort) { + this.assortSort = assortSort; + } + + public void setEffective(final Integer effective) { + this.effective = effective; + } + + public void setIsCheck(final Integer isCheck) { + this.isCheck = isCheck; + } + + public void setAssortCode(final String assortCode) { + this.assortCode = assortCode; + } + + public void setLevel(final Integer level) { + this.level = level; + } + + public String toString() { + return "ZdAssort(assortId=" + this.getAssortId() + ", assortName=" + this.getAssortName() + ", assortSort=" + this.getAssortSort() + ", effective=" + this.getEffective() + ", isCheck=" + this.getIsCheck() + ", assortCode=" + this.getAssortCode() + ", level=" + this.getLevel() + ")"; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } else if (!(o instanceof ZdAssort)) { + return false; + } else { + ZdAssort other = (ZdAssort)o; + if (!other.canEqual(this)) { + return false; + } else { + Object this$assortId = this.getAssortId(); + Object other$assortId = other.getAssortId(); + if (this$assortId == null) { + if (other$assortId != null) { + return false; + } + } else if (!this$assortId.equals(other$assortId)) { + return false; + } + + Object this$assortName = this.getAssortName(); + Object other$assortName = other.getAssortName(); + if (this$assortName == null) { + if (other$assortName != null) { + return false; + } + } else if (!this$assortName.equals(other$assortName)) { + return false; + } + + Object this$assortSort = this.getAssortSort(); + Object other$assortSort = other.getAssortSort(); + if (this$assortSort == null) { + if (other$assortSort != null) { + return false; + } + } else if (!this$assortSort.equals(other$assortSort)) { + return false; + } + + Object this$effective = this.getEffective(); + Object other$effective = other.getEffective(); + if (this$effective == null) { + if (other$effective != null) { + return false; + } + } else if (!this$effective.equals(other$effective)) { + return false; + } + + Object this$isCheck = this.getIsCheck(); + Object other$isCheck = other.getIsCheck(); + if (this$isCheck == null) { + if (other$isCheck != null) { + return false; + } + } else if (!this$isCheck.equals(other$isCheck)) { + return false; + } + + Object this$assortCode = this.getAssortCode(); + Object other$assortCode = other.getAssortCode(); + if (this$assortCode == null) { + if (other$assortCode != null) { + return false; + } + } else if (!this$assortCode.equals(other$assortCode)) { + return false; + } + + Object this$level = this.getLevel(); + Object other$level = other.getLevel(); + if (this$level == null) { + if (other$level != null) { + return false; + } + } else if (!this$level.equals(other$level)) { + return false; + } + + return true; + } + } + } + + protected boolean canEqual(final Object other) { + return other instanceof ZdAssort; + } + + public int hashCode() { + int PRIME = 59; + int result = 1; + Object $assortId = this.getAssortId(); + result = result * 59 + ($assortId == null ? 43 : $assortId.hashCode()); + Object $assortName = this.getAssortName(); + result = result * 59 + ($assortName == null ? 43 : $assortName.hashCode()); + Object $assortSort = this.getAssortSort(); + result = result * 59 + ($assortSort == null ? 43 : $assortSort.hashCode()); + Object $effective = this.getEffective(); + result = result * 59 + ($effective == null ? 43 : $effective.hashCode()); + Object $isCheck = this.getIsCheck(); + result = result * 59 + ($isCheck == null ? 43 : $isCheck.hashCode()); + Object $assortCode = this.getAssortCode(); + result = result * 59 + ($assortCode == null ? 43 : $assortCode.hashCode()); + Object $level = this.getLevel(); + result = result * 59 + ($level == null ? 43 : $level.hashCode()); + return result; + } +} 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..3558dea --- /dev/null +++ b/src/main/java/com/docus/bgts/enums/Codes.java @@ -0,0 +1,34 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.enums; + +public enum Codes { + JSON_ADDRESS("999", "\\dataConfig\\homeQualitySet.json"), + MSG("201", "Msg"), + DIRECTORY("1000", "directory"), + UPLOAD("0", "uploadConnector"), + SEALUPLOAD("0", "sealUpload"), + REPOAL("0", "repoalConnector"), + assortid("assortid", "assortidKey"), + collectorid("collectorid", "collectoridKey"), + EMP_ID("0", "indexFlag"); + + private String code; + private String message; + + private Codes(String code, String messgae) { + this.code = code; + this.message = messgae; + } + + public String getCode() { + return this.code; + } + + public String getMessage() { + return this.message; + } +} 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..ff26218 --- /dev/null +++ b/src/main/java/com/docus/bgts/facade/IAfCollectTaskService.java @@ -0,0 +1,66 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.facade; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.docus.bgts.entity.AfCollectTask; +import com.docus.bgts.entity.CanlcelDto; +import com.docus.bgts.entity.ReportDownDto; +import com.docus.bgts.entity.TBasic; +import com.docus.bgts.entity.ZdAssort; +import java.util.List; + +public interface IAfCollectTaskService extends IService { + String getpatientIdByEmpId(String empId); + + String getpatientIdBysealId(String sealId); + + String getNameByPatientId(String patientId); + + String getOutpatientIdByJzhel(String jzh); + + void insert(ReportDownDto reportDownDto); + + void insertSeal(ReportDownDto reportDownDto); + + void insertOut(ReportDownDto reportDownDto); + + void updateInterfaceCollect(String collectSubId, int state); + + List listJZHByDate(String date1, String date2); + + void invokeRepoalFile(CanlcelDto canlcelDto) throws Exception; + + String selectJzh(String inPatientNo, String examApplyDate); + + String getAssortIdByAssortId(String assortId); + + String getAssortIdByAssortName(String assortId); + + void insertZdAssort(ZdAssort zdAssort); + + int deleteByPatientIdAndCollectorId(String patientId, String collectorId); + + int deleteByPatientIdAndAssortId(String patientId, String assortId); + + int deleteByPatientIdAndSysFlag(String patientId, String sysFlag); + + int updateNurseSubmitTime(ReportDownDto reportDownDto, String nurseSubmitTime, String nurseSubmitName); + + int updateDoctorSubmitTime(ReportDownDto reportDownDto, String doctorSubmitTime, String doctorSubmitName); + + void insertNurseState(ReportDownDto reportDownDto, String nurseSubmitTime); + + void insertDoctorState(ReportDownDto reportDownDto, String doctorSubmitTime); + + TBasic selectDisDateIsNull(String inPatientNo); + + String selectDisDateIsNullJzh(String inPatientNo, String examApplyDate); + + List getIdNos(String patientId, String collectorid); + + int cacelScanAssort(String patientId, String collectorid); +} diff --git a/src/main/java/com/docus/bgts/facade/IMrReportErrorService.java b/src/main/java/com/docus/bgts/facade/IMrReportErrorService.java new file mode 100644 index 0000000..9267144 --- /dev/null +++ b/src/main/java/com/docus/bgts/facade/IMrReportErrorService.java @@ -0,0 +1,10 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.facade; + +public interface IMrReportErrorService { + void insert(String xml); +} diff --git a/src/main/java/com/docus/bgts/handler/ITBasicWebService.java b/src/main/java/com/docus/bgts/handler/ITBasicWebService.java new file mode 100644 index 0000000..70b4c13 --- /dev/null +++ b/src/main/java/com/docus/bgts/handler/ITBasicWebService.java @@ -0,0 +1,18 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.handler; + +import javax.jws.WebMethod; +import javax.jws.WebService; + +@WebService +public interface ITBasicWebService { + @WebMethod + String pushSurveyReport(String xml); + + @WebMethod + String outPatient(String xml); +} diff --git a/src/main/java/com/docus/bgts/handler/TBasicWebService.java b/src/main/java/com/docus/bgts/handler/TBasicWebService.java new file mode 100644 index 0000000..230d495 --- /dev/null +++ b/src/main/java/com/docus/bgts/handler/TBasicWebService.java @@ -0,0 +1,697 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.handler; + +import com.alibaba.fastjson.JSON; +import com.docus.bgts.dto.SystemCollectConfig; +import com.docus.bgts.dto.SystemCollectConfig.Classify; +import com.docus.bgts.entity.CanlcelDto; +import com.docus.bgts.entity.ReportDownDto; +import com.docus.bgts.entity.ReportDownPatientDto; +import com.docus.bgts.entity.ReportDownScanFileDto; +import com.docus.bgts.entity.TBasic; +import com.docus.bgts.entity.TBasicExtend; +import com.docus.bgts.entity.ZdAssort; +import com.docus.bgts.enums.Codes; +import com.docus.bgts.facade.IAfCollectTaskService; +import com.docus.bgts.facade.IMrReportErrorService; +import com.docus.bgts.mapper.TBasicExtendMapper; +import com.docus.bgts.mapper.TBasicMapper; +import com.docus.bgts.mapper.TScanAssortMapper; +import com.docus.bgts.utils.FileUtils; +import com.docus.bgts.utils.HttpUtils; +import com.docus.bgts.utils.ResultUtils; +import com.docus.bgts.utils.XmlUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.exception.ExceptionUtils; +import org.dom4j.Document; +import org.dom4j.DocumentException; +import org.dom4j.Element; +import org.dom4j.io.SAXReader; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import sun.misc.BASE64Decoder; + +import javax.annotation.Resource; +import javax.jws.WebService; +import java.io.ByteArrayInputStream; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.StringReader; +import java.io.UnsupportedEncodingException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +@WebService +public class TBasicWebService implements ITBasicWebService { + @Autowired + IAfCollectTaskService afCollectTaskService; + @Autowired + IMrReportErrorService mrReportErrorService; + @Autowired + TBasicMapper tBasicMapper; + @Autowired + TBasicExtendMapper tBasicExtendMapper; + @Autowired + TScanAssortMapper tScanAssortMapper; + @Resource + private ThreadPoolExecutor threadPoolExecutor; + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + + private Element getElementFromString(String s) { + SAXReader builder = new SAXReader(); + Document doc = null; + Element element = null; + + try { + doc = builder.read(new StringReader(s)); + } catch (DocumentException e) { + e.printStackTrace(); + } + + if (doc != null) { + element = doc.getRootElement(); + } + + return element; + } + + @Override + public String pushSurveyReport(String xml) { + long l6 = System.currentTimeMillis(); + + try { + this.logger.info("报告推送入参:" + xml); + xml = "" + xml; + XmlUtils xmlUtils = new XmlUtils(new ByteArrayInputStream(xml.getBytes("UTF-8"))); + Element elementRoot = xmlUtils.getMsgElement(); + String serialnmnKey = String.valueOf(FileUtils.getJsonByName("serialnum")); + String filetitleKey = String.valueOf(FileUtils.getJsonByName("filetitle")); + String downurlKey = String.valueOf(FileUtils.getJsonByName("downurl")); + String nurseSubmitTime = String.valueOf(FileUtils.getJsonByName("nurseSubmitTime")); + String doctorSubmitTime = String.valueOf(FileUtils.getJsonByName("doctorSubmitTime")); + String examApplyDate = String.valueOf(FileUtils.getJsonByName("examApplyDate")); + String inPatientNo = String.valueOf(FileUtils.getJsonByName("inPatientNo")); + String sortingTimeKey = String.valueOf(FileUtils.getJsonByName("sortingTime")); + String empId = String.valueOf(FileUtils.getJsonByName(Codes.EMP_ID.getMessage())); + String seal = String.valueOf(FileUtils.getJsonByName("sealId")); + String submitName = String.valueOf(FileUtils.getJsonByName("submitName")); + String isJudge = String.valueOf(FileUtils.getJsonByName("isJudge")); + if (!StringUtils.isBlank(isJudge) && !isJudge.equals("0")) { + List judgeDirectory = (List)FileUtils.getJsonByName("judgeDirectory"); + Element current = xmlUtils.getElement(judgeDirectory); + String judgeIndex = String.valueOf(FileUtils.getJsonByName("judgeIndex")); + Element judgeIndexElement = current.element(judgeIndex); + if (judgeIndexElement != null && !StringUtils.isBlank(judgeIndexElement.getText()) && judgeIndexElement.getText().equals("1")) { + if (judgeIndexElement.getText().equals("1")) { + this.logger.info("---------撤回--------"); + CanlcelDto canlcelDto = new CanlcelDto(); + String serialnum = String.valueOf(FileUtils.getJsonByName("serialnum")); + String serialnumElement = this.getElementText(elementRoot, serialnum.split(",")); + canlcelDto.setSerialnum(serialnumElement); + this.afCollectTaskService.invokeRepoalFile(canlcelDto); + this.logger.info("----------当前操作完成--------------"); + return ResultUtils.success().asXML(); + } + } else { + this.logger.info("------新增/修改------"); + } + } + + Map headMap = new HashMap(); + headMap.put("Content-Type", "application/json"); + String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid")); + String assortid; + if (collectorid.equals("1")) { + assortid = String.valueOf(FileUtils.getJsonByName("assortid")); + } else { + assortid = this.getAssortid(elementRoot); + } + + ReportDownDto reportDownDto = new ReportDownDto(); + reportDownDto.setCollectorid(collectorid); + reportDownDto.setAssortid(assortid); + List reportDownDtoArr = new ArrayList(); + ReportDownPatientDto reportDownPatientDto = new ReportDownPatientDto(); + String empIdText = this.getElementText(elementRoot, empId.split(",")); + String submit = this.getElementTextCanBeEmpty(elementRoot, submitName.split(",")); + String sealId = this.getElementTextCanBeEmpty(elementRoot, seal.split(",")); + if (null != sealId && !"".equals(sealId)) { + reportDownPatientDto.setJzh(empIdText); + reportDownPatientDto.setSealId(sealId); + this.logger.info("封存患者jzh : " + empIdText); + reportDownDto.setPatient(reportDownPatientDto); + List elementList = xmlUtils.getJsonByName(elementRoot); + doctorSubmitTime = this.getElementText(elementRoot, doctorSubmitTime.split(",")); + + for(Element element : elementList) { + String filetitle = this.getElementText(element, filetitleKey.split(",")); + String downurl = this.getElementText(element, downurlKey.split(",")); + if (collectorid.equals("1")) { + nurseSubmitTime = this.getElementText(element, nurseSubmitTime.split(",")); + this.afCollectTaskService.updateNurseSubmitTime(reportDownDto, nurseSubmitTime, submit); + this.afCollectTaskService.insertNurseState(reportDownDto, nurseSubmitTime); + } + + String sortingTime = this.getElementTextCanBeEmpty(element, sortingTimeKey.split(",")); + String serialnum = this.getElementText(element, serialnmnKey.split(",")); + ReportDownScanFileDto reportDownScanFileDto = new ReportDownScanFileDto(); + reportDownScanFileDto.setDownurl(downurl); + reportDownScanFileDto.setFiletitle(filetitle); + reportDownScanFileDto.setSerialnum(serialnum); + reportDownScanFileDto.setSortdate(sortingTime); + reportDownScanFileDto.setFilesource(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filesource")))); + reportDownScanFileDto.setFilestoragetype(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filestoragetype")))); + if (reportDownScanFileDto.getDownurl().length() > 200) { + reportDownScanFileDto.setFiletype(2); + } + + reportDownDtoArr.add(reportDownScanFileDto); + } + + if (reportDownDtoArr.size() <= 0) { + throw new RuntimeException("不存在必要的基本信息"); + } else { + reportDownDto.setScanfiles(reportDownDtoArr); + this.afCollectTaskService.updateDoctorSubmitTime(reportDownDto, doctorSubmitTime, submit); + this.afCollectTaskService.insertDoctorState(reportDownDto, doctorSubmitTime); + this.afCollectTaskService.insertSeal(reportDownDto); + String post = ""; + this.logger.info("--------执行上传功能----------"); + Map params = (Map)JSON.parseObject(JSON.toJSONString(reportDownDto), Map.class); + if (((ReportDownScanFileDto)reportDownDto.getScanfiles().get(0)).getFiletype() == 1) { + this.logger.info("封存id--" + reportDownDto.getPatient().getSealId() + ": 上传参数:" + params); + } + + long l = System.currentTimeMillis(); + post = HttpUtils.post(String.valueOf(FileUtils.getJsonByName(Codes.SEALUPLOAD.getMessage())), headMap, params); + long l1 = System.currentTimeMillis(); + this.logger.info("封存id--" + reportDownDto.getPatient().getSealId() + "请求下载耗时----------" + (l1 - l)); + if (StringUtils.isBlank(post)) { + this.logger.info("封存id--" + reportDownDto.getPatient().getSealId() + "--------上传时出现错误,可能是文件服务没有启动----------"); + throw new RuntimeException("封存id--" + reportDownDto.getPatient().getSealId() + "上传时出现错误,可能是文件服务没有启动"); + } else { + Map resMap = (Map)JSON.parseObject(post, Map.class); + long l7 = System.currentTimeMillis(); + this.logger.info("接口总耗时--------" + (l7 - l6)); + if (String.valueOf(resMap.get("code")).equals("500")) { + this.logger.info("封存id--" + reportDownDto.getPatient().getSealId() + "--------上传失败!" + resMap.get("msg")); + throw new RuntimeException("封存id--" + reportDownDto.getPatient().getSealId() + "上传失败:" + resMap.get("msg")); + } else { + this.logger.info("----------执行成功-----------"); + return ResultUtils.success().asXML(); + } + } + } + } else { + doctorSubmitTime = this.getElementTextCanBeEmpty(elementRoot, doctorSubmitTime.split(",")); + long l2 = System.currentTimeMillis(); + String patientId = this.afCollectTaskService.getpatientIdByEmpId(empIdText); + long l3 = System.currentTimeMillis(); + this.logger.info("查询patient_id耗时" + (l3 - l2)); + long l4 = System.currentTimeMillis(); + int i = this.afCollectTaskService.deleteByPatientIdAndCollectorId(patientId, collectorid); + long l5 = System.currentTimeMillis(); + this.logger.info("删除" + empIdText + "af_downfile表" + i + "条数据耗时-----" + (l5 - l4)); + long l9 = System.currentTimeMillis(); + int i2 = this.afCollectTaskService.deleteByPatientIdAndSysFlag(patientId, collectorid); + long l10 = System.currentTimeMillis(); + this.logger.info("删除" + empIdText + "af_collect_task表" + i2 + "条数据耗时-----" + (l10 - l9)); + reportDownPatientDto.setJzh(empIdText); + this.logger.info("患者主索引号:" + empIdText); + reportDownDto.setPatient(reportDownPatientDto); + + for(Element element : xmlUtils.getJsonByName(elementRoot)) { + String filetitle = this.getElementText(element, filetitleKey.split(",")); + String downurl = this.getElementText(element, downurlKey.split(",")); + if (collectorid.equals("1")) { + nurseSubmitTime = this.getElementText(element, nurseSubmitTime.split(",")); + this.afCollectTaskService.updateNurseSubmitTime(reportDownDto, nurseSubmitTime, submit); + this.afCollectTaskService.insertNurseState(reportDownDto, nurseSubmitTime); + } + + String sortingTime = this.getElementTextCanBeEmpty(element, sortingTimeKey.split(",")); + String serialnum = this.getElementText(element, serialnmnKey.split(",")); + ReportDownScanFileDto reportDownScanFileDto = new ReportDownScanFileDto(); + reportDownScanFileDto.setDownurl(downurl); + reportDownScanFileDto.setFiletitle(filetitle); + reportDownScanFileDto.setSerialnum(serialnum); + reportDownScanFileDto.setSortdate(sortingTime); + reportDownScanFileDto.setFilesource(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filesource")))); + reportDownScanFileDto.setFilestoragetype(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filestoragetype")))); + if (reportDownScanFileDto.getDownurl().length() > 200) { + reportDownScanFileDto.setFiletype(2); + } + + reportDownDtoArr.add(reportDownScanFileDto); + } + + if (reportDownDtoArr.size() <= 0) { + throw new RuntimeException("不存在必要的基本信息"); + } else { + reportDownDto.setScanfiles(reportDownDtoArr); + + updatescanAssort(reportDownDtoArr,patientId,collectorid,empIdText); + + if (collectorid.equals("22")) { + TBasic tBasic = this.tBasicMapper.selectByjzh(empIdText); + if (null != tBasic) { + TBasicExtend tBasicExtend = this.tBasicExtendMapper.selectByPatientId(tBasic.getPatientId()); + if (null != tBasicExtend) { + TBasic tBasicPre = this.tBasicMapper.selectByjzh(tBasicExtend.getPreJzh()); + if (null != tBasicPre) { + int pre = this.tScanAssortMapper.updateByPatientId(tBasic.getPatientId(), tBasicPre.getPatientId()); + if (pre <= 0) { + this.logger.info("当前预住院没有文件!"); + } else { + this.logger.info("本次预住院合并" + pre + "份报告"); + } + } else { + this.logger.info("未查询到预住院患者信息!"); + } + } + } + } + + this.afCollectTaskService.updateDoctorSubmitTime(reportDownDto, doctorSubmitTime, submit); + this.afCollectTaskService.insertDoctorState(reportDownDto, doctorSubmitTime); + this.afCollectTaskService.insert(reportDownDto); + String post = ""; + this.logger.info("--------执行上传功能----------"); + Map params = (Map)JSON.parseObject(JSON.toJSONString(reportDownDto), Map.class); + if (((ReportDownScanFileDto)reportDownDto.getScanfiles().get(0)).getFiletype() == 1) { + this.logger.info(reportDownDto.getPatient().getJzh() + ": 上传参数:" + params); + } + + long l = System.currentTimeMillis(); + post = HttpUtils.post(String.valueOf(FileUtils.getJsonByName(Codes.UPLOAD.getMessage())), headMap, params); + long l1 = System.currentTimeMillis(); + this.logger.info("请求下载耗时----------" + (l1 - l)); + if (StringUtils.isBlank(post)) { + this.logger.info("--------上传时出现错误,可能是文件服务没有启动----------"); + throw new RuntimeException("上传时出现错误,可能是文件服务没有启动"); + } else { + Map resMap = (Map)JSON.parseObject(post, Map.class); + long l7 = System.currentTimeMillis(); + this.logger.info("接口总耗时--------" + (l7 - l6)); + if (String.valueOf(resMap.get("code")).equals("500")) { + this.logger.info(reportDownDto.getPatient().getJzh() + "--------上传失败!" + resMap.get("msg")); + throw new RuntimeException(reportDownDto.getPatient().getJzh() + "上传失败:" + resMap.get("msg")); + } else { + this.logger.info("----------执行成功-----------"); + return ResultUtils.success().asXML(); + } + } + } + } + } catch (RuntimeException e) { + e.printStackTrace(); + this.logger.error(e.getMessage()); + String stackTrace = ExceptionUtils.getStackTrace(e); + this.logger.info("错误信息----------" + stackTrace); + return ResultUtils.fail(e.getMessage()); + } catch (Exception e) { + this.logger.error(e.getMessage()); + String stackTrace = ExceptionUtils.getStackTrace(e); + this.logger.info("错误信息----------" + stackTrace); + e.printStackTrace(); + return ResultUtils.fail(e.getMessage()); + } + } + + + private void updatescanAssort( List reportDownDtoArr,String patientId, String collectorid,String jzh) { + // 存在每次推送都可能有不一样的报告id,判断是否全部作废。当前推送的报告id与之前有相同,则不进行作废处理 + List existsIdNos= this.afCollectTaskService.getIdNos(patientId,collectorid); + boolean cancel=true; + if(!existsIdNos.isEmpty()){ + for (ReportDownScanFileDto scanFileDto : reportDownDtoArr) { + String serialnum = scanFileDto.getSerialnum(); + // 匹配到了相同的报告流水号,不作废 + if(existsIdNos.contains(serialnum)){ + cancel = false; + break; + } + } + } + if(cancel){ + int cancelCount = this.afCollectTaskService.cacelScanAssort(patientId, collectorid); + logger.info("患者病案主键:{},jzh:{} 作废来源:{} 文件 {} 个。",patientId,jzh,collectorid,cancelCount); + } + } + + private void sealCollect(String sealId) { + String systemCollectConfigFileName = "dataConfig" + File.separator + "SystemCollectConfig"; + + List sealCollectConfigs; + try { + String configJson = FileUtils.readJsonFromCurrentProject(systemCollectConfigFileName); + SystemCollectConfig systemCollectConfig = (SystemCollectConfig)JSON.parseObject(configJson, SystemCollectConfig.class); + String sealCollectClassify = systemCollectConfig.getSealCollectClassify(); + if (!Classify.SEAL_COLLECT.getClassify().equals(sealCollectClassify)) { + throw new RuntimeException("封存病案采集配置未配置!"); + } + + sealCollectConfigs = systemCollectConfig.getSealCollectConfigs(); + + for(SystemCollectConfig.CollectConfig config : sealCollectConfigs) { + if (StringUtils.isBlank(config.getDesc()) || StringUtils.isBlank(config.getUrl())) { + throw new RuntimeException("封存病案采集配置中描述和地址不能为空!"); + } + } + } catch (RuntimeException runtimeException) { + this.logger.error(runtimeException.getMessage(), runtimeException); + return; + } catch (Exception ex) { + this.logger.error("封存病案获取采集配置出现未知错误!", ex); + return; + } + + List> completableFutureList = new CopyOnWriteArrayList(); + + for(SystemCollectConfig.CollectConfig config : sealCollectConfigs) { + CompletableFuture completableFuture = CompletableFuture.runAsync(() -> this.sealCollect(sealId, config), this.threadPoolExecutor); + completableFutureList.add(completableFuture); + } + + if (!completableFutureList.isEmpty()) { + CompletableFuture allFutures = CompletableFuture.allOf((CompletableFuture[])completableFutureList.toArray(new CompletableFuture[0])); + + try { + allFutures.get(); + } catch (Exception ex) { + this.logger.error(ex.getMessage(), ex); + } + } + + } + + private void sealCollect(String sealId, SystemCollectConfig.CollectConfig config) { + String url = config.getUrl() + "?sealId=" + sealId; + String desc = config.getDesc(); + + try { + this.logger.info("{},采集地址:{}", desc, url); + String result = HttpUtils.get(url); + this.logger.info("{},采集地址:{},采集结果:{}", new Object[]{desc, url, result}); + } catch (Exception ex) { + this.logger.error(desc + ",采集地址:" + url + ",采集失败!", ex); + } + + } + + @Override + public String outPatient(String xml) { + long l6 = System.currentTimeMillis(); + + try { + this.logger.info("报告推送入参:" + xml); + xml = "" + xml; + XmlUtils xmlUtils = new XmlUtils(new ByteArrayInputStream(xml.getBytes("UTF-8"))); + Element elementRoot = xmlUtils.getMsgElement(); + String serialnmnKey = String.valueOf(FileUtils.getJsonByName("serialnum")); + String filetitleKey = String.valueOf(FileUtils.getJsonByName("filetitle")); + String downurlKey = String.valueOf(FileUtils.getJsonByName("downurl")); + String empId = String.valueOf(FileUtils.getJsonByName(Codes.EMP_ID.getMessage())); + Map headMap = new HashMap(); + headMap.put("Content-Type", "application/json"); + int filetype = Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filetype"))); + String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid")); + String assortid = this.getAssortid(elementRoot); + ReportDownDto reportDownDto = new ReportDownDto(); + reportDownDto.setCollectorid(collectorid); + reportDownDto.setAssortid(assortid); + List reportDownDtoArr = new ArrayList(); + ReportDownPatientDto reportDownPatientDto = new ReportDownPatientDto(); + String empIdText = this.getElementText(elementRoot, empId.split(",")); + reportDownPatientDto.setJzh(empIdText); + this.logger.info("患者主索引号:" + empIdText); + reportDownDto.setPatient(reportDownPatientDto); + + for(Element element : xmlUtils.getJsonByName(elementRoot)) { + String filetitle = this.getElementText(element, filetitleKey.split(",")); + String downurl = this.getElementText(element, downurlKey.split(",")); + String serialnum = this.getElementText(element, serialnmnKey.split(",")); + ReportDownScanFileDto reportDownScanFileDto = new ReportDownScanFileDto(); + reportDownScanFileDto.setDownurl(downurl.substring(1, downurl.length() - 1)); + reportDownScanFileDto.setFiletitle(filetitle); + reportDownScanFileDto.setSerialnum(serialnum); + reportDownScanFileDto.setFiletype(filetype); + reportDownScanFileDto.setFilesource(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filesource")))); + reportDownScanFileDto.setFilestoragetype(Integer.parseInt(String.valueOf(FileUtils.getJsonByName("filestoragetype")))); + if (reportDownScanFileDto.getDownurl().length() > 200) { + reportDownScanFileDto.setFiletype(2); + } + + reportDownDtoArr.add(reportDownScanFileDto); + } + + if (reportDownDtoArr.size() <= 0) { + throw new RuntimeException("不存在必要的基本信息"); + } else { + reportDownDto.setScanfiles(reportDownDtoArr); + this.afCollectTaskService.insertOut(reportDownDto); + String post = ""; + this.logger.info("--------执行上传功能----------"); + Map params = (Map)JSON.parseObject(JSON.toJSONString(reportDownDto), Map.class); + this.logger.info("上传参数:" + params); + long l = System.currentTimeMillis(); + synchronized(this) { + post = HttpUtils.post(String.valueOf(FileUtils.getJsonByName(Codes.UPLOAD.getMessage())), headMap, params); + } + + long l1 = System.currentTimeMillis(); + this.logger.info("请求下载耗时----------" + (l1 - l)); + if (StringUtils.isBlank(post)) { + this.logger.info("--------上传时出现错误,可能是文件服务没有启动----------"); + throw new RuntimeException("上传时出现错误,可能是文件服务没有启动"); + } else { + Map resMap = (Map)JSON.parseObject(post, Map.class); + long l7 = System.currentTimeMillis(); + this.logger.info("接口总耗时--------" + (l7 - l6)); + if (String.valueOf(resMap.get("code")).equals("500")) { + throw new RuntimeException(String.valueOf(resMap.get("msg"))); + } else { + this.logger.info("----------执行成功-----------"); + return ResultUtils.success().asXML(); + } + } + } + } catch (RuntimeException e) { + e.printStackTrace(); + this.logger.error(e.getMessage()); + return ResultUtils.fail(e.getMessage()); + } catch (Exception e) { + this.logger.error(e.getMessage()); + e.printStackTrace(); + return ResultUtils.fail(e.getMessage()); + } + } + + private String handleDownUrl(String downurl) { + String url = ""; + + try { + XmlUtils xmlUtils = new XmlUtils(new ByteArrayInputStream(downurl.getBytes("UTF-8"))); + if (null != xmlUtils) { + url = downurl; + Object urlReplaceObj = FileUtils.getJsonByName("urlReplace"); + List list = JSON.parseArray(JSON.toJSONString(urlReplaceObj), String.class); + for(String urlReplace : list) { + url = url.replaceAll(urlReplace, ""); + } + + return url; + } + } catch (Exception e) { + e.printStackTrace(); + } + + return ""; + } + + private CanlcelDto getCanlCelDtoByXml(String xml) throws UnsupportedEncodingException { + XmlUtils xmlUtils = null; + + try { + xmlUtils = new XmlUtils(new ByteArrayInputStream(xml.getBytes("UTF-8"))); + } catch (Exception e) { + e.printStackTrace(); + } + + List repealDirectory = (List)FileUtils.getJsonByName("repealDirectory"); + Element element = xmlUtils.getElement(repealDirectory); + String repealSerialnum = String.valueOf(FileUtils.getJsonByName("repealSerialnum")); + Element repealSerialnumElement = element.element(repealSerialnum); + CanlcelDto canlcelDto = new CanlcelDto(); + if (null != repealSerialnumElement && !StringUtils.isBlank(repealSerialnumElement.getText())) { + String serialnum = repealSerialnumElement.getText(); + this.logger.info("当前流水号为:" + serialnum); + canlcelDto.setSerialnum(serialnum); + return canlcelDto; + } else { + throw new RuntimeException(repealSerialnum + "标签必须有值"); + } + } + + private String getElementText(Element element, String[] args) { + String resText = ""; + Element byElement = (Element)element.clone(); + Element byElement1 = null; + + for(String arg : args) { + String[] split = arg.split("&"); + if (split.length > 1) { + for(String spi : split) { + if (byElement1 == null) { + byElement1 = byElement.element(spi); + } else { + byElement1 = byElement1.element(spi); + } + + if (byElement1 != null && StringUtils.isNotBlank(byElement1.getText())) { + break; + } + + byElement1 = null; + } + } else if (byElement1 == null) { + byElement1 = byElement.element(arg); + } else { + byElement1 = byElement1.element(arg); + } + + if (byElement1 == null) { + break; + } + + resText = byElement1.getText(); + } + + if (StringUtils.isBlank(resText)) { + throw new RuntimeException(args[args.length - 1] + "的值不能为空"); + } else { + return resText; + } + } + + private String getElementTextCanBeEmpty(Element element, String[] args) { + String resText = ""; + Element byElement = (Element)element.clone(); + Element byElement1 = null; + + for(String arg : args) { + String[] split = arg.split("&"); + if (split.length > 1) { + for(String spi : split) { + if (byElement1 == null) { + byElement1 = byElement.element(spi); + } else { + byElement1 = byElement1.element(spi); + } + + if (byElement1 != null && StringUtils.isNotBlank(byElement1.getText())) { + break; + } + + byElement1 = null; + } + } else if (byElement1 == null) { + byElement1 = byElement.element(arg); + } else { + byElement1 = byElement1.element(arg); + } + + if (byElement1 == null) { + break; + } + + resText = byElement1.getText(); + } + + return resText; + } + + private String getAssortid(Element element) { + String assortId = String.valueOf(FileUtils.getJsonByName("assortid")); + if (StringUtils.isBlank(assortId)) { + String assortIdKey = String.valueOf(FileUtils.getJsonByName("assortidParamKey")); + if (StringUtils.isBlank(assortIdKey)) { + assortId = ""; + } else { + assortId = element.element(assortIdKey).getText(); + } + + String myAssortId = this.afCollectTaskService.getAssortIdByAssortId(assortId); + if (StringUtils.isBlank(myAssortId)) { + myAssortId = this.afCollectTaskService.getAssortIdByAssortName(assortId); + if (StringUtils.isBlank(myAssortId)) { + String uuid = UUID.randomUUID().toString().replaceAll("-", ""); + ZdAssort zdAssort = new ZdAssort(); + zdAssort.setAssortName(assortId); + zdAssort.setAssortId(uuid); + zdAssort.setEffective(1); + this.afCollectTaskService.insertZdAssort(zdAssort); + assortId = uuid; + } else { + assortId = myAssortId; + } + } else { + assortId = myAssortId; + } + } + + return assortId; + } + + public static void depdf() { + Path path = Paths.get("D:\\pdf.txt"); + Stream lines = null; + + try { + lines = Files.lines(path); + } catch (IOException e) { + e.printStackTrace(); + } + + String collect = (String)lines.collect(Collectors.joining(System.lineSeparator())); + String encodedBytes = collect; + BASE64Decoder decoder = new BASE64Decoder(); + byte[] decodedBytes = new byte[0]; + + try { + decodedBytes = decoder.decodeBuffer(encodedBytes); + } catch (IOException e) { + e.printStackTrace(); + } + + File file = new File("D:\\newfile.pdf"); + FileOutputStream fop = null; + + try { + fop = new FileOutputStream(file); + fop.write(decodedBytes); + fop.flush(); + fop.close(); + } catch (Exception e) { + e.printStackTrace(); + } + + } +} diff --git a/src/main/java/com/docus/bgts/mapper/AfCollectTaskMapper.java b/src/main/java/com/docus/bgts/mapper/AfCollectTaskMapper.java new file mode 100644 index 0000000..9ab5861 --- /dev/null +++ b/src/main/java/com/docus/bgts/mapper/AfCollectTaskMapper.java @@ -0,0 +1,57 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.docus.bgts.entity.AfCollectTask; +import com.docus.bgts.entity.CqcSubmitState; +import com.docus.bgts.entity.TBasic; +import com.docus.bgts.entity.ZdAssort; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +public interface AfCollectTaskMapper extends BaseMapper { + List listJZHByDate(@Param("date1") String date1, @Param("date2") String date2); + + String getpatientIdByEmpId(@Param("jzh") String empId); + + String getPatientIdBysealId(@Param("sealId") String sealId); + + String selectJzh(@Param("inPatientNo") String inPatientNo, @Param("examApplyDate") String examApplyDate); + + TBasic selectDisDateIsNull(@Param("inPatientNo") String inPatientNo); + + String selectDisDateIsNullJzh(@Param("inPatientNo") String inPatientNo, @Param("examApplyDate") String examApplyDate); + + String getAssortIdByAssortId(@Param("assortId") String assortId); + + String getAssortIdByAssortName(@Param("assortName") String assortName); + + void insertZdAssort(@Param("zdAssort") ZdAssort zdAssort); + + int deleteByPatientIdAndCollectorId(@Param("patientId") String patientId, @Param("collectorId") String collectorId); + + int deleteByPatientIdAndAssortId(@Param("patientId") String patientId, @Param("assortId") String assortId); + + int deleteByPatientIdAndSysFlag(@Param("patientId") String patientId, @Param("sysFlag") String sysFlag); + + List getIdNos(@Param("patientId") String patientId,@Param("collectorId") String collectorid); + + int cacelScanAssort(@Param("patientId") String patientId,@Param("collectorId") String collectorid); + + int insertDoctorState(CqcSubmitState cqcSubmitState); + + int updateDoctorState(CqcSubmitState cqcSubmitState); + + CqcSubmitState selectByPatientId(String patientId); + + String selectPatientByjzh(String jzh); + + String selectNameByPatientId(String patientId); + + +} diff --git a/src/main/java/com/docus/bgts/mapper/AfInterfaceCollectMapper.java b/src/main/java/com/docus/bgts/mapper/AfInterfaceCollectMapper.java new file mode 100644 index 0000000..e02dc5a --- /dev/null +++ b/src/main/java/com/docus/bgts/mapper/AfInterfaceCollectMapper.java @@ -0,0 +1,12 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.docus.bgts.entity.AfInterfaceCollect; + +public interface AfInterfaceCollectMapper extends BaseMapper { +} diff --git a/src/main/java/com/docus/bgts/mapper/AfInterfaceCollectSubMapper.java b/src/main/java/com/docus/bgts/mapper/AfInterfaceCollectSubMapper.java new file mode 100644 index 0000000..8853818 --- /dev/null +++ b/src/main/java/com/docus/bgts/mapper/AfInterfaceCollectSubMapper.java @@ -0,0 +1,12 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.docus.bgts.entity.AfInterfaceCollectSub; + +public interface AfInterfaceCollectSubMapper extends BaseMapper { +} diff --git a/src/main/java/com/docus/bgts/mapper/MrReportErrorMapper.java b/src/main/java/com/docus/bgts/mapper/MrReportErrorMapper.java new file mode 100644 index 0000000..546c192 --- /dev/null +++ b/src/main/java/com/docus/bgts/mapper/MrReportErrorMapper.java @@ -0,0 +1,13 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.mapper; + +import com.docus.bgts.entity.MrReportError; +import org.apache.ibatis.annotations.Param; + +public interface MrReportErrorMapper { + void save(@Param("mrReportError") MrReportError mrReportError); +} diff --git a/src/main/java/com/docus/bgts/mapper/TBasicExtendMapper.java b/src/main/java/com/docus/bgts/mapper/TBasicExtendMapper.java new file mode 100644 index 0000000..331b524 --- /dev/null +++ b/src/main/java/com/docus/bgts/mapper/TBasicExtendMapper.java @@ -0,0 +1,17 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.docus.bgts.entity.TBasicExtend; + +public interface TBasicExtendMapper extends BaseMapper { + TBasicExtend selectByPatientId(String patientId); + + int updatenurseSubmitTime(TBasicExtend tBasicExtend); + + int updateDoctorSubmitTime(TBasicExtend tBasicExtend); +} diff --git a/src/main/java/com/docus/bgts/mapper/TBasicMapper.java b/src/main/java/com/docus/bgts/mapper/TBasicMapper.java new file mode 100644 index 0000000..2bb9496 --- /dev/null +++ b/src/main/java/com/docus/bgts/mapper/TBasicMapper.java @@ -0,0 +1,17 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.docus.bgts.entity.TBasic; + +public interface TBasicMapper extends BaseMapper { + TBasic selectByjzh(String jzh); + + TBasic selectByPatientId(String patientId); + + int update(TBasic tbasic); +} diff --git a/src/main/java/com/docus/bgts/mapper/TScanAssortMapper.java b/src/main/java/com/docus/bgts/mapper/TScanAssortMapper.java new file mode 100644 index 0000000..cc823e0 --- /dev/null +++ b/src/main/java/com/docus/bgts/mapper/TScanAssortMapper.java @@ -0,0 +1,14 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.docus.bgts.entity.TBasic; +import org.apache.ibatis.annotations.Param; + +public interface TScanAssortMapper extends BaseMapper { + int updateByPatientId(@Param("patientId") String PatientId, @Param("PrePatientId") String PrePatientId); +} diff --git a/src/main/java/com/docus/bgts/service/AfCollectTaskServiceImpl.java b/src/main/java/com/docus/bgts/service/AfCollectTaskServiceImpl.java new file mode 100644 index 0000000..1701c75 --- /dev/null +++ b/src/main/java/com/docus/bgts/service/AfCollectTaskServiceImpl.java @@ -0,0 +1,477 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.service; + +import com.alibaba.fastjson.JSON; +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.docus.bgts.entity.AfCollectTask; +import com.docus.bgts.entity.AfInterfaceCollect; +import com.docus.bgts.entity.AfInterfaceCollectSub; +import com.docus.bgts.entity.CanlcelDto; +import com.docus.bgts.entity.ReportDownDto; +import com.docus.bgts.entity.ReportDownScanFileDto; +import com.docus.bgts.entity.TBasic; +import com.docus.bgts.entity.TBasicExtend; +import com.docus.bgts.entity.ZdAssort; +import com.docus.bgts.enums.Codes; +import com.docus.bgts.facade.IAfCollectTaskService; +import com.docus.bgts.mapper.AfCollectTaskMapper; +import com.docus.bgts.mapper.AfInterfaceCollectMapper; +import com.docus.bgts.mapper.AfInterfaceCollectSubMapper; +import com.docus.bgts.mapper.TBasicExtendMapper; +import com.docus.bgts.mapper.TBasicMapper; +import com.docus.bgts.utils.FileUtils; +import com.docus.bgts.utils.HttpUtils; +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Service +public class AfCollectTaskServiceImpl extends ServiceImpl implements IAfCollectTaskService { + private final Logger log = LoggerFactory.getLogger(this.getClass()); + @Autowired + AfCollectTaskMapper afCollectTaskMapper; + @Autowired + AfInterfaceCollectMapper afInterfaceCollectMapper; + @Autowired + AfInterfaceCollectSubMapper afInterfaceCollectSubMapper; + @Autowired + TBasicExtendMapper tBasicExtendMapper; + @Autowired + TBasicMapper tBasicMapper; + + @Override + public String getpatientIdByEmpId(String empId) { + String patientId = this.afCollectTaskMapper.getpatientIdByEmpId(empId); + return patientId; + } + @Override + public String getpatientIdBysealId(String sealId) { + return this.afCollectTaskMapper.getPatientIdBysealId(sealId); + } + @Override + public String getNameByPatientId(String patientId) { + return this.afCollectTaskMapper.selectNameByPatientId(patientId); + } + @Override + public String getOutpatientIdByJzhel(String jzh) { + return this.afCollectTaskMapper.selectPatientByjzh(jzh); + } + @Override + @Transactional + public void insertOut(ReportDownDto reportDownDto) { + if (((ReportDownScanFileDto)reportDownDto.getScanfiles().get(0)).getFiletype() == 1) { + this.log.info("新增任务表初始数据:" + reportDownDto); + } + + String patientId = this.getOutpatientIdByJzhel(reportDownDto.getPatient().getJzh()); + if (StringUtils.isBlank(patientId)) { + throw new RuntimeException("操作的病案信息不存在"); + } else { + Date date = new Date(); + Integer save = null; + List scanfiles = reportDownDto.getScanfiles(); + + for(ReportDownScanFileDto scanfile : scanfiles) { + long l = System.currentTimeMillis(); + AfCollectTask afCollectTask = (AfCollectTask)this.afCollectTaskMapper.selectOne((Wrapper)((QueryWrapper)(new QueryWrapper()).eq("C1", scanfile.getSerialnum())).eq("sysflag", reportDownDto.getCollectorid())); + if (afCollectTask != null && afCollectTask.getId() != null) { + afCollectTask.setPatientId(patientId); + afCollectTask.setSysflag(reportDownDto.getCollectorid()); + afCollectTask.setState("0"); + afCollectTask.setSyncTime(date); + afCollectTask.setC1(scanfile.getSerialnum()); + afCollectTask.setC2(scanfile.getFiletitle()); + afCollectTask.setC3(reportDownDto.getPatient().getJzh()); + save = this.afCollectTaskMapper.updateById(afCollectTask); + } else { + afCollectTask = new AfCollectTask(); + afCollectTask.setPatientId(patientId); + afCollectTask.setSysflag(reportDownDto.getCollectorid()); + afCollectTask.setState("0"); + afCollectTask.setSyncTime(date); + afCollectTask.setC1(scanfile.getSerialnum()); + afCollectTask.setC2(scanfile.getFiletitle()); + afCollectTask.setC3(reportDownDto.getPatient().getJzh()); + save = this.afCollectTaskMapper.insert(afCollectTask); + } + + if (save <= 0) { + this.log.info("任务表操作出错"); + throw new RuntimeException("插入病案任务表数据出错"); + } + + if (afCollectTask.getId() == null) { + this.log.info("插入任务id为空!"); + throw new RuntimeException("插入任务id为空"); + } + + scanfile.setTaskid(afCollectTask.getId()); + } + + reportDownDto.setScanfiles(scanfiles); + } + } + @Override + @Transactional + public void insert(ReportDownDto reportDownDto) { + if (((ReportDownScanFileDto)reportDownDto.getScanfiles().get(0)).getFiletype() == 1) { + this.log.info("新增任务表初始数据:" + reportDownDto); + } + + String patientId = this.getpatientIdByEmpId(reportDownDto.getPatient().getJzh()); + if (StringUtils.isBlank(patientId)) { + throw new RuntimeException("操作的病案信息不存在"); + } else { + Date date = new Date(); + Integer save = null; + List scanfiles = reportDownDto.getScanfiles(); + + for(ReportDownScanFileDto scanfile : scanfiles) { + long l = System.currentTimeMillis(); + AfCollectTask afCollectTask; + synchronized(this) { + afCollectTask = (AfCollectTask)this.afCollectTaskMapper.selectOne((Wrapper)((QueryWrapper)(new QueryWrapper()).eq("C1", scanfile.getSerialnum())).eq("sysflag", reportDownDto.getCollectorid())); + if (afCollectTask != null && afCollectTask.getId() != null) { + afCollectTask.setPatientId(patientId); + afCollectTask.setSysflag(reportDownDto.getCollectorid()); + afCollectTask.setState("0"); + afCollectTask.setSyncTime(date); + afCollectTask.setC1(scanfile.getSerialnum()); + afCollectTask.setC2(scanfile.getFiletitle()); + afCollectTask.setC3(reportDownDto.getPatient().getJzh()); + save = this.afCollectTaskMapper.updateById(afCollectTask); + } else { + afCollectTask = new AfCollectTask(); + afCollectTask.setPatientId(patientId); + afCollectTask.setSysflag(reportDownDto.getCollectorid()); + afCollectTask.setState("0"); + afCollectTask.setSyncTime(date); + afCollectTask.setC1(scanfile.getSerialnum()); + afCollectTask.setC2(scanfile.getFiletitle()); + afCollectTask.setC3(reportDownDto.getPatient().getJzh()); + save = this.afCollectTaskMapper.insert(afCollectTask); + } + } + + if (save <= 0) { + this.log.info("任务表操作出错"); + throw new RuntimeException("插入病案任务表数据出错"); + } + + if (afCollectTask.getId() == null) { + this.log.info("插入任务id为空!"); + throw new RuntimeException("插入任务id为空"); + } + + scanfile.setTaskid(afCollectTask.getId()); + } + + reportDownDto.setScanfiles(scanfiles); + } + } + @Override + public void insertSeal(ReportDownDto reportDownDto) { + if (((ReportDownScanFileDto)reportDownDto.getScanfiles().get(0)).getFiletype() == 1) { + this.log.info("新增封存任务表初始数据:" + reportDownDto); + } + + String patientId = this.getpatientIdBysealId(reportDownDto.getPatient().getSealId()); + if (StringUtils.isBlank(patientId)) { + throw new RuntimeException("操作的病案信息不存在"); + } else { + reportDownDto.getPatient().setPatientid(patientId); + Date date = new Date(); + Integer save = null; + List scanfiles = reportDownDto.getScanfiles(); + + for(ReportDownScanFileDto scanfile : scanfiles) { + long l = System.currentTimeMillis(); + AfCollectTask afCollectTask = (AfCollectTask)this.afCollectTaskMapper.selectOne((Wrapper)((QueryWrapper)(new QueryWrapper()).eq("C1", scanfile.getSerialnum())).eq("sysflag", reportDownDto.getCollectorid())); + if (afCollectTask != null && afCollectTask.getId() != null) { + afCollectTask.setPatientId(patientId); + afCollectTask.setSysflag(reportDownDto.getCollectorid()); + afCollectTask.setState("0"); + afCollectTask.setSyncTime(date); + afCollectTask.setC1(scanfile.getSerialnum()); + afCollectTask.setC2(scanfile.getFiletitle()); + afCollectTask.setC3(reportDownDto.getPatient().getJzh()); + save = this.afCollectTaskMapper.updateById(afCollectTask); + } else { + afCollectTask = new AfCollectTask(); + afCollectTask.setPatientId(patientId); + afCollectTask.setSysflag(reportDownDto.getCollectorid()); + afCollectTask.setState("0"); + afCollectTask.setSyncTime(date); + afCollectTask.setC1(scanfile.getSerialnum()); + afCollectTask.setC2(scanfile.getFiletitle()); + afCollectTask.setC3(reportDownDto.getPatient().getJzh()); + save = this.afCollectTaskMapper.insert(afCollectTask); + } + + if (save <= 0) { + this.log.info("封存任务表操作出错"); + throw new RuntimeException("封存插入病案任务表数据出错"); + } + + if (afCollectTask.getId() == null) { + this.log.info("封存插入任务id为空!"); + throw new RuntimeException("封存插入任务id为空"); + } + + scanfile.setTaskid(afCollectTask.getId()); + } + + reportDownDto.setScanfiles(scanfiles); + } + } + @Override + public void updateInterfaceCollect(String collectSubId, int state) { + AfInterfaceCollectSub afInterfaceCollectSub = (AfInterfaceCollectSub)this.afInterfaceCollectSubMapper.selectById(collectSubId); + if (afInterfaceCollectSub == null) { + throw new RuntimeException("afInterfaceCollectSub表数据为空"); + } else { + afInterfaceCollectSub.setState(state); + int i = this.afInterfaceCollectSubMapper.updateById(afInterfaceCollectSub); + if (i <= 0) { + throw new RuntimeException("记录任务数时出错"); + } else { + if (state == 1) { + AfInterfaceCollect afInterfaceCollect = (AfInterfaceCollect)this.afInterfaceCollectMapper.selectById(afInterfaceCollectSub.getAfInterfaceCollectId()); + afInterfaceCollect.setCompleteCount(afInterfaceCollect.getCompleteCount() + 1); + i = this.afInterfaceCollectMapper.updateById(afInterfaceCollect); + if (i <= 0) { + throw new RuntimeException("记录任务数时出错"); + } + } + + } + } + } + @Override + public List listJZHByDate(String date1, String date2) { + return this.afCollectTaskMapper.listJZHByDate(date1, date2); + } + @Override + public void invokeRepoalFile(CanlcelDto canlcelDto) throws Exception { + Map headMap = new HashMap(); + headMap.put("Content-Type", "application/json"); + this.log.info("开始文件撤回操作:" + canlcelDto); + String post = HttpUtils.post(String.valueOf(FileUtils.getJsonByName(Codes.REPOAL.getMessage())), headMap, (Map)JSON.parseObject(JSON.toJSONString(canlcelDto), Map.class)); + Map resMap = (Map)JSON.parseObject(post, Map.class); + if (String.valueOf(resMap.get("code")).equals("500")) { + this.log.error(String.valueOf(resMap.get("msg"))); + throw new RuntimeException(String.valueOf(resMap.get("msg"))); + } + } + @Override + public String selectJzh(String inPatientNo, String examApplyDate) { + return this.afCollectTaskMapper.selectJzh(inPatientNo, examApplyDate); + } + @Override + public String getAssortIdByAssortId(String assortId) { + return this.afCollectTaskMapper.getAssortIdByAssortId(assortId); + } + @Override + public String getAssortIdByAssortName(String assortId) { + return this.afCollectTaskMapper.getAssortIdByAssortName(assortId); + } + @Override + public void insertZdAssort(ZdAssort zdAssort) { + this.afCollectTaskMapper.insertZdAssort(zdAssort); + } + @Override + public int deleteByPatientIdAndCollectorId(String patientId, String collectorId) { + return this.afCollectTaskMapper.deleteByPatientIdAndCollectorId(patientId, collectorId); + } + @Override + public int deleteByPatientIdAndAssortId(String patientId, String assortId) { + return this.afCollectTaskMapper.deleteByPatientIdAndAssortId(patientId, assortId); + } + @Override + public int deleteByPatientIdAndSysFlag(String patientId, String sysFlag) { + return this.afCollectTaskMapper.deleteByPatientIdAndSysFlag(patientId, sysFlag); + } + @Override + public int updateNurseSubmitTime(ReportDownDto reportDownDto, String nurseSubmitTime, String nurseSubmitName) { + String patientId = this.getpatientIdByEmpId(reportDownDto.getPatient().getJzh()); + TBasicExtend tBasicExtend = this.tBasicExtendMapper.selectByPatientId(patientId); + int update = 0; + + try { + if (null != tBasicExtend) { + tBasicExtend.setNurseSubmitTime(new Date()); + update = this.tBasicExtendMapper.updatenurseSubmitTime(tBasicExtend); + if (null != patientId && null != tBasicExtend.getNurseSubmitTime()) { + Map headMap = new HashMap(); + headMap.put("Content-Type", "application/json"); + Map> params = new HashMap(); + List list = new ArrayList(); + list.add("护士"); + list.add((new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(tBasicExtend.getNurseSubmitTime())); + params.put(patientId, list); + params = (Map)JSON.parseObject(JSON.toJSONString(params), Map.class); + String post = HttpUtils.postSubmit("http://192.9.100.171:9102/basic/tlog/saveLog?nodeCode=again_submit&userName=" + nurseSubmitName + "&name=" + nurseSubmitName, headMap, params); + Map resMap = (Map)JSON.parseObject(post, Map.class); + long l7 = System.currentTimeMillis(); + if (String.valueOf(resMap.get("code")).equals("500")) { + this.log.info("调用示踪接口出错!" + String.valueOf(resMap.get("msg"))); + } else { + this.log.info("调用示踪接口返回值为--" + resMap); + } + } + } else { + TBasicExtend tBasicExtend1 = new TBasicExtend(); + tBasicExtend1.setPatientId(patientId); + tBasicExtend1.setNurseSubmitTime((new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).parse(nurseSubmitTime)); + update = this.tBasicExtendMapper.insert(tBasicExtend1); + } + } catch (Exception e) { + e.printStackTrace(); + this.log.error(e.getMessage()); + } + + return update; + } + @Override + public int updateDoctorSubmitTime(ReportDownDto reportDownDto, String doctorSubmitTime, String doctorSubmitName) { + String patientId = this.getpatientIdByEmpId(reportDownDto.getPatient().getJzh()); + TBasicExtend tBasicExtend = this.tBasicExtendMapper.selectByPatientId(patientId); + int update = 0; + this.log.info("医生提交方法------"); + + try { + SimpleDateFormat simple = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Date submitTime = simple.parse(doctorSubmitTime); + if (null != tBasicExtend) { + tBasicExtend.setDoctorSubmitTime(submitTime); + update = this.tBasicExtendMapper.updateDoctorSubmitTime(tBasicExtend); + + try { + if (null != patientId && null != tBasicExtend.getDoctorSubmitTime()) { + Map headMap = new HashMap(); + headMap.put("Content-Type", "application/json"); + Map> params = new HashMap(); + List list = new ArrayList(); + list.add("医生"); + list.add((new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(tBasicExtend.getDoctorSubmitTime())); + params.put(patientId, list); + params = (Map)JSON.parseObject(JSON.toJSONString(params), Map.class); + long l = System.currentTimeMillis(); + String post = HttpUtils.postSubmit("http://192.9.100.171:9102/basic/tlog/saveLog?nodeCode=again_submit&userName=" + doctorSubmitName + "&name=" + doctorSubmitName, headMap, params); + long l1 = System.currentTimeMillis(); + this.log.info("调用示踪接口耗时{}", l1 - l); + Map resMap = (Map)JSON.parseObject(post, Map.class); + long l7 = System.currentTimeMillis(); + if (String.valueOf(resMap.get("code")).equals("500")) { + this.log.info("调用示踪接口出错!" + resMap); + throw new RuntimeException(String.valueOf(resMap.get("msg"))); + } + + this.log.info("调用示踪接口返回----" + resMap); + } else { + this.log.info("未调用示踪接口-----"); + } + } catch (Exception e) { + this.log.error(e.getMessage()); + } + } else { + TBasicExtend tBasicExtend1 = new TBasicExtend(); + tBasicExtend1.setPatientId(patientId); + tBasicExtend1.setDoctorSubmitTime(submitTime); + update = this.tBasicExtendMapper.insert(tBasicExtend1); + } + } catch (Exception e) { + e.printStackTrace(); + this.log.error(e.getMessage()); + } + + return update; + } + @Override + public void insertNurseState(ReportDownDto reportDownDto, String nurseSubmitTime) { + TBasic tBasic = this.tBasicMapper.selectByjzh(reportDownDto.getPatient().getJzh()); + if (null == tBasic) { + throw new RuntimeException("操作的病案信息不存在"); + } else { + if (null != nurseSubmitTime && !"".equals(nurseSubmitTime)) { + tBasic.setNurseState(1); + int update = this.tBasicMapper.update(tBasic); + if (update > 0) { + this.log.info("护士提交状态修改成功!"); + } else { + this.log.info("护士提交状态修改失败!"); + } + } else { + tBasic.setNurseState(0); + int update = this.tBasicMapper.update(tBasic); + if (update > 0) { + this.log.info("护士提交状态修改成功!"); + } else { + this.log.info("护士提交状态修改失败!"); + } + } + + } + } + @Override + public void insertDoctorState(ReportDownDto reportDownDto, String doctorSubmitTime) { + TBasic tBasic = this.tBasicMapper.selectByjzh(reportDownDto.getPatient().getJzh()); + if (null == tBasic) { + throw new RuntimeException("操作的病案信息不存在"); + } else { + if (null != doctorSubmitTime && !"".equals(doctorSubmitTime)) { + tBasic.setDoctorState(1); + int update = this.tBasicMapper.update(tBasic); + if (update > 0) { + this.log.info("医生提交状态修改成功!"); + } else { + this.log.info("医生提交状态修改失败!"); + } + } else { + tBasic.setDoctorState(0); + int update = this.tBasicMapper.update(tBasic); + if (update > 0) { + this.log.info("医生提交状态修改成功!"); + } else { + this.log.info("医生提交状态修改失败!"); + } + } + + } + } + @Override + public TBasic selectDisDateIsNull(String inPatientNo) { + return this.afCollectTaskMapper.selectDisDateIsNull(inPatientNo); + } + @Override + public String selectDisDateIsNullJzh(String inPatientNo, String examApplyDate) { + return this.afCollectTaskMapper.selectDisDateIsNullJzh(inPatientNo, examApplyDate); + } + + @Override + public List getIdNos(String patientId, String collectorid) { + return this.afCollectTaskMapper.getIdNos(patientId, collectorid); + } + + @Override + public int cacelScanAssort(String patientId, String collectorid) { + return this.afCollectTaskMapper.cacelScanAssort(patientId,collectorid); + } +} diff --git a/src/main/java/com/docus/bgts/service/MrReportErrorServiceImpl.java b/src/main/java/com/docus/bgts/service/MrReportErrorServiceImpl.java new file mode 100644 index 0000000..879d92d --- /dev/null +++ b/src/main/java/com/docus/bgts/service/MrReportErrorServiceImpl.java @@ -0,0 +1,36 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.service; + +import com.docus.bgts.entity.MrReportError; +import com.docus.bgts.facade.IMrReportErrorService; +import com.docus.bgts.mapper.MrReportErrorMapper; +import com.docus.bgts.utils.FileUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.Date; + +@Service +public class MrReportErrorServiceImpl implements IMrReportErrorService { + private static final Logger log = LoggerFactory.getLogger(MrReportErrorServiceImpl.class); + @Autowired + MrReportErrorMapper mrReportErrorMapper; + + @Override + public void insert(String xml) { + log.info("------发送错误:并记录日志------"); + MrReportError mrReportError = new MrReportError(); + mrReportError.setXml(xml); + mrReportError.setCreateTime(new Date()); + Integer collectorid = Integer.valueOf(String.valueOf(FileUtils.getJsonByName("collectorid"))); + mrReportError.setReportType(collectorid); + this.mrReportErrorMapper.save(mrReportError); + log.info("--------日志记录完成------"); + } +} diff --git a/src/main/java/com/docus/bgts/utils/FileUtils.java b/src/main/java/com/docus/bgts/utils/FileUtils.java new file mode 100644 index 0000000..d1ca530 --- /dev/null +++ b/src/main/java/com/docus/bgts/utils/FileUtils.java @@ -0,0 +1,40 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.utils; + +import com.alibaba.fastjson.JSON; +import com.docus.bgts.enums.Codes; +import java.io.File; +import java.io.IOException; +import java.util.Map; + +public class FileUtils { + public static String currentPath() { + File dir = new File("."); + String currentpath = ""; + + try { + currentpath = dir.getCanonicalPath(); + } catch (IOException e) { + e.printStackTrace(); + } + + return currentpath; + } + + public static Object getJsonByName(String name) { + String path = currentPath(); + String json = JsonUtils.readJsonFile(path + Codes.JSON_ADDRESS.getMessage()); + Map jsonMap = (Map)JSON.parseObject(json, Map.class); + return jsonMap.get(name); + } + + public static String readJsonFromCurrentProject(String fileName) { + String path = currentPath(); + String filePath = path + File.separator + fileName; + return JsonUtils.readJsonFile(filePath); + } +} diff --git a/src/main/java/com/docus/bgts/utils/HttpUtils.java b/src/main/java/com/docus/bgts/utils/HttpUtils.java new file mode 100644 index 0000000..5e5a761 --- /dev/null +++ b/src/main/java/com/docus/bgts/utils/HttpUtils.java @@ -0,0 +1,191 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.utils; + +import com.alibaba.fastjson.JSON; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URISyntaxException; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import org.apache.http.HttpEntity; +import org.apache.http.NameValuePair; +import org.apache.http.client.ClientProtocolException; +import org.apache.http.client.entity.UrlEncodedFormEntity; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.client.methods.HttpRequestBase; +import org.apache.http.client.methods.RequestBuilder; +import org.apache.http.client.utils.URIBuilder; +import org.apache.http.entity.ContentType; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; +import org.apache.http.message.BasicNameValuePair; +import org.apache.http.util.EntityUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class HttpUtils { + private static final Logger log = LoggerFactory.getLogger(HttpUtils.class); + private static PoolingHttpClientConnectionManager cm; + private static String EMPTY_STR = ""; + private static String UTF_8 = "UTF-8"; + + private static void init() { + if (cm == null) { + cm = new PoolingHttpClientConnectionManager(); + cm.setMaxTotal(50); + cm.setDefaultMaxPerRoute(5); + } + + } + + private static CloseableHttpClient getHttpClient() { + init(); + return HttpClients.custom().setConnectionManager(cm).build(); + } + + public static String get(String url) { + HttpGet httpGet = new HttpGet(url); + return getResult((HttpRequestBase)httpGet); + } + + public static String get(String url, Map params) throws URISyntaxException { + URIBuilder ub = new URIBuilder(); + ub.setPath(url); + ArrayList pairs = covertParams2NVPS(params); + ub.setParameters(pairs); + HttpGet httpGet = new HttpGet(ub.build()); + return getResult((HttpRequestBase)httpGet); + } + + public static String get(String url, Map headers, Map params) throws URISyntaxException { + URIBuilder ub = new URIBuilder(); + ub.setPath(url); + if (params != null) { + ArrayList pairs = covertParams2NVPS(params); + ub.setParameters(pairs); + } + + HttpGet httpGet = new HttpGet(ub.build()); + + for(Map.Entry param : headers.entrySet()) { + httpGet.addHeader((String)param.getKey(), String.valueOf(param.getValue())); + } + + return getResult((HttpRequestBase)httpGet); + } + + public static String post(String url) { + HttpPost httpPost = new HttpPost(url); + return getResult((HttpRequestBase)httpPost); + } + + public static String post(String url, Map params) throws UnsupportedEncodingException { + HttpPost httpPost = new HttpPost(url); + httpPost.setEntity(new UrlEncodedFormEntity(covertParams2NVPS(params), "utf-8")); + return getResult((HttpRequestBase)httpPost); + } + + public static String post(String url, Object params, Map head) throws UnsupportedEncodingException { + HttpPost httpPost = new HttpPost(url); + System.out.println(params); + httpPost.setEntity(new StringEntity(params.toString())); + if (params != null) { + for(Map.Entry param : head.entrySet()) { + httpPost.addHeader((String)param.getKey(), String.valueOf(param.getValue())); + } + } + + return getResult((HttpRequestBase)httpPost); + } + + private static ArrayList covertParams2NVPS(Map params) { + ArrayList pairs = new ArrayList(); + + for(Map.Entry param : params.entrySet()) { + if (param.getValue() != null) { + pairs.add(new BasicNameValuePair((String)param.getKey(), (String)param.getValue())); + } + } + + return pairs; + } + + public static String post(String url, Map headers, Map params) throws UnsupportedEncodingException { + HttpPost httpPost = new HttpPost(url); + System.out.println(params); + if (params != null) { + for(Map.Entry param : headers.entrySet()) { + httpPost.addHeader((String)param.getKey(), String.valueOf(param.getValue())); + } + } + + log.info("调用下载参数----" + JSON.toJSONString(params)); + httpPost.setEntity(new StringEntity(JSON.toJSONString(params), ContentType.APPLICATION_JSON)); + return getResult((HttpRequestBase)httpPost); + } + + public static String postSubmit(String url, Map headers, Map> params) throws UnsupportedEncodingException { + HttpPost httpPost = new HttpPost(url); + if (params != null) { + for(Map.Entry param : headers.entrySet()) { + httpPost.addHeader((String)param.getKey(), String.valueOf(param.getValue())); + } + } + + httpPost.setEntity(new StringEntity(JSON.toJSONString(params), ContentType.APPLICATION_JSON)); + return getResult((HttpRequestBase)httpPost); + } + + private static String getResult(HttpRequestBase request) { + CloseableHttpClient httpClient = getHttpClient(); + + try { + CloseableHttpResponse response = httpClient.execute(request); + HttpEntity entity = response.getEntity(); + if (entity != null) { + String result = EntityUtils.toString(entity, UTF_8); + response.close(); + return result; + } + } catch (ClientProtocolException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } finally { + ; + } + + return EMPTY_STR; + } + + private static String getResult(RequestBuilder requestBuilder) { + CloseableHttpClient httpClient = getHttpClient(); + + try { + CloseableHttpResponse response = httpClient.execute(requestBuilder.build()); + HttpEntity entity = response.getEntity(); + if (entity != null) { + String result = EntityUtils.toString(entity, UTF_8); + response.close(); + return result; + } + } catch (ClientProtocolException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } finally { + ; + } + + return EMPTY_STR; + } +} diff --git a/src/main/java/com/docus/bgts/utils/JsonUtils.java b/src/main/java/com/docus/bgts/utils/JsonUtils.java new file mode 100644 index 0000000..28e35bf --- /dev/null +++ b/src/main/java/com/docus/bgts/utils/JsonUtils.java @@ -0,0 +1,50 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.utils; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.Reader; + +public class JsonUtils { + public static String readJsonFile(String fileName) { + String jsonStr = ""; + Reader reader = null; + FileReader fileReader = null; + + try { + File jsonFile = new File(fileName); + fileReader = new FileReader(jsonFile); + reader = new InputStreamReader(new FileInputStream(jsonFile), "utf-8"); + int ch = 0; + StringBuffer sb = new StringBuffer(); + + while((ch = reader.read()) != -1) { + sb.append((char)ch); + } + + fileReader.close(); + reader.close(); + jsonStr = sb.toString(); + String var7 = jsonStr; + return var7; + } catch (IOException e) { + e.printStackTrace(); + return null; + } finally { + try { + reader.close(); + fileReader.close(); + } catch (IOException e) { + e.printStackTrace(); + } + + } + } +} diff --git a/src/main/java/com/docus/bgts/utils/ResultUtils.java b/src/main/java/com/docus/bgts/utils/ResultUtils.java new file mode 100644 index 0000000..cdcc5d2 --- /dev/null +++ b/src/main/java/com/docus/bgts/utils/ResultUtils.java @@ -0,0 +1,65 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.utils; + +import org.apache.commons.lang3.StringUtils; +import org.dom4j.Document; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; + +public class ResultUtils { + private static ResultUtils resultUtils = new ResultUtils(); + private static String successCode = String.valueOf(FileUtils.getJsonByName("successCode")); + private static String errorCode = String.valueOf(FileUtils.getJsonByName("errorCode")); + + private ResultUtils() { + } + + public static Element getElement(Document response) { + Element element = response.getRootElement(); + return element; + } + + private Document set(String code, String msg) { + Document document = DocumentHelper.createDocument(); + String resHead = String.valueOf(FileUtils.getJsonByName("ResHead")); + if (StringUtils.isBlank(resHead)) { + throw new RuntimeException("响应外层xml未设置"); + } else { + Element response = null; + String[] split = resHead.split(","); + + for(int i = 0; i < split.length; ++i) { + if (i == 0) { + response = document.addElement(split[i]); + } else { + response = response.addElement(split[i]); + } + } + + Element resCode = response.addElement(String.valueOf(FileUtils.getJsonByName("ResCode"))); + Element retCon = response.addElement(String.valueOf(FileUtils.getJsonByName("ResMsg"))); + resCode.setText(code); + retCon.setText(msg); + return document; + } + } + + public static Document success() { + Document document = resultUtils.set(successCode, "成功"); + return document; + } + + public static String fail() { + Document set = resultUtils.set(errorCode, "失败"); + return set.asXML(); + } + + public static String fail(String message) { + Document set = resultUtils.set(String.valueOf(errorCode), StringUtils.isNotBlank(message) ? message : "失败"); + return set.asXML(); + } +} diff --git a/src/main/java/com/docus/bgts/utils/XmlUtils.java b/src/main/java/com/docus/bgts/utils/XmlUtils.java new file mode 100644 index 0000000..466a9fb --- /dev/null +++ b/src/main/java/com/docus/bgts/utils/XmlUtils.java @@ -0,0 +1,119 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package com.docus.bgts.utils; + +import com.alibaba.fastjson.JSON; +import com.docus.bgts.enums.Codes; +import org.dom4j.Document; +import org.dom4j.DocumentException; +import org.dom4j.Element; +import org.dom4j.io.SAXReader; + +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +public class XmlUtils { + private SAXReader saxReader = new SAXReader(); + private Document document; + + public Document getDocument() { + return this.document; + } + + public XmlUtils(String path) { + try { + this.document = this.saxReader.read(path); + } catch (DocumentException e) { + e.printStackTrace(); + } + + } + + public XmlUtils(InputStream path) { + try { + this.document = this.saxReader.read(path); + } catch (DocumentException e) { + e.printStackTrace(); + } + + } + + public String getElement(String name) { + Element root = this.document.getRootElement(); + Object directory = FileUtils.getJsonByName(Codes.DIRECTORY.getMessage()); + Element current = root; + if (directory == null) { + throw new RuntimeException("没有定义目录结构"); + } else { + + List list = JSON.parseArray(JSON.toJSONString(directory), String.class); + for(String dire : list) { + current = current.element(dire); + } + + return current.element(name) == null ? "" : current.element(name).getText(); + } + } + + public Element getElement(List directory) { + Element root = this.document.getRootElement(); + Element current = root; + + for(String dire : directory) { + current = current.element(dire); + } + + if (current == null) { + throw new RuntimeException("未找到对应节点"); + } else { + return current; + } + } + + public List getJsonByName(Element root) { + String path = FileUtils.currentPath(); + String json = JsonUtils.readJsonFile(path + Codes.JSON_ADDRESS.getMessage()); + Map jsonMap = (Map)JSON.parseObject(json, Map.class); + List basicArr = (List)jsonMap.get("doubleBasic"); + List elements = null; + + for(String basic : basicArr) { + elements = root.elements(basic); + if (elements != null && elements.size() > 0) { + break; + } + } + + if (elements == null || elements.size() == 0) { + elements = new ArrayList(); + elements.add(root); + } + + return elements; + } + + public Element getMsgElement() { + String path = FileUtils.currentPath(); + String json = JsonUtils.readJsonFile(path + Codes.JSON_ADDRESS.getMessage()); + Map jsonMap = (Map)JSON.parseObject(json, Map.class); + List directory = (List)jsonMap.get("directory"); + Element root = this.getElement(directory); + return root; + } + + public String getElementText(String name) { + Element root = this.document.getRootElement(); + Element msg = root.element(Codes.MSG.getMessage()); + if (msg == null) { + throw new RuntimeException("没有" + Codes.MSG.getMessage() + "节点"); + } else { + Element element = msg.element(name); + return element == null ? null : element.getText(); + } + } +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..dd1af26 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,28 @@ +server: + port: 9205 +# http + +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + call-setters-on-nulls: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + db-config: + field-strategy: NOT_EMPTY + db-type: MYSQL +beat: + url: http://localhost:9399/beat + +system: + code: "empcllect" + prop: 9405 +# web service + + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: docus + password: docus702 + url: jdbc:mysql://localhost:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true&allowMultiQueries=true \ No newline at end of file diff --git a/src/main/resources/config/application-广东省中医院住院检验.yml b/src/main/resources/config/application-广东省中医院住院检验.yml new file mode 100644 index 0000000..0ebbec1 --- /dev/null +++ b/src/main/resources/config/application-广东省中医院住院检验.yml @@ -0,0 +1,28 @@ +server: + port: 9402 +# http + +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + call-setters-on-nulls: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + db-config: + field-strategy: NOT_EMPTY + db-type: MYSQL +beat: + url: http://localhost:9399/beat + +system: + code: "201_P_WS_JYBGTS" + prop: 9202 +# web service + + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: docus + password: docus702 + url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true \ No newline at end of file diff --git a/src/main/resources/config/application-广东省中医院住院病理.yml b/src/main/resources/config/application-广东省中医院住院病理.yml new file mode 100644 index 0000000..62ca797 --- /dev/null +++ b/src/main/resources/config/application-广东省中医院住院病理.yml @@ -0,0 +1,28 @@ +server: + port: 9403 +# http + +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + call-setters-on-nulls: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + db-config: + field-strategy: NOT_EMPTY + db-type: MYSQL +beat: + url: http://localhost:9399/beat + +system: + code: "204_P_WS_BLBGTS" + prop: 9203 +# web service + + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: docus + password: docus702 + url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true \ No newline at end of file diff --git a/src/main/resources/config/application-广东省中医院住院获取PDF.yml b/src/main/resources/config/application-广东省中医院住院获取PDF.yml new file mode 100644 index 0000000..7045fe6 --- /dev/null +++ b/src/main/resources/config/application-广东省中医院住院获取PDF.yml @@ -0,0 +1,28 @@ +server: + port: 9205 +# http + +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + call-setters-on-nulls: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + db-config: + field-strategy: NOT_EMPTY + db-type: MYSQL +beat: + url: http://localhost:9399/beat + +system: + code: "EmrDocAr" + prop: 9805 +# web service + + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: docus + password: docus702 + url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true \ No newline at end of file diff --git a/src/main/resources/config/application-广东省护理文书.yml b/src/main/resources/config/application-广东省护理文书.yml new file mode 100644 index 0000000..f6502e9 --- /dev/null +++ b/src/main/resources/config/application-广东省护理文书.yml @@ -0,0 +1,28 @@ +server: + port: 9404 +# http + +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + call-setters-on-nulls: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + db-config: + field-strategy: NOT_EMPTY + db-type: MYSQL +beat: + url: http://localhost:9399/beat + +system: + code: "Nursing_documents" + prop: 9204 +# web service + + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: docus + password: docus702 + url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true \ No newline at end of file diff --git a/src/main/resources/config/application-梅州人民医院电子病历.yml b/src/main/resources/config/application-梅州人民医院电子病历.yml new file mode 100644 index 0000000..8ea2999 --- /dev/null +++ b/src/main/resources/config/application-梅州人民医院电子病历.yml @@ -0,0 +1,28 @@ +server: + port: 9701 +# http + +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + call-setters-on-nulls: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + db-config: + field-strategy: NOT_EMPTY + db-type: MYSQL +beat: + url: http://localhost:9399/beat + +system: + code: "EmrDocAr" + prop: 9801 +# web service + + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: docus + password: docus702 + url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true \ No newline at end of file diff --git a/src/main/resources/config/广东省中医院住院电子病历采集-application.yml b/src/main/resources/config/广东省中医院住院电子病历采集-application.yml new file mode 100644 index 0000000..eee35fd --- /dev/null +++ b/src/main/resources/config/广东省中医院住院电子病历采集-application.yml @@ -0,0 +1,28 @@ +server: + port: 9205 +# http + +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + call-setters-on-nulls: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + db-config: + field-strategy: NOT_EMPTY + db-type: MYSQL +beat: + url: http://localhost:9399/beat + +system: + code: "empcllect" + prop: 9405 +# web service + + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: docus + password: docus702 + url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true \ No newline at end of file diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..8eaaca4 --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,51 @@ + + + + + + + + [%d{yyyy-MM-dd' 'HH:mm:ss.sss}] [%contextName] [%thread] [%X{traceId}] %-5level %logger{36} - %msg%n + + UTF-8 + + + + + + + configLog/log.log + + + + + + log/demo.%d.%i.log + + 180 + + + 10MB + + + + + + [%d{yyyy-MM-dd' 'HH:mm:ss.sss}] [%C] [%t] [%X{traceId}] [%L] [%-5p] %m%n + + utf-8 + + UTF-8 + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mapper/AfCollectTaskMapper.xml b/src/main/resources/mapper/AfCollectTaskMapper.xml new file mode 100644 index 0000000..2c8e811 --- /dev/null +++ b/src/main/resources/mapper/AfCollectTaskMapper.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + insert into zd_assort(assort_id,assort_name,effective) values(#{zdAssort.assortId},#{zdAssort.assortName},#{zdAssort.effective}) + + + + delete from af_downfile where + patient_id=#{patientId} and collectorid=#{collectorId} + + + + delete from t_scan_assort where + patient_id=#{patientId} and assort_id=#{assortId} + + + delete from af_collect_task where + patient_id=#{patientId} and sysflag=#{sysFlag} + + + + insert into docus_medicalrecord.cqc_submit_state(patient_id,doctor_state,nurse_state) values(#{patientId},#{doctorState},#{nurseState}) + + + + update docus_medicalrecord.cqc_submit_state + + + doctor_state=#{doctorState}, + + + + nurse_state=#{nurseState}, + + + where patient_id=#{patientId} + + + update t_scan_assort + set is_del = 1 + where patient_id=#{patientId} and source=#{collectorId} + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mapper/MrReportErrorMapper.xml b/src/main/resources/mapper/MrReportErrorMapper.xml new file mode 100644 index 0000000..9fc0e14 --- /dev/null +++ b/src/main/resources/mapper/MrReportErrorMapper.xml @@ -0,0 +1,12 @@ + + + + + + insert into docus_medicalrecord.mr_report_error(xml,report_type,create_time) + values(#{mrReportError.xml},#{mrReportError.reportType},#{mrReportError.createTime}) + + + \ No newline at end of file diff --git a/src/main/resources/mapper/TBasicExtendMapper.xml b/src/main/resources/mapper/TBasicExtendMapper.xml new file mode 100644 index 0000000..66b3341 --- /dev/null +++ b/src/main/resources/mapper/TBasicExtendMapper.xml @@ -0,0 +1,27 @@ + + + + + update docus_medicalrecord.t_basic_extend + set nurse_submit_time=#{nurseSubmitTime} + where patient_id=#{patientId} + + + update docus_medicalrecord.t_basic_extend + set doctor_submit_time=#{doctorSubmitTime} + where patient_id=#{patientId} + + + + insert into docus_medicalrecord.t_basic_extend (patient_id,claim_policy_code,claim_policy_name,mio_settle_type_code,mio_settle_type_name,doctor_submit_time,nurse_submit_time,duty_nurse) + values (#{patientId},#{claimPolicyCode},#{claimPolicyName},#{mioSettleTypeCode},#{mioSettleTypeName},#{doctorSubmitTime},#{nurseSubmitTime},#{dutyNurse}) + + \ No newline at end of file diff --git a/src/main/resources/mapper/TBasicMapper.xml b/src/main/resources/mapper/TBasicMapper.xml new file mode 100644 index 0000000..b22360c --- /dev/null +++ b/src/main/resources/mapper/TBasicMapper.xml @@ -0,0 +1,76 @@ + + + + + update docus_medicalrecord.t_basic + + + IPAddress=#{pcmachine.ipaddress}, + + + LastOnline=#{pcmachine.lastonline}, + + + PCStatus=#{pcmachine.pcstatus} + + + IPAddress=#{pcmachine.ipaddress}, + + + LastOnline=#{pcmachine.lastonline}, + + + PCStatus=#{pcmachine.pcstatus} + + + IPAddress=#{pcmachine.ipaddress}, + + + LastOnline=#{pcmachine.lastonline}, + + + PCStatus=#{pcmachine.pcstatus} + + + IPAddress=#{pcmachine.ipaddress}, + + + LastOnline=#{pcmachine.lastonline}, + + + PCStatus=#{pcmachine.pcstatus} + + + IPAddress=#{pcmachine.ipaddress}, + + + LastOnline=#{pcmachine.lastonline}, + + + PCStatus=#{pcmachine.pcstatus} + + + where id=#{pcmachine.id} + + + + UPDATE docus_medicalrecord.t_basic + + doctor_state = #{doctorState}, + nurse_state = #{nurseState}, + + WHERE patient_id = #{patientId} + + + + \ No newline at end of file diff --git a/src/main/resources/mapper/TScanAssortMapper.xml b/src/main/resources/mapper/TScanAssortMapper.xml new file mode 100644 index 0000000..89d3ddd --- /dev/null +++ b/src/main/resources/mapper/TScanAssortMapper.xml @@ -0,0 +1,10 @@ + + + + +update docus_archivefile.t_scan_assort set patient_id=#{patientId},assort_id='Wiw213woq412awqe42' where patient_id=#{PrePatientId} + + + \ No newline at end of file