Commit 6a9d64d8 authored by wanghaihang's avatar wanghaihang

开发同步生产定时任务

parent ba39121d
......@@ -2,7 +2,7 @@
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" default-lazy-init="true"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd">
<!-- 统计指定天数各指标业务端数据 -->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
......@@ -26,7 +26,7 @@
<value>statisticTask</value>
</property>
</bean>
<!--非CRM客户同步CRM-->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
......@@ -37,7 +37,7 @@
<bean id="callCRMTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="callCRMQuote"/>
<property name="cronExpression" value="0 0/3 * * * ?"/>
<property name="cronExpression" value="0 0/10 * * * ?"/>
</bean>
<bean id="callCRMQuote" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......@@ -50,7 +50,7 @@
<value>sendCustomerToCRMJOB</value>
</property>
</bean>
<!--同步统计指标名称-->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
......@@ -100,7 +100,6 @@
</property>
</bean>
<!--字典CRM数据刷新-->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
......@@ -111,7 +110,8 @@
<bean id="refreshCrmConfig" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="refreshCrmConfigQuote"/>
<property name="cronExpression" value="0 0/10 * * * ?"/>
<!--<property name="cronExpression" value="0 0/10 * * * ?"/>-->
<property name="cronExpression" value="0 0 3 * * ?"/>
</bean>
<bean id="refreshCrmConfigQuote"
......@@ -125,7 +125,7 @@
<value>refreshCrmConfig</value>
</property>
</bean>
<!--营销客户数据超时回公海-->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
......@@ -136,7 +136,7 @@
<bean id="putOverTimeToOceanTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="putOverTimeToOceanQuote"/>
<property name="cronExpression" value="0 0/3 * * * ?"/>
<property name="cronExpression" value="0 0 0/1 * * ?"/>
</bean>
<bean id="putOverTimeToOceanQuote" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......@@ -150,24 +150,23 @@
</property>
</bean>
<!--公海购房意向未E客户超过5个月未更新的删除-->
<!--<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">-->
<!--<property name="triggers">-->
<!--<list>-->
<!--<ref bean="removeFromOceanTrigger" />-->
<!--<ref bean="removeFromOceanTrigger"/>-->
<!--</list>-->
<!--</property>-->
<!--</bean>-->
<!--<bean id="removeFromOceanTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">-->
<!--<property name="jobDetail" ref="removeFromOceanQuote" />-->
<!--<property name="cronExpression" value="0 0/3 * * * ?" />-->
<!--<property name="jobDetail" ref="removeFromOceanQuote"/>-->
<!--<property name="cronExpression" value="0 0/10 * * * ?"/>-->
<!--</bean>-->
<!--<bean id="removeFromOceanQuote" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">-->
<!--&lt;!&ndash;调用的类&ndash;&gt;-->
<!--<property name="targetObject">-->
<!--<ref bean="customerService" />-->
<!--<ref bean="customerService"/>-->
<!--</property>-->
<!--&lt;!&ndash;调用类中的方法&ndash;&gt;-->
<!--<property name="targetMethod">-->
......@@ -277,29 +276,29 @@
<!--删除短信定时结束-->
<!--发送dlq删除提醒短信定时开始-->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="sendDlqMessageTrigger"/>
</list>
</property>
</bean>
<!--<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">-->
<!--<property name="triggers">-->
<!--<list>-->
<!--<ref bean="sendDlqMessageTrigger"/>-->
<!--</list>-->
<!--</property>-->
<!--</bean>-->
<bean id="sendDlqMessageTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="sendDlqMessageQuote"/>
<property name="cronExpression" value="0 0 17 * * ? "/>
</bean>
<!--<bean id="sendDlqMessageTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">-->
<!--<property name="jobDetail" ref="sendDlqMessageQuote"/>-->
<!--<property name="cronExpression" value="0 0 17 * * ? "/>-->
<!--</bean>-->
<bean id="sendDlqMessageQuote" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<!--调用的类-->
<property name="targetObject">
<ref bean="sendMessageTask"/>
</property>
<!--调用类中的方法-->
<property name="targetMethod">
<value>sendDlqMessage</value>
</property>
</bean>
<!--<bean id="sendDlqMessageQuote" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">-->
<!--&lt;!&ndash;调用的类&ndash;&gt;-->
<!--<property name="targetObject">-->
<!--<ref bean="sendMessageTask"/>-->
<!--</property>-->
<!--&lt;!&ndash;调用类中的方法&ndash;&gt;-->
<!--<property name="targetMethod">-->
<!--<value>sendDlqMessage</value>-->
<!--</property>-->
<!--</bean>-->
<!--发送dlq删除提醒短信定时结束-->
<!--发送微信提醒定时开始-->
......@@ -313,7 +312,7 @@
<bean id="sendWxMessageTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="sendWxMessageQuote"/>
<property name="cronExpression" value="0 0/1 * * * ? "/>
<property name="cronExpression" value="0 0/10 * * * ? "/>
</bean>
<bean id="sendWxMessageQuote" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......@@ -339,7 +338,7 @@
<bean id="checkCustomerBackToSea" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="noCallBackToSea"/>
<property name="cronExpression" value="0 0/3 * * * ? "/>
<property name="cronExpression" value="0 0 2 * * ? "/>
</bean>
<bean id="noCallBackToSea" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......@@ -406,6 +405,8 @@
</bean>
<!--同步crm报名轨迹数据定时结束-->
<!--同步crm报名轨迹数据定时结束-->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
......@@ -416,7 +417,7 @@
<bean id="dutyStaff" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="checkDutyStaff"/>
<property name="cronExpression" value="0 0 16 * * ? "/>
<property name="cronExpression" value="0 0 1 * * ? "/>
</bean>
<bean id="checkDutyStaff" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......@@ -430,8 +431,7 @@
</property>
</bean>
<!--同步crm报名轨迹数据定时结束-->
<!--N天无回访入公海begin-->
<!-- N天无回访入公海begin -->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
......@@ -442,7 +442,7 @@
<bean id="checkNoLimit" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="noLimit"/>
<property name="cronExpression" value="0 0 15 * * ? "/>
<property name="cronExpression" value="0 0 0/1 * * ? "/>
</bean>
<bean id="noLimit" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......@@ -455,9 +455,9 @@
<value>backToSea</value>
</property>
</bean>
<!--N天无回访入公海end-->
<!-- N天无回访入公海end -->
<!--营销客户数据超时待回访数据回公海-->
<!-- 营销客户数据超时待回访数据回公海 -->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
......@@ -468,11 +468,11 @@
<bean id="putOvertimeWaitCallTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="putOvertimeWaitCallQuote"/>
<property name="cronExpression" value="0 0/5 * * * ?"/>
<!--<property name="cronExpression" value="0 0/5 * * * ?"/>-->
<property name="cronExpression" value="0 0 0/1 * * ?"/>
</bean>
<bean id="putOvertimeWaitCallQuote"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<bean id="putOvertimeWaitCallQuote" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<!--调用的类-->
<property name="targetObject">
<ref bean="marketingActivityService"/>
......@@ -494,7 +494,7 @@
<bean id="sendWxTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="sendWxQuote"/>
<property name="cronExpression" value="0 0/1 * * * ? "/>
<property name="cronExpression" value="0/15 * * * * ?"/>
</bean>
<bean id="sendWxQuote" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......@@ -521,7 +521,6 @@
<bean id="cloudJob" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="addCloudJob"/>
<property name="cronExpression" value="0 0 2 * * ? "/>
<!--<property name="cronExpression" value="0 0/1 * * * ? "/>-->
</bean>
<bean id="addCloudJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......@@ -547,8 +546,7 @@
<bean id="projectJgtJob" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="updateProjectJob"/>
<property name="cronExpression" value="0 0 11 * * ? "/>
<!--<property name="cronExpression" value="0 0/1 * * * ? "/>-->
<property name="cronExpression" value="0 0 2 * * ? "/>
</bean>
<bean id="updateProjectJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......@@ -615,32 +613,6 @@
</bean>
<!--N天无回访入公海(且未达到到访状态)end-->
<!--平台客户超过1月通同步CRM-->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="setPlatJob"/>
</list>
</property>
</bean>
<bean id="setPlatJob" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="syncCustomerJob"/>
<property name="cronExpression" value="0 0 23 * * ? *"/>
</bean>
<bean id="syncCustomerJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<!--调用的类-->
<property name="targetObject">
<ref bean="staffDuty"/>
</property>
<!--调用类中的方法-->
<property name="targetMethod">
<value>syncPlatCustomers</value>
</property>
</bean>
<!--设置云迹数据报表定时结束-->
<!--推送外部客户至CRM开始-->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
......@@ -678,7 +650,7 @@
<bean id="setCloudReportJob" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="setCloudReJob"/>
<property name="cronExpression" value="0 0 2 * * ? *"/>
<property name="cronExpression" value="0 15 3 1 * ?"/>
</bean>
<bean id="setCloudReJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......@@ -704,7 +676,7 @@
<bean id="updateJgJob" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="updateJgStatusJob"/>
<property name="cronExpression" value="0 0 2 * * ? *"/>
<property name="cronExpression" value="0 0 3 * * ? *"/>
</bean>
<bean id="updateJgStatusJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment