Commit 7bf2041b65d5e349c8ffe5e906a40730f396025c

Authored by zhangchao
1 parent 8c66ad1908
Exists in luanping and in 1 other branch dev

#新增秦皇岛二院高危因素检查项配置及产检录入、产检提醒推送等功能

Showing 1 changed file with 38 additions and 2 deletions

platform-operate-api/src/main/resources/spring/applicationContext-quartz.xml View file @ 7bf2041
... ... @@ -665,13 +665,45 @@
665 665 <property name="concurrent" value="false"></property>
666 666 </bean>
667 667  
668   - <!-- 配置一个触发器 0 0 18 * * ?-->
  668 + <!-- 配置一个触发器 0 5 18 * * ?-->
669 669 <bean id="patientServiceSyncTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
670 670 <property name="jobDetail" ref="patientServiceSyncWork"></property>
671   - <property name="cronExpression" value="0 45 17 * * ?"></property>
  671 + <property name="cronExpression" value="0 5 18 * * ?"></property>
672 672 </bean>
673 673  
674 674  
  675 + <!--秦皇岛二院下午17点推送产检录入提醒 -->
  676 + <bean id="bookbuildingSyncWork" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  677 + <!-- 要调用的bean -->
  678 + <property name="targetObject" ref="bookbuildingFacade"></property>
  679 + <!-- 要调用的Method -->
  680 + <property name="targetMethod" value="bookbuildingSync"></property>
  681 + <!-- 是否并发,false表示 如果发生错误也不影响下一次的调用 -->
  682 + <property name="concurrent" value="false"></property>
  683 + </bean>
  684 +
  685 + <!-- 配置一个触发器 0 0 17 * * ?-->
  686 + <bean id="bookbuildingSyncWorkTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
  687 + <property name="jobDetail" ref="bookbuildingSyncWork"></property>
  688 + <property name="cronExpression" value="0 0 17 * * ?"></property>
  689 + </bean>
  690 +
  691 + <!--秦皇岛二院上午9点推送产检提醒 -->
  692 + <bean id="weekSyncWork" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  693 + <!-- 要调用的bean -->
  694 + <property name="targetObject" ref="bookbuildingFacade"></property>
  695 + <!-- 要调用的Method -->
  696 + <property name="targetMethod" value="weekSync"></property>
  697 + <!-- 是否并发,false表示 如果发生错误也不影响下一次的调用 -->
  698 + <property name="concurrent" value="false"></property>
  699 + </bean>
  700 +
  701 + <!-- 配置一个触发器 0 0 9 * * ?-->
  702 + <bean id="weekSyncWorkTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
  703 + <property name="jobDetail" ref="weekSyncWork"></property>
  704 + <property name="cronExpression" value="0 0 9 * * ?"></property>
  705 + </bean>
  706 +
675 707 <!-- 总调度,用于启动定时器 -->
676 708 <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
677 709 <property name="triggers" >
... ... @@ -737,6 +769,10 @@
737 769 <ref bean="coursesTrigger"/>
738 770 <!-- 威县孕妇开通服务同步-->
739 771 <ref bean="patientServiceSyncTrigger"/>
  772 + <!-- 秦皇岛二院产检信息录入-->
  773 + <ref bean="bookbuildingSyncWorkTrigger"/>
  774 + <!-- 秦皇岛二院产检提醒-->
  775 + <ref bean="weekSyncWorkTrigger"/>
740 776 </list>
741 777 </property>
742 778 </bean>