Commit 176570896270f689a073400475a34964e5e4d047
1 parent
17c16744f2
Exists in
master
添加注释和修改配置
Showing 2 changed files with 11 additions and 2 deletions
parent/hospital.web/src/main/java/com/lyms/hospital/job/SyncPushToCenterJob.java
View file @
1765708
| ... | ... | @@ -27,6 +27,9 @@ |
| 27 | 27 | @Value("${center.syncpush.url}") |
| 28 | 28 | private String CENTER_SYNCPUSH_URL; |
| 29 | 29 | |
| 30 | + @Value("${isNodePushToCenter}") | |
| 31 | + private boolean isNodePushToCenter; | |
| 32 | + | |
| 30 | 33 | private static final int ERROR_COUNT_MAX = 4; |
| 31 | 34 | |
| 32 | 35 | private static Logger log = LoggerFactory.getLogger(SyncPushToCenterJob.class); |
| ... | ... | @@ -35,7 +38,7 @@ |
| 35 | 38 | private SyncDataBasicService syncDataBasicService; |
| 36 | 39 | |
| 37 | 40 | public void excute() { |
| 38 | - if(null != CENTER_SYNCPUSH_URL && CENTER_SYNCPUSH_URL.startsWith("http")){ | |
| 41 | + if(null != CENTER_SYNCPUSH_URL && CENTER_SYNCPUSH_URL.startsWith("http") && isNodePushToCenter){ | |
| 39 | 42 | List<SyncDataBasic> dataList = syncDataBasicService.selectList(new EntityWrapper<SyncDataBasic>().where("IFSUC=0").and("ERROR_COUNT < {0}", ERROR_COUNT_MAX)); |
| 40 | 43 | if(dataList != null && dataList.size() > 0){ |
| 41 | 44 | log.debug("=======开始进行 SYNC_DATA_BASIC 表格数据的推送到中心======="); |
parent/hospital.web/src/main/resources/dev/conf.properties
View file @
1765708
| 1 | -token.prefix=token:user: | |
| 1 | +token.prefix=token.user: | |
| 2 | + | |
| 3 | + | |
| 4 | +#\u4E2D\u5FC3\u64CD\u4F5C\u63A8\u9001\u5230\u8282\u70B9 | |
| 2 | 5 | isCenterOperateSyncToNode=false |
| 6 | +#\u8282\u70B9SyncDataBasic\u6570\u636E\u4E3B\u52A8\u63A8\u9001\u5230\u4E2D\u5FC3 | |
| 7 | +isNodePushToCenter=true | |
| 8 | +#\u8282\u70B9\u63A8\u9001\u5230\u4E2D\u5FC3\u7684\u4E2D\u5FC3\u670D\u52A1url | |
| 3 | 9 | center.syncpush.url=http://localhost:8080/center.manager/sync/push |