|
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
|
<job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData">
|
|
|
|
|
<processing-directives>
|
|
|
|
|
<overwrite-existing-data>true</overwrite-existing-data>
|
|
|
|
|
</processing-directives>
|
|
|
|
|
<schedule>
|
|
|
|
|
|
|
|
|
|
<!--订阅数据任务-->
|
|
|
|
|
<job>
|
|
|
|
|
<name>JobSendBooking</name>
|
|
|
|
|
<group>Job</group>
|
|
|
|
|
<description>订阅数据</description>
|
|
|
|
|
<job-type>JobSendAgentMail.JobSendCtn,JobSendAgentMail</job-type>
|
|
|
|
|
<durable>true</durable>
|
|
|
|
|
<recover>false</recover>
|
|
|
|
|
<job-data-map>
|
|
|
|
|
<!--连接字符串-->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>ConnectString</key>
|
|
|
|
|
<value>Data Source=ds-hxt;Initial Catalog=DATA;Persist Security Info=True;User ID=sa;Password=yongfa_123</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!--查询SQL-->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>QuerySql</key>
|
|
|
|
|
<value>
|
|
|
|
|
SELECT 箱号 FROM [dbo].[t_op_ctn_detail] where isnull(是否还箱,0)=0 and (GETDATE()-动态时间)>180
|
|
|
|
|
</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!--DS7邮箱发送账号-->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILSENDACCOUNT</key>
|
|
|
|
|
<value>han_xuntao@163.com</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!--DS7邮箱发送密码-->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILSENDPASSWORD</key>
|
|
|
|
|
<value>ds20040201</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!--DS7邮箱发送账号-->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILSENDSERVICE</key>
|
|
|
|
|
<value>smtp.163.com</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!--DS7邮箱发送账号-->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILSENDPORT</key>
|
|
|
|
|
<value>25</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!--DS7邮箱发送账号-->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILISSSL</key>
|
|
|
|
|
<value>false</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILRECEIVER</key>
|
|
|
|
|
<value>e.control@win-fast.com.cn,e.control2@win-fast.com.cn</value>
|
|
|
|
|
</entry>
|
|
|
|
|
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILTITLE</key>
|
|
|
|
|
<value>集装箱超期提醒</value>
|
|
|
|
|
</entry>
|
|
|
|
|
</job-data-map>
|
|
|
|
|
</job>
|
|
|
|
|
|
|
|
|
|
<!-- 发送请求数据任务触发器-->
|
|
|
|
|
<trigger>
|
|
|
|
|
<cron>
|
|
|
|
|
<name>TriggerBooking</name>
|
|
|
|
|
<group>Job</group>
|
|
|
|
|
<description>订阅数据触发器</description>
|
|
|
|
|
<job-name>JobSendBooking</job-name>
|
|
|
|
|
<job-group>Job</job-group>
|
|
|
|
|
<cron-expression>0 55 14 * * ?</cron-expression>
|
|
|
|
|
</cron>
|
|
|
|
|
</trigger>
|
|
|
|
|
|
|
|
|
|
<job>
|
|
|
|
|
<name>SendMailJob</name>
|
|
|
|
|
<group>Job</group>
|
|
|
|
|
<description>发送邮件</description>
|
|
|
|
|
<job-type>JobSendAgentMail.SendMailJob,JobSendAgentMail</job-type>
|
|
|
|
|
<durable>true</durable>
|
|
|
|
|
<recover>false</recover>
|
|
|
|
|
<job-data-map>
|
|
|
|
|
<!-- 连接字符串 -->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>ConnectString</key>
|
|
|
|
|
<value>Data Source=221.215.122.2,12456;Initial Catalog=2024_0322;Persist Security Info=True;User ID=sa;Password=Ds20040201</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!-- DS7邮箱发送账号 -->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILSENDACCOUNT</key>
|
|
|
|
|
<value>dongshengcangdan@h8j.top</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!-- DS7邮箱发送密码 -->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILSENDPASSWORD</key>
|
|
|
|
|
<value>A1B2C3ds040201</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!-- DS7邮箱发送账号 -->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILSENDSERVICE</key>
|
|
|
|
|
<value>smtpdm.aliyun.com</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!-- DS7邮箱发送账号 -->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILSENDPORT</key>
|
|
|
|
|
<value>80</value>
|
|
|
|
|
</entry>
|
|
|
|
|
<!-- DS7邮箱发送账号 -->
|
|
|
|
|
<entry>
|
|
|
|
|
<key>MAILISSSL</key>
|
|
|
|
|
<value>false</value>
|
|
|
|
|
</entry>
|
|
|
|
|
</job-data-map>
|
|
|
|
|
</job>
|
|
|
|
|
|
|
|
|
|
<!-- 发送请求数据任务触发器-->
|
|
|
|
|
<trigger>
|
|
|
|
|
<cron>
|
|
|
|
|
<name>TriggerSendMail</name>
|
|
|
|
|
<group>Job</group>
|
|
|
|
|
<description>订阅数据触发器</description>
|
|
|
|
|
<job-name>SendMailJob</job-name>
|
|
|
|
|
<job-group>Job</job-group>
|
|
|
|
|
<cron-expression>0 0/1 * * * ?</cron-expression>
|
|
|
|
|
</cron>
|
|
|
|
|
</trigger>
|
|
|
|
|
</schedule>
|
|
|
|
|
</job-scheduling-data>
|