|
|
@ -39,11 +39,11 @@ namespace DS.WMS.Core.QuarztJobs.Method
|
|
|
|
return;
|
|
|
|
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();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//遍历授权数据集
|
|
|
|
//遍历授权数据集
|
|
|
|
foreach (var item in orgauthlist)
|
|
|
|
foreach (var item in orgauthlist)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -197,7 +197,7 @@ namespace DS.WMS.Core.QuarztJobs.Method
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#region 同步发票到钉钉审批
|
|
|
|
#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)
|
|
|
|
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 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);
|
|
|
|
DingDing.UpDingOAForm(token, DingProcess.Key, ininviceList);
|
|
|
|