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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using DSWeb.Common.DB ;
using log4net ;
using Newtonsoft.Json ;
using Newtonsoft.Json.Linq ;
using Quartz ;
using System ;
using System.Collections.Generic ;
using System.Data ;
using System.Data.SqlClient ;
using System.IO ;
using System.Linq ;
using System.Text ;
namespace JobReqWebData
{
public class JobFanWeiOAGet : IJob
{
private ILog log = LogManager . GetLogger ( typeof ( JobFanWeiOAGet ) ) ;
public void Execute ( IJobExecutionContext context )
{
try
{
string OAconnStr = context . JobDetail . JobDataMap . GetString ( "ConnectString" ) ;
string DS7connStr = context . JobDetail . JobDataMap . GetString ( "DS7ConnectString" ) ;
int reqTimeout = Convert . ToInt32 ( context . JobDetail . JobDataMap . GetString ( "RequestTimeout" ) ) ;
var dc1 = new OtherDB ( OAconnStr ) ;
var cdc = new CommonDataContext ( DS7connStr ) ;
//从cdc中寻找待读取审核结果的业务
//var 待审核付费申请List = cdc.ch_fee_p
//从dc1中寻找这些id的业务的审核结果
//将审核完成的更新至cdc中的业务中
//update ch_fee_payapplication set BILLSTATUS=0,AUDITUSER='" + USERID + "',AUDITTIME='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "' where BILLNO=@BILLNO");
}
catch ( Exception ex )
{
log . Debug ( $"catch: {ex.Message}" ) ;
log . Error ( ex . Message ) ;
log . Error ( ex . StackTrace ) ;
}
}
}
}