فهرست منبع

屏蔽订餐、获取粉丝等定时任务

wuchangfu 1 سال پیش
والد
کامیت
9bbefaaaee
1فایلهای تغییر یافته به همراه60 افزوده شده و 53 حذف شده
  1. 60 53
      src/main/resources/quartz_job2.xml

+ 60 - 53
src/main/resources/quartz_job2.xml

@@ -48,7 +48,7 @@
             <!-- 从0点开始,每隔1小时执行任务调度
             <value>0 0 0/1 * * ?</value> -->
             <!--每隔10分钟运行一次-->
-             <value>0 0/10 * * * ?</value>
+            <value>0 0/10 * * * ?</value>
         </property>
     </bean>
 
@@ -82,7 +82,6 @@
     </bean>
     -->
 
-
     <!-- 定时扫描通知信息表,发送通知消息 -->
     <bean id="executeSendAnnoTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
@@ -125,7 +124,6 @@
     </bean>
 
 
-
     <!--空调加时单 申请时间大于当前时间  把状态改为已完成-->
     <bean id="airConditionerAddTimeTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
@@ -140,6 +138,7 @@
         </property>
     </bean>
 
+
     <bean id="airConditionerOrderTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="airConditionerOrderTask"/>
@@ -179,7 +178,7 @@
     <bean id="orderDinnerRechargeTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
         <property name="jobDetail" ref="orderDinnerRechargeTimer"/>
         <property name="cronExpression">
-           <value>0 10 0 21 * ? </value>          
+            <value>0 10 0 21 * ? </value>
             <!-- <value>0 10 0 ? * MON</value> -->
             <!-- 0 10 0 ? * MON   每周一0点10分执行一次充值积分 -->
         </property>
@@ -228,7 +227,26 @@
         </property>
     </bean>
 
+    <!-- 定时推送模板消息给开启订餐的用户,通知他们提前订明天的餐 -->
+    <!-- 每天15:30推一次消息 -->
+    <!--
+    <bean id="orderDinnerPushTempMsgTimer"
+          class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
+        <property name="targetObject" ref="orderDinnerPushTempMsgTimerTask"/>
+        <property name="targetMethod" value="run"/>
+    </bean>
+
+    <bean id="orderDinnerPushTempMsgTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
+        <property name="jobDetail" ref="orderDinnerPushTempMsgTimer"/>
+        <property name="cronExpression">
+            <value>0 30 15 * * ?</value>
+
+        </property>
+    </bean> -->
+
     <!-- 定时每天10执行一次  提醒用户需要订餐了 -->
+    <!-- 每天10点推一次消息 -->
+    <!--
     <bean id="orderDinnerPushTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="orderDinnerDatePushTimerTask"/>
@@ -239,10 +257,13 @@
         <property name="jobDetail" ref="orderDinnerPushTimer"/>
         <property name="cronExpression">
             <value>0 0 10 * * ?</value>
-            <!-- 每天10点推一次消息 -->
+
         </property>
     </bean>
+     -->
     <!-- 定时每天22点执行一次  将所有当天未及时确认的待确认订单置为待评价-->
+    <!-- 每天22点执行一次-->
+    <!--
     <bean id="dinnerConfirmServiceTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="dinnerConfirmServiceTimerTask"/>
@@ -253,9 +274,11 @@
         <property name="jobDetail" ref="dinnerConfirmServiceTimer"/>
         <property name="cronExpression">
             <value>0 0 22 * * ?</value>
-            <!-- 每天22点执行一次-->
-        </property>
+         </property>
     </bean>
+    -->
+    <!-- 每周日执行一次 -->
+    <!--
     <bean id="dinnerMealTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="dinnerMealTimerTask"/>
@@ -265,14 +288,14 @@
     <bean id="dinnerMealTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
         <property name="jobDetail" ref="dinnerMealTimer"/>
         <property name="cronExpression">
-            <!-- <value>0 0/2 * * * ?</value> -->
             <value>0 0 15 ? * THU</value>
-            <!-- 每周日执行一次 -->
+
         </property>
     </bean>
-    <!-- 每周一 2点清订餐缓存 -->   
-    
-    
+    -->
+    <!-- 每周一 2点清订餐缓存 -->
+
+
     <bean id="snycKoalaPassLogTaskTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="snycKoalaPassLogTask"/>
@@ -286,7 +309,7 @@
             <!-- 每10分钟更新一次 -->
         </property>
     </bean>
-    
+
 
     <bean id="cleanRedisTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
@@ -319,6 +342,7 @@
     </bean>
 
     <!-- 项目服务过期状态更新 -->
+    <!--
     <bean id="updateServiceProjectExpire"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="updateServiceProjectExpireTask"/>
@@ -329,12 +353,14 @@
         <property name="jobDetail" ref="updateServiceProjectExpire"/>
         <property name="cronExpression">
             <value>0 0 0 * * ? *</value>
