dataMap) {
+ this.dataMap = dataMap;
+ }
+
+ public void put(String name, Object value) {
+ this.dataMap.put(name, value);
+ }
+}
diff --git a/src/main/java/com/example/util/Msg.java b/src/main/java/com/example/util/Msg.java
new file mode 100644
index 0000000..6f898fc
--- /dev/null
+++ b/src/main/java/com/example/util/Msg.java
@@ -0,0 +1,71 @@
+/**
+ *
+ */
+package com.example.util;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Title:Msg
+ * Description:common return class
+ * Company:
+ * @author hu
+ * @date
+ */
+public class Msg {
+ //state:100-success 200-fail
+ private int code;
+ //提示信息
+ private String msg;
+ //用户要返回给浏览器的数据
+ private Map extend=new HashMap();
+
+
+
+ public static Msg fail(String msg){
+ Msg result=new Msg();
+ result.setCode(100);
+ result.setMsg(msg);
+ return result;
+ }
+
+
+ public static Msg success(String msg){
+ Msg result=new Msg();
+ result.setCode(200);
+ result.setMsg(msg);
+ return result;
+ }
+
+ public Msg add(String key, Object value){
+ this.getExtend().put(key, value);
+ return this;
+ }
+
+
+ public int getCode() {
+ return code;
+ }
+
+ public void setCode(int code) {
+ this.code = code;
+ }
+
+ public String getMsg() {
+ return msg;
+ }
+
+ public void setMsg(String msg) {
+ this.msg = msg;
+ }
+
+ public Map getExtend() {
+ return extend;
+ }
+
+ public void setExtend(Map extend) {
+ this.extend = extend;
+ }
+
+}
diff --git a/src/main/java/com/example/util/ResultCode.java b/src/main/java/com/example/util/ResultCode.java
new file mode 100644
index 0000000..f12a66a
--- /dev/null
+++ b/src/main/java/com/example/util/ResultCode.java
@@ -0,0 +1,42 @@
+package com.example.util;
+
+
+/**
+ * @Description 枚举一些常用API操作码
+ * @Author JacksonTu
+ * @Date 2020/3/28 16:26
+ */
+public enum ResultCode implements IErrorCode {
+
+ SUCCESS(0, "操作成功"),
+ FAILED(500, "操作失败"),
+ VALIDATE_FAILED(404, "参数检验失败"),
+ UNAUTHORIZED(401, "暂未登录或token已经过期"),
+ FORBIDDEN(403, "没有相关权限"),
+ PREVENT_REPLAY(405,"重复请求"),
+ NOT_EXIST(601,"数据不存在"),
+ NOT_ENABLE(600,"数据未启用");
+
+
+
+
+ private Integer code;
+ private String message;
+
+ private ResultCode(Integer code, String message) {
+ this.code = code;
+ this.message = message;
+ }
+
+ @Override
+ public Integer getCode() {
+ return code;
+ }
+
+ @Override
+ public String getMessage() {
+ return message;
+ }
+
+
+}
diff --git a/src/main/java/com/example/vo/ArchiveDetailVo.java b/src/main/java/com/example/vo/ArchiveDetailVo.java
new file mode 100644
index 0000000..d2d03b0
--- /dev/null
+++ b/src/main/java/com/example/vo/ArchiveDetailVo.java
@@ -0,0 +1,18 @@
+package com.example.vo;
+
+import lombok.Data;
+
+/**
+ * @ClassName Archive_detail
+ * @Author linjj
+ * @Date 2024/3/10 20:59
+ * @Version 1.0
+ */
+@Data
+public class ArchiveDetailVo {
+
+ private String id;
+
+ private String pdfPath;
+
+}
diff --git a/src/main/java/com/example/vo/ArchiveMasterVo.java b/src/main/java/com/example/vo/ArchiveMasterVo.java
new file mode 100644
index 0000000..a97ff29
--- /dev/null
+++ b/src/main/java/com/example/vo/ArchiveMasterVo.java
@@ -0,0 +1,30 @@
+package com.example.vo;
+
+import lombok.Data;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+/**
+ * @ClassName ArchiveMasterVo
+ * @Description
+ * @Author linjj
+ * @Date 2024/1/18 9:33
+ * @Version 1.0
+ */
+@Data
+public class ArchiveMasterVo {
+
+ //病案id
+ private String id;
+ //患者姓名
+ private String name;
+ //住院次数
+ private String visitId;
+ //住院号
+ private String inpNo;
+ //入院时间
+ private String admissionDateTime;
+ //出院时间
+ private String dischargeDateTime;
+ //记帐号
+ private String patientId;
+}
diff --git a/src/main/java/com/example/vo/MedicaRecordVo.java b/src/main/java/com/example/vo/MedicaRecordVo.java
new file mode 100644
index 0000000..3d73eb7
--- /dev/null
+++ b/src/main/java/com/example/vo/MedicaRecordVo.java
@@ -0,0 +1,30 @@
+package com.example.vo;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * @ClassName MedicaRecordVo
+ * @Author linjj
+ * @Date 2025/3/25 12:03
+ * @Version 1.0
+ */
+@Data
+@TableName("v_select_medica_record")
+public class MedicaRecordVo {
+ private String id;
+ //记帐号
+ private String medicaRecord;
+ //住院次数
+ private String visitId;
+ //患者姓名
+ private String patientName;
+ //导出时间
+ private Date exportTime;
+ //pdf下载地址
+ private String pdfPath;
+
+}
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
new file mode 100644
index 0000000..da19d9b
--- /dev/null
+++ b/src/main/resources/application.properties
@@ -0,0 +1,17 @@
+server.port=3397
+
+# SQL Server ?????
+spring.datasource.hikari.db1.jdbc-url=jdbc:sqlserver://127.0.0.1:1433;DatabaseName=DB_PrivilegeManagement_GYFY
+spring.datasource.hikari.db1.username=sa
+spring.datasource.hikari.db1.password=docus@702
+spring.datasource.hikari.db1.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
+
+# MySQL??
+spring.datasource.hikari.db2.jdbc-url=jdbc:mysql://10.6.3.80:3306/gzykd_spd
+spring.datasource.hikari.db2.username=baxt
+spring.datasource.hikari.db2.password=123456
+spring.datasource.hikari.db2.driver-class-name=com.mysql.cj.jdbc.Driver
+
+# MyBatis-Plus ??
+mybatis-plus.mapper-locations=classpath:mapper/db1/*.xml,classpath:mapper/db2/*.xml
+mybatis-plus.type-aliases-package=com.example.vo
\ No newline at end of file
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
new file mode 100644
index 0000000..6b69383
--- /dev/null
+++ b/src/main/resources/application.yml
@@ -0,0 +1,4 @@
+#文件保存路径
+savePath: Z:\Consumables\reload
+#定时补偿任务时间
+quartzTime: 0 0/30 * * * ?
diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml
new file mode 100644
index 0000000..f162fd5
--- /dev/null
+++ b/src/main/resources/logback.xml
@@ -0,0 +1,42 @@
+
+
+ logback
+
+
+
+
+ %d{HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
+
+
+
+
+
+ true
+
+
+ consumables_zj/%d{yyyy-MM-dd}/%d{yyyy-MM-dd}.log
+
+
+
+
+ %d{yyyy-MM-dd HH:mm:ss} -%msg%n
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/mapper/db1/ArchiveDetailrMapper.xml b/src/main/resources/mapper/db1/ArchiveDetailrMapper.xml
new file mode 100644
index 0000000..a8d2b3d
--- /dev/null
+++ b/src/main/resources/mapper/db1/ArchiveDetailrMapper.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+ insert into archive_detail(ID, PDF_PATH, MasterID, UpLoadDateTime, AssortID, Source, Title, flag, Sys,C1)
+ values (#{id}, #{pdfPath}, #{masterId}, #{upLoadDateTime}, #{assortId},
+ #{source},
+ #{title}, #{flag}, #{sys}, #{C1})
+
+
+ insert into
+ archive_detail(id,PDF_PATH,MasterID,UpLoadDateTime,AssortID,Source,Title,flag,Sys,C1
+ )
+ values
+
+ (replace(newid(), '-', ''),#{item.pdfPath},#{item.masterId},#{item.uploadDateTime},#{item.assortId},#{item.source},
+ #{item.title},#{item.flag},#{item.sys})
+
+
+
+ delete from archive_detail
+ where c1 = #{C1} AND AssortID='61'
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/db1/ArchiveMasterMapper.xml b/src/main/resources/mapper/db1/ArchiveMasterMapper.xml
new file mode 100644
index 0000000..36e2510
--- /dev/null
+++ b/src/main/resources/mapper/db1/ArchiveMasterMapper.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/db1/ArchiveOtherDao.xml b/src/main/resources/mapper/db1/ArchiveOtherDao.xml
new file mode 100644
index 0000000..24d839e
--- /dev/null
+++ b/src/main/resources/mapper/db1/ArchiveOtherDao.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+ insert into archive_other_ext(ID, SycTime, SycObj, otherID, sysFlag, sysUpdateTime, jzh, stime, eTime,statusFlag,pResult,MID,C2)
+ values (#{id}, #{SycTime}, #{SycObj}, #{otherID}, #{sysFlag},
+ #{sysUpdateTime},#{jzh}, #{stime}, #{eTime}, #{statusFlag}, #{pResult}, #{MID}, #{C2})
+
+
+ update archive_other_ext
+
+
+ sysUpdateTime = #{sysUpdateTime},
+
+
+ stime = #{stime},
+
+
+ eTime = #{eTime},
+
+
+ statusFlag = #{statusFlag},
+
+
+ pResult = #{pResult},
+
+
+ C1 = #{C1},
+
+
+ DID = #{DID},
+
+
+ where C2 = #{C2}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/db2/MedicaRecordDao.xml b/src/main/resources/mapper/db2/MedicaRecordDao.xml
new file mode 100644
index 0000000..a0e4d63
--- /dev/null
+++ b/src/main/resources/mapper/db2/MedicaRecordDao.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
\ No newline at end of file