You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
3.9 KiB
XML
125 lines
3.9 KiB
XML
<?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>JobBooking</name>
|
|
<group>Job</group>
|
|
<description>订阅数据</description>
|
|
<job-type>JobYunDang.JobBooking,JobYunDang</job-type>
|
|
<durable>true</durable>
|
|
<recover>false</recover>
|
|
<job-data-map>
|
|
<!--连接字符串-->
|
|
<entry>
|
|
<key>ConnectString</key>
|
|
<value>Data Source=.;Initial Catalog=shippingweb_qj;Persist Security Info=True;User ID=sa;Password=sa123</value>
|
|
</entry>
|
|
<!--查询SQL-->
|
|
<entry>
|
|
<key>QuerySql</key>
|
|
<value>
|
|
select mblno,(select top 1 EDICODE FROM code_cust_edi WHERE EDINAME='YUNDANGWANG' AND cust=s.carrier) carrierid,portloadid
|
|
from op_seae s where mblno!='' and carrier!='' and (IsBookingYDW is null or IsBookingYDW=0)
|
|
</value>
|
|
</entry>
|
|
<!--请求url-->
|
|
<entry>
|
|
<key>ReqUrl</key>
|
|
<value>http://apis.yundangnet.com/api/v1/bookingsv2</value>
|
|
</entry>
|
|
<!--企业编码-->
|
|
<entry>
|
|
<key>CompanyCode</key>
|
|
<value>3351</value>
|
|
</entry>
|
|
<!--秘钥-->
|
|
<entry>
|
|
<key>CompanySecret</key>
|
|
<value>ac135977-766f-4bb4-a2a4-6561b438bb0f</value>
|
|
</entry>
|
|
</job-data-map>
|
|
</job>
|
|
|
|
<!-- 发送请求数据任务触发器-->
|
|
<!--<trigger>
|
|
<cron>
|
|
<name>TriggerBooking</name>
|
|
<group>Job</group>
|
|
<description>订阅数据触发器</description>
|
|
<job-name>JobBooking</job-name>
|
|
<job-group>Job</job-group>
|
|
<cron-expression>0 0/10 * * * ? *</cron-expression>
|
|
</cron>
|
|
</trigger>-->
|
|
<trigger>
|
|
<simple>
|
|
<name>TriggerBooking</name>
|
|
<group>Job</group>
|
|
<description>订阅数据触发器</description>
|
|
<job-name>JobBooking</job-name>
|
|
<job-group>Job</job-group>
|
|
<repeat-count>0</repeat-count>
|
|
<repeat-interval>30</repeat-interval>
|
|
</simple>
|
|
</trigger>
|
|
|
|
|
|
<!--下载数据任务-->
|
|
<job>
|
|
<name>JobDownload</name>
|
|
<group>Job</group>
|
|
<description>下载数据</description>
|
|
<job-type>JobYunDang.JobDownloadData,JobYunDang</job-type>
|
|
<durable>true</durable>
|
|
<recover>false</recover>
|
|
<job-data-map>
|
|
<!--连接字符串-->
|
|
<entry>
|
|
<key>ConnectString</key>
|
|
<value>Data Source=.;Initial Catalog=shippingweb_qj;Persist Security Info=True;User ID=sa;Password=sa123</value>
|
|
</entry>
|
|
<!--查询SQL-->
|
|
<entry>
|
|
<key>QuerySql</key>
|
|
<value>
|
|
select top 15 mblno,(select top 1 EDICODE FROM code_cust_edi WHERE EDINAME='YUNDANGWANG' AND cust=s.carrier) carrierid,portloadid
|
|
from op_seae s where IsBookingYDW=1 order by YDWUpdate
|
|
</value>
|
|
</entry>
|
|
<!--请求url-->
|
|
<entry>
|
|
<key>ReqUrl</key>
|
|
<value>http://apis.yundangnet.com/api/v1/bookingv2-liner</value>
|
|
</entry>
|
|
<!--企业编码-->
|
|
<entry>
|
|
<key>CompanyCode</key>
|
|
<value>3351</value>
|
|
</entry>
|
|
<!--秘钥-->
|
|
<entry>
|
|
<key>CompanySecret</key>
|
|
<value>ac135977-766f-4bb4-a2a4-6561b438bb0f</value>
|
|
</entry>
|
|
</job-data-map>
|
|
</job>
|
|
|
|
<trigger>
|
|
<simple>
|
|
<name>TriggerDownload</name>
|
|
<group>Job</group>
|
|
<description>下载数据触发器</description>
|
|
<job-name>JobDownload</job-name>
|
|
<job-group>Job</job-group>
|
|
<repeat-count>0</repeat-count>
|
|
<repeat-interval>30</repeat-interval>
|
|
</simple>
|
|
</trigger>
|
|
|
|
</schedule>
|
|
</job-scheduling-data> |