spring-task.xml 3.61 KB
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:context="http://www.springframework.org/schema/context" 
	xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:task="http://www.springframework.org/schema/task"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
		http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.0.xsd"
	default-lazy-init="true">
	
	<!-- 任务调度器 -->
	<task:scheduler id="taskScheduler" pool-size="10" />
	
	<task:scheduled-tasks scheduler="taskScheduler">
	
		<!--  查询每日所有用户余额_恒生端 -->
		<task:scheduled ref="userBalanceService" method="dailyQueryBalance" cron="0 0 1 * * ?" />
		
		<task:scheduled ref="quotaReturnService" method="quotaReturnAndRecord" cron="0 0 2 * * ?" />
		
		<task:scheduled ref="userRateService" method="updateStatus" cron="0 0 1 * * ?" />
		
		<!-- 会员等级升级 -->
		<task:scheduled ref="userLevelBiz" method="levelUp" cron="0 0 1 * * ?" />
		
		<!-- 单品买入交易奖励配额发放 
		<task:scheduled ref="tradeRecordBiz" method="dailyTrade" cron="0 0 22 * * ?" />
		 -->
		<!-- 配额积分过期作废 -->
		<task:scheduled ref="pointRecordBiz" method="expire" cron="0 0 1 * * ?" />
		
		<!-- 交易行情 -->
		<task:scheduled ref="tradeInterval" method="tradeInfo" fixed-rate="5000" />
		
		<!-- 官网首页,最新委托交易 -->
		<task:scheduled ref="otcEntrustInterval" method="lastEntrustInfo" fixed-rate="1000" />
		
		<!-- 官网,买卖的全部商品查询 -->
		<task:scheduled ref="otcEntrustInterval" method="entrustingInfo" fixed-rate="1000" />
		
		<!-- 藏品详细页面 -->
		<task:scheduled ref="otcEntrustInterval" method="entrustDetailInfo" fixed-rate="1000" />
		
		<!-- 新增每日成交数据 -->
		<task:scheduled ref="putEntrustDataBiz" method="putData" cron="0 0 2 * * ?" />
		
		<!-- 错账查询
		<task:scheduled ref="userBalanceService" method="dailyBalanceCompare" cron="0 50 8 * * ?" /> -->
		
		<!--修改过期的刮奖记录状态
		<task:scheduled ref="pointLotteryBiz" method="updateLottery" cron="0 0 1 * * ?" /> -->
		
		<!--托管鉴定结果发送微信短信消息 
		<task:scheduled ref="businessNoticeBiz" method="sendNotice" cron="0 0/5 * * * ?" /> -->
		
		<!--出金发送微信短信消息
		<task:scheduled ref="businessNoticeBiz" method="outNotice" cron="0 0/5 * * * ?" />  -->
		
		<!--入金发送微信短信消息 
		<task:scheduled ref="businessNoticeBiz" method="payNotice" cron="0 0/5 * * * ?" /> -->
		
		<!-- 自动委托之前未成交的交易
		<task:scheduled ref="batchEntrustTask" method="entrust" cron="0 10 9 ? * MON-FRI" /> -->
		
		<!-- 查询每日所有用户余额_汇付端 
		<task:scheduled ref="userBalanceService" method="dailyQueryAllBalance" cron="0 20 19 * * ?" />-->
		
		<!-- 补充查询汇付每日余额
		<task:scheduled ref="userBalanceService" method="dailyQueryAllBalanceFollow" cron="0 0 6 * * ?" /> -->
		
		<!-- 每日资金变动用户余额查询_恒生端
		<task:scheduled ref="userBalanceService" method="crawler" cron="0 20 5 * * ?" /> -->
	</task:scheduled-tasks>
	
</beans>