瀏覽代碼

天资配置

lighter 4 月之前
父節點
當前提交
89629e50cf

+ 3 - 3
pom.xml

@@ -3,9 +3,9 @@
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
     <groupId>cn.hnthyy</groupId>
-    <artifactId>thmz_system</artifactId>
-    <version>0.0.1-SNAPSHOT</version>
-    <name>thmz_system</name>
+    <artifactId>thmz</artifactId>
+    <version>1</version>
+    <name>thmz</name>
     <description>泰和医院门诊收费系统</description>
 
     <parent>

+ 0 - 3
src/main/java/cn/hnthyy/thmz/interceptor/AuthenticationInterceptor.java

@@ -22,14 +22,11 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.method.HandlerMethod;
 import org.springframework.web.servlet.HandlerInterceptor;
 import org.springframework.web.servlet.ModelAndView;
-import sun.util.calendar.BaseCalendar;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import java.lang.reflect.Method;
 import java.util.Date;
-import java.util.Map;
-import java.util.concurrent.ConcurrentHashMap;
 
 /**
  * token拦截器

+ 170 - 0
src/main/resources/application-pnfy.yml

@@ -0,0 +1,170 @@
+server:
+  #端口号
+  port: 8089
+  #tomcat 日志
+  tomcat:
+    accesslog:
+      buffered: true
+      directory: /home/logs/thmz
+      enabled: true
+      file-date-format: .yyyy-MM-dd
+      pattern: common
+      prefix: access_log
+      rename-on-rotate: false
+      request-attributes-enabled: false
+      rotate: true
+      suffix: .log
+#项目名,如果不设定,默认是 /
+  servlet:
+    context-path: "/thmz"
+spring:
+  #jackson:
+    #date-format: "yyyy-MM-dd HH:mm:ss"
+    #设置为东八区时间
+    #timezone: GMT+8
+    #serialization:
+    #使用数值timestamp表示日期
+    #write-dates-as-timestamps: true
+    #想要值为2019-01-01
+    #write-dates-as-timestamps: false
+  servlet:
+    multipart:
+      #单个文件大小
+      max-file-size: 200MB
+      #单次请求总文件大小
+      max-request-size: 1000MB
+  datasource:
+    his:
+      jdbc-url: "jdbc:sqlserver://172.16.20.118:1433;databaseName=hisdb"
+      username: "sa"
+      password: "Tzsoft@2025"
+      driver-class-name: "com.microsoft.sqlserver.jdbc.SQLServerDriver"
+    durid:
+      #type: com.alibaba.druid.pool.DruidDataSource
+      #初始化时建立物理连接的个数。初始化发生在显示调用init方法,或者第一次getConnection时
+      initial-size: 50
+      #最大连接池数量
+      max-active: 120
+      #最小连接池数量
+      min-idle: 50
+      #获取连接时最大等待时间,单位毫秒
+      max-wait: 80000
+      #使用非公平锁。
+      use-unfair-lock: true
+      #用来检测连接是否有效的sql,要求是一个查询语句。
+      validation-query: SELECT 1
+      #建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
+      test-while-idle: true
+      #申请连接时执行validationQuery检测连接是否有效,
+      test-on-borrow: true
+      #归还连接时执行validationQuery检测连接是否有效,
+      test-on-return: false
+      #Destroy线程会检测连接的间隔时间,testWhileIdle的判断依据,详细看testWhileIdle属性的说明
+      time-between-eviction-runs-millis: 80000
+      #配置一个连接在池中最小生存的时间,单位是毫秒
+      min-evictable-idle-time-millis: 400000
+      #监控统计用的filter:stat  日志用的filter:log4j    防御sql注入的filter:wall
+      filters: stat
+      #是否缓存preparedStatement,也就是PSCache,在mysql5.5以下的版本中没有PSCache功能,建议关闭掉
+      pool-prepared-statements: false
+      #要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true。
+      max-pool-prepared-statement-per-connection-size: 200
+      #对于长时间不使用的连接强制关闭
+      remove-abandoned: true
+      #数据库链接超过180秒开始关闭空闲连接 秒为单位
+      remove-abandoned-timeout: 180
+      #将当前关闭动作记录到日志
+      log-abandoned: true
+  autoconfigure:
+    exclude:  com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 去除druid配置
+  devtools:
+    restart:
+      enabled: true
+      #该目录下的内容修改不重启
+      exclude: images/**
+    livereload:
+      port: 35730
+  thymeleaf:
+    cache: false
+
+#配置项:开启下划线到驼峰的自动转换. 作用:将数据库字段根据驼峰规则自动注入到对象属性。
+#mybatis:
+#  configuration:
+#    map-underscore-to-camel-case: true
+mybatis-plus:
+  configuration:
+    map-underscore-to-camel-case: true
+
+#打印SQL信息
+logging:
+  level:
+    cn.hnthyy.thmz.mapper: info
+
+
+#企业微信消息服务地址生产环境
+serviceUrl: "http://172.16.20.108:8706/sendWxInfo/send"
+
+#卡号变更通知开关
+sendNoticeToHaiCi: true
+#就诊状态通知开关
+sendNoticeToPatient: true
+#是否修改LIS数据开关
+updateLisData: true
+#是否加收开关
+setUnitPrice: false
+
+#海慈开放服务地址生产环境
+#haiciServiceUrl: "https://api.med.gzhc365.com/openapi/health"
+
+#泰和微信开放服务地址生产环境
+haiciServiceUrl: "https://tbd"
+
+#泰和微信缴费服务地址生产环境
+wxPayOrderServiceUrl: "http://172.16.20.108:8706"
+
+#特殊门诊生产地址
+tsmzServiceUrl: "http://172.16.20.108:8706/markMtFees"
+#流行病调查问卷生产地址
+lxbdcwjUrl: "http://tbd"
+
+#医技预约审核驳回回调地址
+callBackYJYYUrl: "https://tbd"
+
+#叫号通知接口地址
+notifyServiceUrl: "http://172.16.20.108:8706/triage/notify"
+
+#语音生成接口地址
+audioServiceUrl: "http://tbd"
+
+#化验结果接口
+soap_url: "http://172.16.32.178:622/pushservice.asmx?wsdl"
+
+#websocket 地址前半部分
+webSocketHost: "ws://172.16.20.108:81/thmz/"
+#门诊结算单地址
+mzjsdHost: http://172.16.20.108:8080
+
+#websocket 药房地址前半部分
+webSocketPrescriptionHost: "ws://172.16.20.108:9000/"
+
+#websocket 药房发送信息接口地址
+webSocketServiceUrl: "http://172.16.20.108:9000/api/v1/sendMessage"
+
+#合理用药分析接口
+rationalUseOfMedicineUrl: "http://172.16.20.108:8016/Audit.ashx"
+
+#智能银行接口地址
+misPossUrl: "http://172.16.20.108:8080/ccbmis/transaction/"
+
+#健康宣教
+healthEducationUrl: https://tbd
+#pacs检查地址
+pacsUrl: http://tbd
+#微信支付链接
+wxPayQrUrl: https://tbd
+
+#调用医保药品更新最新报销比例地址
+hiDrugPostUrl: "http://172.16.20.108:8706/nationalMatch/queryPsnPayProp?hiListCode="
+#( Windows配置,Linux配置 /home/thmz_system/uploadPath)
+filepath:
+  profile: /home/thmz_system/uploadPath

+ 21 - 22
src/main/resources/application-prod.yml

@@ -35,9 +35,9 @@ spring:
       max-request-size: 1000MB
   datasource:
     his:
-      jdbc-url: "jdbc:sqlserver://172.16.32.168:1433;databaseName=thxyhisdb"
+      jdbc-url: "jdbc:sqlserver://172.16.20.118:1433;databaseName=hisdb"
       username: "sa"
-      password:
+      password: "Tzsoft@2025"
       driver-class-name: "com.microsoft.sqlserver.jdbc.SQLServerDriver"
     durid:
       #type: com.alibaba.druid.pool.DruidDataSource
@@ -102,7 +102,7 @@ logging:
 
 
 #企业微信消息服务地址生产环境
-serviceUrl: "http://webhis.thyy.cn:8077/sendWxInfo/send"
+serviceUrl: "http://172.16.20.108:8706/sendWxInfo/send"
 
 #卡号变更通知开关
 sendNoticeToHaiCi: true
@@ -117,55 +117,54 @@ setUnitPrice: false
 #haiciServiceUrl: "https://api.med.gzhc365.com/openapi/health"
 
 #泰和微信开放服务地址生产环境
-haiciServiceUrl: "https://staticweb.hnthyy.cn/wxserver"
+haiciServiceUrl: "https://tbd"
 
 #泰和微信缴费服务地址生产环境
-wxPayOrderServiceUrl: "http://webhis.thyy.cn:8077"
+wxPayOrderServiceUrl: "http://172.16.20.108:8706"
 
 #特殊门诊生产地址
-tsmzServiceUrl: "http://webhis.thyy.cn:8077/markMtFees"
+tsmzServiceUrl: "http://172.16.20.108:8706/markMtFees"
 #流行病调查问卷生产地址
-lxbdcwjUrl: "http://csth.hnthhz.com:8083/assessments/covid/"
+lxbdcwjUrl: "http://tbd"
 
 #医技预约审核驳回回调地址
-callBackYJYYUrl: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxbde6b16acad84204&redirect_uri=https://staticweb.hnthyy.cn/wxserver/redirect/page2?to=resignOrRefund_"
+callBackYJYYUrl: "https://tbd"
 
 #叫号通知接口地址
-notifyServiceUrl: "http://webhis.thyy.cn:8077/triage/notify"
+notifyServiceUrl: "http://172.16.20.108:8706/triage/notify"
 
 #语音生成接口地址
-audioServiceUrl: "http://webhis.thyy.cn:8077/voice/textToSpeech"
+audioServiceUrl: "http://tbd"
 
 #化验结果接口
 soap_url: "http://172.16.32.178:622/pushservice.asmx?wsdl"
 
 #websocket 地址前半部分
-#webSocketHost: "ws://webhis.thyy.cn:81/thmz/"
-webSocketHost: "ws://172.16.32.161:81/thmz/"
+webSocketHost: "ws://172.16.20.108:81/thmz/"
 #门诊结算单地址
-mzjsdHost: http://webhis.thyy.cn:8080
+mzjsdHost: http://172.16.20.108:8080
 
 #websocket 药房地址前半部分
-webSocketPrescriptionHost: "ws://172.16.32.161:9000/"
+webSocketPrescriptionHost: "ws://172.16.20.108:9000/"
 
 #websocket 药房发送信息接口地址
-webSocketServiceUrl: "http://172.16.32.161:9000/api/v1/sendMessage"
+webSocketServiceUrl: "http://172.16.20.108:9000/api/v1/sendMessage"
 
 #合理用药分析接口
-rationalUseOfMedicineUrl: "http://172.16.32.121:8016/Audit.ashx"
+rationalUseOfMedicineUrl: "http://172.16.20.108:8016/Audit.ashx"
 
 #智能银行接口地址
-misPossUrl: "http://172.16.32.201:8080/ccbmis/transaction/"
+misPossUrl: "http://172.16.20.108:8080/ccbmis/transaction/"
 
 #健康宣教
-healthEducationUrl: https://staticweb.hnthyy.cn/healthEducation
+healthEducationUrl: https://tbd
 #pacs检查地址
-pacsUrl: http://172.16.32.122:8099
+pacsUrl: http://tbd
 #微信支付链接
-wxPayQrUrl: https://staticweb.hnthyy.cn/wxserver/redirect/guideBillScan?patNo=patientId
+wxPayQrUrl: https://tbd
 
 #调用医保药品更新最新报销比例地址
-hiDrugPostUrl: "http://webhis.thyy.cn:8077/nationalMatch/queryPsnPayProp?hiListCode="
+hiDrugPostUrl: "http://172.16.20.108:8706/nationalMatch/queryPsnPayProp?hiListCode="
 #( Windows配置,Linux配置 /home/thmz_system/uploadPath)
 filepath:
-  profile: D:\thmz_system\uploadPath
+  profile: /home/thmz_system/uploadPath

+ 1 - 1
src/main/resources/logback-spring.xml

@@ -3,7 +3,7 @@
 
     <contextName>tjbgLog</contextName>
 
-    <property name="logback.logdir" value="D:\\logs\\thmz"/>
+    <property name="logback.logdir" value="/home/web-server/mz/logs"/>
     <property name="logback.appname" value="thmzLog"/>
 
     <appender name="fileInfoLog" class="ch.qos.logback.core.rolling.RollingFileAppender">