Commit 9cfefec8ad5e4427e64bda4f76fbd7e5a10188fe
1 parent
df580823a8
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 19 additions and 0 deletions
platform-operate-api/src/main/resources/spring/applicationContext-quartz.xml
View file @
9cfefec
| ... | ... | @@ -107,6 +107,18 @@ |
| 107 | 107 | <property name="concurrent" value="false"></property> |
| 108 | 108 | </bean> |
| 109 | 109 | |
| 110 | + | |
| 111 | + <!-- 德州妇幼医院分娩接口--> | |
| 112 | + <bean id="dzfyFmTimerWork" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> | |
| 113 | + <!-- 要调用的bean --> | |
| 114 | + <property name="targetObject" ref="dzfyFmService"></property> | |
| 115 | + <!-- 要调用的Method --> | |
| 116 | + <property name="targetMethod" value="fmTimerWork"></property> | |
| 117 | + <!-- 是否并发,false表示 如果发生错误也不影响下一次的调用 --> | |
| 118 | + <property name="concurrent" value="false"></property> | |
| 119 | + </bean> | |
| 120 | + | |
| 121 | + | |
| 110 | 122 | <!-- 秦皇岛医院分娩接口--> |
| 111 | 123 | <bean id="qhdFmHistoryTimerWork" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> |
| 112 | 124 | <!-- 要调用的bean --> |
| ... | ... | @@ -163,6 +175,12 @@ |
| 163 | 175 | </bean> |
| 164 | 176 | |
| 165 | 177 | |
| 178 | + <bean id="dzfyFmTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> | |
| 179 | + <property name="jobDetail" ref="dzfyFmTimerWork"></property> | |
| 180 | + <property name="cronExpression" value="0 0 0/1 * * ?"></property> | |
| 181 | + </bean> | |
| 182 | + | |
| 183 | + | |
| 166 | 184 | <!-- 总调度,用于启动定时器 --> |
| 167 | 185 | <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> |
| 168 | 186 | <property name="triggers" > |
| ... | ... | @@ -175,6 +193,7 @@ |
| 175 | 193 | <!--乐陵住院系统同步--> |
| 176 | 194 | <!--<ref bean="synLlHisDataTrigger"/>--> |
| 177 | 195 | <!--<ref bean="qhdFmTrigger"/>--> |
| 196 | + <!--<ref bean="dzfyFmTrigger"/>--> | |
| 178 | 197 | <!--<ref bean="crisisTrigger"/>--> |
| 179 | 198 | <!--<ref bean="qhdFmHistoryTrigger"/>--> |
| 180 | 199 | </list> |