住院病理 电子病历 护理文书整理
parent
ff2ffa8dd0
commit
976242dc8c
@ -1,40 +1,40 @@
|
||||
//package com.docus.bgts.config;
|
||||
//
|
||||
//
|
||||
//import com.docus.bgts.utils.FileUtils;
|
||||
//import com.docus.bgts.utils.HttpUtils;
|
||||
//import org.apache.logging.log4j.LogManager;
|
||||
//import org.apache.logging.log4j.Logger;
|
||||
//import org.springframework.beans.factory.annotation.Value;
|
||||
//import org.springframework.scheduling.annotation.Scheduled;
|
||||
//import org.springframework.stereotype.Component;
|
||||
//
|
||||
//import java.net.URISyntaxException;
|
||||
//import java.util.HashMap;
|
||||
//import java.util.Map;
|
||||
//
|
||||
//@Component
|
||||
//public class MyScheduling {
|
||||
//
|
||||
// @Value("${beat.url}")
|
||||
// private String beatUrl;
|
||||
//
|
||||
// private Logger logger = LogManager.getLogger(MyScheduling.class);
|
||||
//
|
||||
// //10分钟执行一次
|
||||
// @Scheduled(fixedRate = 1000 * 60 * 5)
|
||||
// public void beat() {
|
||||
// logger.info("------------心跳开始---------------");
|
||||
// Map<String, String> params = new HashMap<>();
|
||||
// params.put("code", String.valueOf(FileUtils.getJsonByName("collectorid")));
|
||||
// try {
|
||||
// HttpUtils.get(beatUrl, params);
|
||||
// } catch (URISyntaxException e) {
|
||||
// e.printStackTrace();
|
||||
// logger.info("心跳推送出错,可能是住院服务没有开启");
|
||||
// } finally {
|
||||
// logger.info("-------------心跳结束---------------");
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//}
|
||||
package com.docus.bgts.config;
|
||||
|
||||
|
||||
import com.docus.bgts.utils.FileUtils;
|
||||
import com.docus.bgts.utils.HttpUtils;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@Component
|
||||
public class MyScheduling {
|
||||
|
||||
@Value("${beat.url}")
|
||||
private String beatUrl;
|
||||
|
||||
private Logger logger = LogManager.getLogger(MyScheduling.class);
|
||||
|
||||
//10分钟执行一次
|
||||
@Scheduled(fixedRate = 1000 * 60 * 5)
|
||||
public void beat() {
|
||||
logger.info("------------心跳开始---------------");
|
||||
Map<String, String> params = new HashMap<>();
|
||||
params.put("code", String.valueOf(FileUtils.getJsonByName("collectorid")));
|
||||
try {
|
||||
HttpUtils.get(beatUrl, params);
|
||||
} catch (URISyntaxException e) {
|
||||
e.printStackTrace();
|
||||
logger.info("心跳推送出错,可能是住院服务没有开启");
|
||||
} finally {
|
||||
logger.info("-------------心跳结束---------------");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,28 @@
|
||||
server:
|
||||
port: 9403
|
||||
# http
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
call-setters-on-nulls: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
field-strategy: NOT_EMPTY
|
||||
db-type: MYSQL
|
||||
beat:
|
||||
url: http://localhost:9399/beat
|
||||
|
||||
system:
|
||||
code: "204_P_WS_BLBGTS"
|
||||
prop: 9203
|
||||
# web service
|
||||
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: docus
|
||||
password: docus702
|
||||
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
|
@ -0,0 +1,28 @@
|
||||
server:
|
||||
port: 9404
|
||||
# http
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
call-setters-on-nulls: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
field-strategy: NOT_EMPTY
|
||||
db-type: MYSQL
|
||||
beat:
|
||||
url: http://localhost:9399/beat
|
||||
|
||||
system:
|
||||
code: "Nursing_documents"
|
||||
prop: 9204
|
||||
# web service
|
||||
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: docus
|
||||
password: docus702
|
||||
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
|
@ -0,0 +1,28 @@
|
||||
server:
|
||||
port: 9701
|
||||
# http
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
call-setters-on-nulls: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
field-strategy: NOT_EMPTY
|
||||
db-type: MYSQL
|
||||
beat:
|
||||
url: http://localhost:9399/beat
|
||||
|
||||
system:
|
||||
code: "EmrDocAr"
|
||||
prop: 9801
|
||||
# web service
|
||||
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: docus
|
||||
password: docus702
|
||||
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
|
Loading…
Reference in New Issue