-            <!-- 每天0点执行任务调度 -->
         </property>
     </bean>
+    -->
+
 
 
     <!-- 保存微信端服务模块用户活跃量 -->
+    <!--
     <bean id="moduleUserCountExpire"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="moduleUserCountTask"/>
@@ -344,47 +370,25 @@
     <bean id="moduleUserCountExpireTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
         <property name="jobDetail" ref="moduleUserCountExpire"/>
         <property name="cronExpression">
-            <value>0 0/10 * * * ? *</value><!-- 每十分钟执行一次 -->
+            <value>0 0/10 * * * ? *</value>
         </property>
     </bean>
-
-    <!-- 定时推送模板消息给开启订餐的用户,通知他们提前订明天的餐 -->
-    <bean id="orderDinnerPushTempMsgTimer"
-          class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
-        <property name="targetObject" ref="orderDinnerPushTempMsgTimerTask"/>
-        <property name="targetMethod" value="run"/>
-    </bean>
-
-    <bean id="orderDinnerPushTempMsgTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
-        <property name="jobDetail" ref="orderDinnerPushTempMsgTimer"/>
-        <property name="cronExpression">
-            <value>0 30 15 * * ?</value>
-            <!-- 每天15:30推一次消息 -->
-        </property>
-    </bean>
-
+    -->
 
     <!--定时每分钟执行获取飞亚达订餐的订餐数据-->
+    <!--
     <bean id="orderDinnerGetOrderInfoTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="orderDinnerGetOrderInfoTask"/>
         <property name="targetMethod" value="run"/>
     </bean>
-<!--    <bean id="orderDinnerGetOrderInfoTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">-->
-<!--        <property name="jobDetail" ref="orderDinnerGetOrderInfoTimer"/>-->
-<!--        <property name="cronExpression">-->
-<!--            <value>0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 10 * * ?</value>-->
-<!--            &lt;!&ndash; 从10点开始执行,每1分钟执行一次,只执行到10点30 &ndash;&gt;-->
-<!--        </property>-->
-<!--    </bean>-->
-
     <bean id="orderDinnerGetOrderInfoTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
         <property name="jobDetail" ref="orderDinnerGetOrderInfoTimer"/>
         <property name="cronExpression">
-            <value>0 40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58 16 * * ?</value>
-            <!-- 从16点40开始执行,每1分钟执行一次,只执行到16点50 -->
+            <value>0 40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 16 * * ?</value>
         </property>
     </bean>
+    -->
 
     <!-- quartz的调度工厂 调度工厂只能有一个,多个调度任务在list中添加 -->
     <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
@@ -397,20 +401,23 @@
                 <ref local="updateSignContractTrigger"/>
                 <!-- <ref local="updateWxUserInfoTrigger"/> -->
                 <ref local="executeSendAnnoTrigger"/>
-                <ref local="updateServiceProjectExpireTrigger"/>
+                <!--
+                 <ref local="updateServiceProjectExpireTrigger"/> -->
                 <ref local="airConditionerAddTimeTrigger"/>
                 <ref local="airConditionerOrderTrigger"/>
-                <ref local="orderDinnerDatePushTrigger"/>
-                <ref local="orderDinnerPushMessageTrigger"/>
-                <ref local="orderDinnerPushTempMsgTrigger"/>
-                <ref local="orderDinnerPushTrigger"/>
-                <ref local="dinnerConfirmServiceTrigger"/>
-                <ref local="dinnerTransferAccountsTrigger"/>
-                <ref local="orderDinnerRechargeTrigger"/>
-                <ref local="dinnerMealTrigger"/>
+                <!--
+                 <ref local="orderDinnerDatePushTrigger"/>
+                 <ref local="orderDinnerPushMessageTrigger"/>
+                 <ref local="orderDinnerPushTrigger"/>
+                 <ref local="orderDinnerPushTempMsgTrigger"/>
+                 <ref local="dinnerConfirmServiceTrigger"/>
+                 <ref local="dinnerTransferAccountsTrigger"/>
+                 <ref local="orderDinnerRechargeTrigger"/>
+                 <ref local="dinnerMealTrigger"/>
+                -->
                 <ref local="cleanRedisTrigger"/>
-                <ref local="moduleUserCountExpireTrigger"/>
-                <ref local="orderDinnerGetOrderInfoTrigger"/>
+                <!--  <ref local="moduleUserCountExpireTrigger"/>
+                 <ref local="orderDinnerGetOrderInfoTrigger"/>  -->
                 <ref local="snycKoalaPassLogTaskTrigger"/>
                 <ref local="repairAutomaticHighPraiseTrigger"/>
                 <!-- <ref local="repairGrabBillPushTrigger" />
@@ -419,4 +426,4 @@
             </list>
         </property>
     </bean>
-</beans>
+</beans>