|
|
|
@ -39,7 +39,7 @@ namespace DS.WMS.Core.QuarztJobs.Method
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var orgauthlist= db.Queryable<SysOrgAuth>().ClearFilter().Where(t => t.Deleted == false&&t.Type==OrgAuthTypeEnum.InInvoice).ToList();
|
|
|
|
|
var orgauthlist= db.Queryable<SysOrgAuth>().ClearFilter().Where(t => t.Deleted == false&&t.Type== "InInvoice").ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -197,7 +197,7 @@ namespace DS.WMS.Core.QuarztJobs.Method
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
#region 同步发票到钉钉审批
|
|
|
|
|
var dingconfig = db.Queryable<SysOrgAuth>().Where(t => t.Type == OrgAuthTypeEnum.DingConfig &&t.OrgId==item.OrgId).First();
|
|
|
|
|
var dingconfig = db.Queryable<SysOrgAuth>().Where(t => t.Type == "DingConfig" &&t.OrgId==item.OrgId).First();
|
|
|
|
|
|
|
|
|
|
if (dingconfig!=null)
|
|
|
|
|
{
|
|
|
|
@ -206,7 +206,7 @@ namespace DS.WMS.Core.QuarztJobs.Method
|
|
|
|
|
//获取对应的组织机构的发票列表
|
|
|
|
|
var ininviceList = await tenantDb.Queryable<InInvoice>().Where(x => x.ReimbursementType == ReimbursementTypeEnums.NotSubmitted && x.OrgId == item.OrgId).ToListAsync();
|
|
|
|
|
//将发票信息同步更新到钉钉
|
|
|
|
|
var DingProcess = db.Queryable<SysOrgAuth>().Where(t => t.Type == OrgAuthTypeEnum.DingProcessCode && t.OrgId == item.OrgId).First();
|
|
|
|
|
var DingProcess = db.Queryable<SysOrgAuth>().Where(t => t.Type == "DingProcessCode" && t.OrgId == item.OrgId).First();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DingDing.UpDingOAForm(token, DingProcess.Key, ininviceList);
|
|
|
|
|