spring-task.xml
3.61 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?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>