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.
DS7/JobReqWebData/quartz_jobs.xml

71 lines
2.7 KiB
XML

3 years ago
<?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>
<!--定时插入WEB数据库数据任务-->
<job>
<name>JobDs7ToWeb</name>
<group>SendDs7DataRequest</group>
<description>发送数据请求</description>
<job-type>JobReqWebData.JobDs7ToWeb,JobReqWebData</job-type>
<durable>true</durable>
<recover>false</recover>
<job-data-map>
<!--DS7连接字符串-->
<entry>
<key>ConnectString</key>
<value>Data Source=60.209.125.238,52314;Initial Catalog=shippingweb1;Persist Security Info=True;User ID=sa;Password=Ds20040201</value>
3 years ago
</entry>
<!--DS7查询SQL-->
<entry>
<key>QuerySql</key>
<value>
select bl.AS_ID,bl.BSNO,b.CUSTNO,b.CONTRACTNO PONO,bl.MBLNO,bl.HBLNO,b.CUSTOMERNAME,bl.SHIPPER,bl.CONSIGNEE,bl.PORTLOAD,bl.DESTINATION
,CASE WHEN len(b.DESTINATIONID)!=5 THEN '' ELSE (select top 1 c_country_name from t_sys_country_code where c_country_code=LEFT(b.DESTINATIONID,2)) END as COUNTRY
2 years ago
,b.VESSEL,b.VOYNO,bl.CNTRTOTAL,b.BLTYPE,b.[SERVICE],b.ETD,b.ATD,b.ETA,b.CARRIER,bl.NOPKGS,bl.DESCRIPTION,bl.GROSSWEIGHT,bl.MEASUREMENT,b.HSCODE,b.FINANCIALSTAFFFAX INSURANCEOP
,(SELECT TOP 1 COMPTIME FROM op_status WHERE [STATUS]='Approached' AND BSNO=B.BSNO) LINKCUSTTIME
,(SELECT TOP 1 OpTime FROM op_SeaCover WHERE coverTitle='接单' AND BSNO=B.BSNO) CREATETIME
,(SELECT TOP 1 OpTime FROM op_SeaCover WHERE coverTitle='出号' AND BSNO=B.BSNO) MBLNOTIME
,bl.MODIFYTIME BSDATE
FROM op_seae_billmanage bl
LEFT JOIN op_seae b on (b.bsno=bl.BSNO)
<!--WHERE bl.MODIFYTIME&gt;=DATEADD(HOUR,-12 ,getdate())-->
</value>
3 years ago
</entry>
<!--WEB连接字符串-->
<entry>
<key>WebConnectString</key>
<value>Data Source=127.0.0.1;Initial Catalog=EIPI_WEB;Persist Security Info=True;User ID=sa;Password=Ds20040201</value>
3 years ago
</entry>
<!--请求超时(单位:秒)-->
<entry>
<key>RequestTimeout</key>
<value>30</value>
</entry>
</job-data-map>
</job>
<!-- 定时插入WEB数据库数据任务触发器-->
3 years ago
<trigger>
<cron>
<name>TriggerSendRequest</name>
<group>SendDs7DataRequest</group>
3 years ago
<description>发送数据请求触发器</description>
<job-name>JobDs7ToWeb</job-name>
<job-group>SendDs7DataRequest</job-group>
<cron-expression>0/1 * * * * ? * </cron-expression>
3 years ago
</cron>
</trigger>
3 years ago
3 years ago
</schedule>
</job-scheduling-data>